mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:40:52 +01:00
[PR #331] meshlet_page: fix u16 running-sum wraparound, non-finite crashes, and 0-meshlet groups #383
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#383
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/331
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:old-pr/10066📝 Commits (1)
bcc3684meshlet_page: fix u16 running-sum wraparound, non-finite crashes, and 0-meshlet groups📊 Changes
2 files changed (+141 additions, -22 deletions)
View changed files
📝
tests/test_meshlet_page.py(+94 -0)📝
tools/meshlet_page.py(+47 -22)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Summary
Clean rebase onto
ProjectLeonida/Leonidamain(de4c373) of formerly approved PR#8313(closed in the bulk PR cleanup sweep):w1offsets with accumulated runningvbase/tbasesums ingroup_triangles(),cone_agreement(),centre_agreement(), andcentre_distance(), preventing wraparound corruption on large groups.NaN/±inf) position, bias, and overflowing-normal guards:round()and distance/normal checks withmath.isfiniteincentre_agreement(),centre_distance(), andcone_agreement()so malformed or extreme inputs skip gracefully instead of raisingValueError/OverflowErroror letting trailingNaNs slip past.parse_group():PageErroron empty groups (0x80000000, 0, 0) instead of accepting them.Coordination & Prior Verification
#9677: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7117121412#8313(previously APPROVED by@leoleahyand independently verified by@ne1i,@garuspl,@sergiocr06, and@Atomic258).Testing
Environment: Windows 11 x64, Python 3.12.10, CPU-only (rebased on
de4c373).python -I tests/test_meshlet_page.py-> 70/70 OKpython -m compileall -q tools/meshlet_page.py tests/test_meshlet_page.py-> exit 0python -I scripts/check_no_game_data.py tools/meshlet_page.py tests/test_meshlet_page.py-> exit 0git diff --check-> clean🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.