upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/src/thread_stacks.cpp
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-23 12:11:27 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-24 08:24:55 -0500
commit2e4ef18d858c1966a7b345f4e6c2ab306f1c420e (patch)
treedc5d5eb23b2fa2d8708cc0b0b5e951dbc2904e0e /runtime/src/thread_stacks.cpp
parent2d73c242fddfe26d57b52ee150704e6c3b23cff4 (diff)
docs/bvh.md: the BVH4 parent table's start and extent (BUILD-1390)
offsetToParents = 0x40 - (((offsetToNodes - offsetToElements) / 16) & ~127), so the first box node's entry lands in [0x40, 0xc0); one entry per box unit follows, and offsetToElements is their end rounded up to 128. The bytes from 0x40 to offsetToElements are zero. Holds on all 272,874 streams of core_bvh4.rpf and shared_minigame000_bvh4.rpf (272,858 box roots for the extent); counts only. totalSizeIn64BNodes + 1 also counts the level table's units, which have no entry: that is why the header-only end missed on about 13,400 streams. tools/bvh_packing_check.py checks the three rules (parent_offset, parent_area_nonzero, parent_extent); the synthetic fixture moves to the console layout for its four leaves and three BOX16 units. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/thread_stacks.cpp')
0 files changed, 0 insertions, 0 deletions