Skip to content

v0.27.61-alpha — Compressed Textures, GPU Texture Animation, glTF Material Overrides & Clean Teleports

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 15 Oct 18:43
· 243 commits to main since this release

Since v0.27.44-alpha this release cuts the cost of crowded regions: textures are held block-compressed on the graphics card, texture animation runs on the GPU, and mirrors are off by default. It also renders glTF material overrides, fogs objects below the water surface, and clears the old region at once after a teleport.

Performance

  • Compressed textures in video memory (FEAT-PERF-17 Part B). World textures are kept BC1/BC3-compressed on the card, using our own encoder, because Godot's export templates cannot compress.
    • A compressed copy is also stored in the disk cache, so a warm start uploads it directly. That upload is about ten times cheaper.
    • Normal maps, avatar bakes, HUDs and UI stay uncompressed.
    • Measured on 500 real textures: 2,283 MB went down to 344 MB. In a crowded region the video memory used fell from 7–8 GB to about 2.5 GB.
  • Texture animation on the GPU (FEAT-PERF-16). llSetTextureAnim is now evaluated in the prim shaders from a global clock.
    • Before, the viewer rewrote every animated face's placement on every frame. That cost about 4.6 ms per frame in a crowded region and now costs almost nothing.
    • Every mode is covered by a parity test (64 mode combinations) against the previous implementation.
  • Mirrors are a setting, off on every preset (FEAT-PERF-15), as in the reference viewer.
    • A mirror renders the scene a second time. In a crowded region that was about 6,000 draw calls and 8 ms of CPU time per frame.
    • With mirrors on, the material-based guess no longer turns floors, beaches or water-like planes into mirrors. Creator-flagged mirrors still work in any orientation.
  • Tiny objects are culled by size (FEAT-PERF-14). A distance limit now comes from each object's bounding radius and Object Detail, using engine visibility ranges. It also applies to the sun's shadow cascades.
  • Object Detail goes up to 8.
  • Draw-call measurement (FEAT-PERF-20 Phase 0). A new [BatchPotential] line (run-client -BatchPotential) predicts how many draws shared materials or per-area merging would save. In a crowded region, sharing identical materials would remove about 27 % of the prim draws, in the scene and in the shadows alike. Merging per area would add only 1–2 % on top. Shared materials are therefore the next step.

Rendering

  • glTF material overrides (FEAT-RENDER-26). Recoloured, re-glossed or re-textured PBR faces now render with the creator's overrides: base colour, emissive, metallic, roughness, alpha mode, double-sided, textures and the base-colour texture transform.
    • SLNG parses the override messages itself. LibreMetaverse's own parser rejects some of them (an empty [] or {}), and its warnings are now printed once per session instead of a stack trace each time.
  • Objects below the water surface get the water's fog (BUG-RENDER-48). Alpha-blended faces under the surface were drawn after the water, so they missed its fog and Fresnel veil.
  • Wet sand and similar materials no longer read as mirrors. A legacy material's environment reflection is now masked per texel by its specular map's alpha, as in the reference viewer.

Teleports

  • The old region disappears at once (BUG-NET-34). After a teleport, the region you left could stay on screen for up to a minute, floating at its old height inside the new region, while its objects were freed a few per frame.
    • Its objects, animesh and terrain are now hidden and stop colliding in the frame they are removed. Freeing them keeps its frame budget.
    • On a quick return, the terrain shows again at once.

Not yet confirmed in-world

  • glTF overrides on objects that are restored from SLNG's object cache. The simulator may not resend overrides for cached objects; the reference viewer stores them in its own cache. If a recoloured PBR object looks right only with -NoObjectCache, that is the cause.
  • Small-object culling: the A/B in a crowded region.

Still missing

  • Shared materials (FEAT-PERF-20 A1), the measured next lever for crowded regions.
  • 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.

Verification

  • Both projects build in Debug and Release.
  • 3,441 tests green (up from 3,189 in v0.27.44).
  • 141/141 self-test checks.
  • dotnet format clean, shader globals 36/36.

Install

Download PurisViewer_Setup_v0.27.61-alpha.exe below and run it. It updates an existing installation in place.