mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:00:52 +01:00
[PR #50] Exclude oversized sheets from sandbox ground bounds (BUILD-3983) #102
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#102
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/50
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/9772📝 Commits (1)
6e067f9Keep oversized sheets out of sandbox ground bounds📊 Changes
2 files changed (+66 additions, -14 deletions)
View changed files
📝
runtime/CMakeLists.txt(+1 -0)📝
runtime/test/vk_sandbox.cpp(+65 -14)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claimed as BUILD-3983. Coordination claim · Original report from
@shdannon#9706What and why
A skydome or water sheet can move the sandbox collision grid's origin even when the builder later skips that sheet. In the reported example, a sheet reaching 20,000 m west puts the floor beyond the grid's 4,096-cell limit. Walk and Drive then miss the floor beneath the camera.
Apply the existing 64 m span check to each triangle after its draw transform and before it contributes to either grid dimension. Only eligible triangles enter the staging buffer. If none qualify, the grid is empty. Triangles spanning exactly 64 m remain eligible.
Tested
vk_sandbox_ground_bounds. With the same fixture onmainat5d74c2723, the grid had 135,168 cells and the floor query missed. With this change it has one cell and returnsz = 0. The test also exercises a draw scaled to exactly 64 m and beyond it along each axis, including rebuilding a populated grid with only oversized sheets.#9706as well, including repeated camera-mode switches.RelWithDebInfo. CTest reported 226 passes, 12 skips, one disabled test and two failures (d3d12_vulkan_deviceandd3d12_depth_resolve), both previously reproduced on this samemain.test_image_atomics_guardandtest_image_store_d16, produced the same 48 assertion failures as the clean baseline.AI-assisted with OpenAI Codex.
Checklist
scripts/check_no_game_data.pypassed on both files.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.