Map 3D: settle views that want more models than the count cap #387

Manually merged
github merged 2 commits from gh-pr/387/head into gh-pr/387/base 2026-11-26 20:32:34 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-26 17:57 UTC · original
holdmysocks:six-map3d-modelcap → master · +70 −5 · 4 files · 2 commits · merged 2026-11-26 18:31 UTC

Views that want more models than the model-count cap never finished loading. This was seen after a map rebake, where far more LOD and SLOD placements resolve.

  • The bug: each new load evicted another wanted model, the farthest one, which was then asked for again. "keep missing" stayed above 1,000, and the first view timed out.
  • The queue refills. The load queue holds the first 4000 requests, and the update that fills it only reran when the camera moved. With a still camera, the rest of the wanted models were never asked for. This was the actual cause of the 300a stall. The frame now reruns the update once a queue that held only part of the list has drained.
  • Requests stop at the cap. A full cache still takes a model that comes before a resident one in load order. That model evicts the farthest, so the nearest set fills.
  • A full cap counts as complete. A view at the full cap, with nothing left to load, counts as complete. The tick line adds "(model cap full)".
  • Higher cap. It goes from 120 to 180 models per GB (800–12,000), and the user cap from 600 to 900 per GB. RAM pressure handling is unchanged.
  • Debug switch: SIXNG_MAP_CELL_LEVELS=2,3 merges only those placement levels into cells. The other levels draw per placement and can be picked.
  • README updated.
**@⁠holdmysocks** on GitHub · 2026-11-26 17:57 UTC · [original](https://github.com/holdmysocks/SixNG/pull/387) `holdmysocks:six-map3d-modelcap` → `master` · +70 −5 · 4 files · 2 commits · merged 2026-11-26 18:31 UTC Views that want more models than the model-count cap never finished loading. This was seen after a map rebake, where far more LOD and SLOD placements resolve. - **The bug:** each new load evicted another wanted model, the farthest one, which was then asked for again. "keep missing" stayed above 1,000, and the first view timed out. - **The queue refills.** The load queue holds the first 4000 requests, and the update that fills it only reran when the camera moved. With a still camera, the rest of the wanted models were never asked for. This was the actual cause of the 300a stall. The frame now reruns the update once a queue that held only part of the list has drained. - **Requests stop at the cap.** A full cache still takes a model that comes before a resident one in load order. That model evicts the farthest, so the nearest set fills. - **A full cap counts as complete.** A view at the full cap, with nothing left to load, counts as complete. The tick line adds "(model cap full)". - **Higher cap.** It goes from 120 to 180 models per GB (800–12,000), and the user cap from 600 to 900 per GB. RAM pressure handling is unchanged. - **Debug switch:** `SIXNG_MAP_CELL_LEVELS=2,3` merges only those placement levels into cells. The other levels draw per placement and can be picked. - README updated.
The keep set of a view could exceed the model-count cap. Each load then
evicted another wanted model, which was asked for again, so the view never
counted as complete. Requests now stop at the cap; a full cache still takes
a model that comes before a resident one in load order. A view at the full
cap counts as complete, and the tick line says so. The cap rises from 120
to 180 models per GB (800-12,000).

Debug: SIXNG_MAP_CELL_LEVELS limits which placement levels are merged into
cells, so the others can be picked.
The load queue holds the first 4000 requests. Its update only reran when the
camera moved or the view changed, so with a still camera the other wanted
models were never asked for. The frame now reruns the update once a queue
that held only part of the list has drained.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:32:32 +00:00
github manually merged commit d0c9fc4a06 into gh-pr/387/base 2026-11-26 20:32:34 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.