Map 3D: map cells draw from 0.3 of the HD distance (25 to 44 fps downtown) #351

Manually merged
github merged 6 commits from gh-pr/351/head into gh-pr/351/base 2026-11-26 20:29:40 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-26 04:11 UTC · original
holdmysocks:six-map3d-cellring → master · +26 −5 · 3 files · 6 commits · merged 2026-11-26 05:53 UTC

Downtown, the 3D map ran at 25 fps. The CPU cost of a frame follows its draw count, so this halves the draws by letting map cells take over nearer the camera. Built on #343, which adds the GPU timing it was measured with.

  • Map cells (placements merged per map square, a few draws each) now draw from 0.3 of the HD distance instead of 0.6. The cells are still built for 0.6: same contents, same simplification, same 64 px textures.
  • SIXNG_CELLS_NEAR=<fraction> sets another ring, for measuring.
  • SIXNG_MAP_TICKS=1 keeps frames coming after an automation run's shot, so the tick lines continue (an idle window drew no frames).

Checked

  • cargo check and cargo clippy clean.
  • Test PC (RTX 3090), downtown at 60 m, pitch 30, 13 h, default quality. Each row averages 10 settled ticks:
ring fps render CPU encoder finish draws (shadow) GPU
0.6 (before) 25 13.5 ms 10.7 ms 6,859 (3,552) 8.7 ms
0.4 32 9.6 ms 7.0 ms 4,534 (2,704) 7.7 ms
0.3 44 6.8 ms 5.5 ms 3,706 (2,422) 8.1 ms
  • No visible change in the 50-200 m foreground at 0.4 or 0.3: car park markings, kerbs, props, the car and the facades are the same. The mean pixel difference is 0.8 of 255.
  • Memory peaks are unchanged.
  • Street level, 20 m, pitch 10:
    • Downtown, along a street: 37 fps against 32, with 3,520 draws against 6,109. Flying 100 m forward: 31 fps against 24.
    • Beach town: about 17 fps both ways, though neither run fully settled. Flying 100 m forward: 38 fps against 29.
    • The 30-150 m band looks the same at 0.3 and 0.6: no low-resolution facades, no missing props, and nothing pops while flying.
**@⁠holdmysocks** on GitHub · 2026-11-26 04:11 UTC · [original](https://github.com/holdmysocks/SixNG/pull/351) `holdmysocks:six-map3d-cellring` → `master` · +26 −5 · 3 files · 6 commits · merged 2026-11-26 05:53 UTC Downtown, the 3D map ran at 25 fps. The CPU cost of a frame follows its draw count, so this halves the draws by letting map cells take over nearer the camera. Built on #343, which adds the GPU timing it was measured with. - Map cells (placements merged per map square, a few draws each) now draw from 0.3 of the HD distance instead of 0.6. The cells are still built for 0.6: same contents, same simplification, same 64 px textures. - `SIXNG_CELLS_NEAR=<fraction>` sets another ring, for measuring. - `SIXNG_MAP_TICKS=1` keeps frames coming after an automation run's shot, so the tick lines continue (an idle window drew no frames). ## Checked - `cargo check` and `cargo clippy` clean. - Test PC (RTX 3090), downtown at 60 m, pitch 30, 13 h, default quality. Each row averages 10 settled ticks: | ring | fps | render CPU | encoder finish | draws (shadow) | GPU | |---|---|---|---|---|---| | 0.6 (before) | 25 | 13.5 ms | 10.7 ms | 6,859 (3,552) | 8.7 ms | | 0.4 | 32 | 9.6 ms | 7.0 ms | 4,534 (2,704) | 7.7 ms | | 0.3 | 44 | 6.8 ms | 5.5 ms | 3,706 (2,422) | 8.1 ms | - No visible change in the 50-200 m foreground at 0.4 or 0.3: car park markings, kerbs, props, the car and the facades are the same. The mean pixel difference is 0.8 of 255. - Memory peaks are unchanged. - Street level, 20 m, pitch 10: - Downtown, along a street: 37 fps against 32, with 3,520 draws against 6,109. Flying 100 m forward: 31 fps against 24. - Beach town: about 17 fps both ways, though neither run fully settled. Flying 100 m forward: 38 fps against 29. - The 30-150 m band looks the same at 0.3 and 0.6: no low-resolution facades, no missing props, and nothing pops while flying.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:29:38 +00:00
github manually merged commit f7df6577aa into gh-pr/351/base 2026-11-26 20:29:40 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.