3D GPU World crashing #17

Closed
opened 2026-11-27 02:31:04 +00:00 by github-bot · 1 comment
Owner

@⁠adamjuankili on GitHub · 2026-11-21 16:47 UTC · original

Caused by:
In Device::create_buffer, label = 'm_vb'
Not enough memory left.

**@⁠adamjuankili** on GitHub · 2026-11-21 16:47 UTC · [original](https://github.com/rpatty-dev/PercyStar/issues/17) Caused by: In Device::create_buffer, label = 'm_vb' Not enough memory left.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:31:04 +00:00
Author
Owner

@⁠rpatty-dev on GitHub · 2026-11-21 17:45 UTC · original

Fixed in commit daea971.

\world_gpu.rs\ previously capped texture VRAM at 512 MiB (\ ex_bytes) but had no geometry buffer budget or \OutOfMemory\ error scope around \create_buffer_init\ (\m_inst, \m_vb, \m_ib), causing a panic when streaming thousands of archetypes on lower-VRAM GPUs.

Added:

  • Geometry VRAM budget (\MAX_GEOM_BYTES = 1 GiB, tracked in \geom_bytes, skipping non-terrain streaming once reached)
  • \wgpu::ErrorFilter::OutOfMemory\ error scope around \m_inst, \m_vb, and \m_ib\ allocation so low-VRAM GPUs gracefully stop streaming new batches instead of crashing.
**@⁠rpatty-dev** on GitHub · 2026-11-21 17:45 UTC · [original](https://github.com/rpatty-dev/PercyStar/issues/17#issuecomment-7066721924) Fixed in commit daea971. \world_gpu.rs\ previously capped texture VRAM at 512 MiB (\ ex_bytes\) but had no geometry buffer budget or \OutOfMemory\ error scope around \create_buffer_init\ (\m_inst\, \m_vb\, \m_ib\), causing a panic when streaming thousands of archetypes on lower-VRAM GPUs. Added: - Geometry VRAM budget (\MAX_GEOM_BYTES = 1 GiB\, tracked in \geom_bytes\, skipping non-terrain streaming once reached) - \wgpu::ErrorFilter::OutOfMemory\ error scope around \m_inst\, \m_vb\, and \m_ib\ allocation so low-VRAM GPUs gracefully stop streaming new batches instead of crashing.
This discussion has been locked. Commenting is limited to contributors.
No milestone
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
github/rpatty-dev--PercyStar#17
No description provided.