Skip to content

v0.27.44-alpha — Video Memory That Survives Teleports, Preset Switches and Shared Graphics Cards; Inventory Fix

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 11 Oct 16:01
· 274 commits to main since this release

Since v0.27.40-alpha this release hardens the video-memory work against what real desktops do: teleporting away and back, switching quality presets, and sharing the graphics card with other programs. It also fixes an inventory that could show as empty.

Video memory

  • Textures load after a teleport back (BUG-PERF-18). After leaving a region and returning, many world textures never loaded and faces were drawn untextured. There were two causes:

    • The process keeps memory that Godot has already freed. The budget counted that memory as in use and fell to its floor.
    • At that floor, each freshly uploaded texture was evicted by its own upload before anything referenced it.

    The fix:

    • The budget now takes Godot's own count of live video memory and counts the kept memory only partly.
    • The floor is a fifth of the OS budget.
    • A fresh texture is protected for 10 s.
    • Reduce levels are clamped to what the codestream holds.
  • The whole card counts (BUG-PERF-19). Windows' per-process budget did not stop the card from filling up. In one case, streaming software and a slicer held 3.4 GB beside the viewer: the card paged and the frame rate fell to 7 fps.

    • The viewer now also reads the adapter's total usage and keeps its texture budget below 92 % of the card minus what other programs hold.
    • A program that starts using the card lowers the budget at once. One that leaves raises it only after 30 s.
  • Preset switches hand memory back (BUG-PERF-19). Changing the quality preset recreated the render buffers while the old ones were still allocated, and the process grew with every switch. A switch now passes through a short buffer-free state first, so its footprint stays flat across repeated switches (measured).

  • Known limit. Godot's video-memory allocator keeps freed memory until a whole block is empty. After a teleport or a quality drop, the process therefore stays at its high-water mark. The budget accounts for it.

Inventory

  • A refused folder request no longer shows as an empty folder (BUG-INV-14). LibreMetaverse reads a refused folder request as an empty list, with no error. My Inventory could then show "(empty)" for the whole session.
    • Such a folder is now asked for again.
    • It keeps its "needs update" state, and collapsing and expanding it asks again.
    • A cache restore that leaves My Inventory without any folder is discarded and logged.
  • Note for this update: since v0.27.40 the inventory cache is stored per grid and avatar, so the first login after updating fetches the inventory once.

Still missing

  • The HUD overlay renders every frame even without a HUD (BUG-PERF-17).
  • Your own avatar's meshes are not loaded first at login (BUG-PERF-14).
  • The separate render thread is still opt-in. A long-session stability check is pending.

Verification

  • Both projects build in Debug and Release.
  • 3,189 tests green (up from 3,138 in v0.27.40).
  • 130/130 self-test checks.
  • dotnet format clean, shader globals 30/30, CI green.

Install: download PurisViewer_Setup_v0.27.44-alpha.exe below.

This is an alpha. It connects to OpenSimulator grids and to Second Life, and it is not finished software.

Full changelog: v0.27.40-alpha...v0.27.44-alpha