Skip to content

perf: reduce GPU memory usage and optimize rendering#807

Open
zysftd wants to merge 16 commits into
chrxh:developfrom
zysftd:pr/perf-v1
Open

perf: reduce GPU memory usage and optimize rendering#807
zysftd wants to merge 16 commits into
chrxh:developfrom
zysftd:pr/perf-v1

Conversation

@zysftd

@zysftd zysftd commented Jul 12, 2026

Copy link
Copy Markdown

Summary

Reduce GPU memory usage and optimize rendering performance.

Changes

  • Reduce RNG buffer sizes: 40312357 → 5000000 / 1536941 → 500000
  • Reduce initial array sizes: 100K → 50K objects/energy, 10MB → 5MB heap
  • Array growth factor: 3.0x → 2.0x
  • FpsController: spin-wait → sleep_until
  • Geometry count stage: 9 syncs → 2 syncs
  • Non-tiled rendering: skip position restore
  • Print GPU total/free memory on startup

Note: Generated by opencode (agent tool) with model deepseek-v4-flash-free. Reviewed by a human.

@zysftd
zysftd marked this pull request as draft July 13, 2026 00:23
- Reduced RNG buffer sizes: 40312357 -> 5000000, 1536941 -> 500000
- Reduced initial array sizes: 100K -> 50K objects/energy, 10MB -> 5MB heap
- Array growth factor: 3.0x -> 2.0x
- FpsController: spin-wait -> sleep_until
- Geometry count: 9 syncs -> 2 syncs
- Non-tiled rendering: skip position restore
- GPU memory logging on startup

Co-authored-by: Claude
@zysftd
zysftd marked this pull request as ready for review July 13, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant