world viewer: evict idle models, prepare meshes off the render thread #52

Manually merged
github merged 1 commit from gh-pr/52/head into gh-pr/52/base 2026-11-27 02:32:57 +00:00
Owner

@⁠asm512 on GitHub · 2026-11-23 18:23 UTC · original
asm512:world-evict-prep → main · +706 −153 · 2 files · 1 commits · merged 2026-11-24 11:06 UTC

The viewer used to stop loading for good once geometry reached 1 GiB. It now frees idle models and keeps streaming.

Tests: 125 pass, GPU smoke test passes (new eviction scene included). An automated fly-through evicted 12,000 to 19,000 models per run without errors.

Known limits: in dense downtown the drawn models alone can fill the budget, so some near models are still turned away. Models behind the camera can be evicted and return after about 150 m of approach. Not yet watched by a person.

**@⁠asm512** on GitHub · 2026-11-23 18:23 UTC · [original](https://github.com/rpatty-dev/PercyStar/pull/52) `asm512:world-evict-prep` → `main` · +706 −153 · 2 files · 1 commits · merged 2026-11-24 11:06 UTC The viewer used to stop loading for good once geometry reached 1 GiB. It now frees idle models and keeps streaming. Tests: 125 pass, GPU smoke test passes (new eviction scene included). An automated fly-through evicted 12,000 to 19,000 models per run without errors. Known limits: in dense downtown the drawn models alone can fill the budget, so some near models are still turned away. Models behind the camera can be evicted and return after about 150 m of approach. Not yet watched by a person.
Streamer workers now build normals, vertex and index data and cell bounds;
the render thread only creates buffers and bind groups.

Above 85% of the 1 GiB geometry budget, models not drawn for 600 frames
are dropped farthest first until 65% is reached, together with textures no
other model uses. The streamer is told and loads them again once the
camera is 150 m closer.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:32:56 +00:00
github manually merged commit d571a61a3a into gh-pr/52/base 2026-11-27 02:32:57 +00:00
Author
Owner

@⁠rpatty-dev on GitHub · 2026-11-24 11:15 UTC · original

merged the eviction and off thread mesh prep make the world viewer way smoother thank you

**@⁠rpatty-dev** on GitHub · 2026-11-24 11:15 UTC · [original](https://github.com/rpatty-dev/PercyStar/pull/52#issuecomment-7129854610) merged the eviction and off thread mesh prep make the world viewer way smoother thank you
This discussion has been locked. Commenting is limited to contributors.
No description provided.