814b70b8c2
At render distance 32 the section arena holds about 1.5 GB of vertices (2.1 GB of GPU memory in all while flying). Vulkan drivers fail an allocation once video memory is full instead of paging like OpenGL drivers, and wgpu's default error handler turns that into a panic: a 4 GB laptop GPU that also drives the desktop crashed a few seconds into an RD32 world. Arena pages are now created inside an out-of-memory error scope. A page that doesn't fit in video memory is created mappable, which the allocator places in host-visible system memory, so the terrain still draws (more slowly) as OpenGL drivers do. A page that can't grow keeps its contents and a smaller new page is tried; with no memory left at all, the section is skipped rather than the game ending. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>