Repository navigation
Conversation
Co-Authored-By: GPT-6.2 Sol <noreply@openai.com>
1 task done
|
Tested a953bac on Linux, Python 3.14.4: Python side pass, Rust side not run python3 -I tests/test_meshlet_page.py: 66 of 66 pass, the same with LEONIDA_MESHLET_NATIVE=0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed PERF-MESHLET-NATIVE in the coordination issue.
Changes
tools/meshlet_nativeRust cdylib. It validates ordinary meshlet groups, decodes packed positions, normals and tangents, and computes packed-block plausibility and group geometry counts. When several geometry checks are enabled, they share a single triangle walk.LEONIDA_MESHLET_NATIVE=0runs the Python implementation. Wrapped offsets, non-finite transforms, and radius comparisons close to the rounding boundary ofmath.distalso go through Python.Benchmark
summarise_page()on one synthetic 1,130,752-byte page, eight groups, 126,976 triangles. Times are the median of seven runs per mode, with the execution order rotated and library already loaded. Every result serialized to identical JSON. Base Python is867d922f0. The pure-Python comparison uses #7206 at80ebbd597.A separate timed pair used a 13,013,120-byte synthetic page with 256 groups and 2,031,616 triangles. All checks took 25,186.763 ms in base Python and 266.611 ms in Rust (94.47x), with byte-identical JSON.
Windows 11, Ryzen 9 5900X, CPython 3.12.10, rustc 1.100.0 (GNU). CPU only. No GPU or GPU driver was involved.
Verification
tests/test_meshlet_native.pypassed all 11 tests with the library. It compares exact IEEE bytes, JSON bytes and exception types and arguments across 2,400 seeded synthetic pages. It also covers NaN payloads, infinities, degenerate faces, signed indices in the standalone Python helpers, malformed layouts, wrapped offsets, and native dispatch and refusals.tests/test_meshlet_page.pypassed all 66 tests with the library enabled, disabled and physically absent. The three fallback tests also passed with the library absent.tests/test_vertex_types.pypassed with one pre-existing skip.scripts/check_no_game_data.py, andgit diff --checkpassed. All inputs were synthetic.AI-assisted with GPT-6.2 Sol.