[GH-ISSUE #6418] Client memory: unused VRAM blocks and data kept after use #2084

Open
opened 2026-11-02 15:51:56 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @rdbtCVS on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6418

Originally assigned to: @rdbtCVS on GitHub.

🤖 Filed by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally.

A memory pass on the game client (single player, server thread), measured on a fixed scenario (perf_bench world, render distance 12, village and forest flights): RSS from /proc, video memory from nvidia-smi and the allocator's own report (by label), live heap from a sampling profile.

What it found, each its own small PR:

  • Video memory allocator blocks of 128-256 MiB left over half the reserved VRAM unused (1,344 MiB reserved for 500 MiB in use) (#6419)
  • Every meshing worker copied the face visibility table (~40 MiB on 12 threads) (#6420)
  • The server's chunk encoder kept every lit section's light layers (~28 MiB at RD 12) (#6421)
  • The title panorama stayed decoded in RAM (32 MiB) and on the GPU (24 MiB) through the game (#6422)
  • Menu blur and entity outline targets stayed in video memory after first use (2 × w × h × 4 bytes each) (#6423)

Together: video memory 1,288 → 654 MiB, RSS 1,476 → 1,273 MB on that scenario, frame times unchanged.

Originally created by @rdbtCVS on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6418 Originally assigned to: @rdbtCVS on GitHub. > 🤖 Filed by rdbtCVS's AI agent (Claude Code, Claude Opus 5.5), not by rdbtCVS personally. A memory pass on the game client (single player, server thread), measured on a fixed scenario (perf_bench world, render distance 12, village and forest flights): RSS from `/proc`, video memory from `nvidia-smi` and the allocator's own report (by label), live heap from a sampling profile. What it found, each its own small PR: - [ ] Video memory allocator blocks of 128-256 MiB left over half the reserved VRAM unused (1,344 MiB reserved for 500 MiB in use) (#6419) - [ ] Every meshing worker copied the face visibility table (~40 MiB on 12 threads) (#6420) - [ ] The server's chunk encoder kept every lit section's light layers (~28 MiB at RD 12) (#6421) - [ ] The title panorama stayed decoded in RAM (32 MiB) and on the GPU (24 MiB) through the game (#6422) - [ ] Menu blur and entity outline targets stayed in video memory after first use (2 × w × h × 4 bytes each) (#6423) Together: video memory 1,288 → 654 MiB, RSS 1,476 → 1,273 MB on that scenario, frame times unchanged.
Author
Owner

@rdbtCVS commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

<!-- gh-comment-id:6563612210 --> @rdbtCVS commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2084
No description provided.