Skip to content

Resolve Rust compiler warnings dynamic lod travesal#361

Merged
dmarcos merged 1 commit into
sparkjsdev:mainfrom
mrxz:cleanup-dynamic-lod-traversal
Jun 4, 2026
Merged

Resolve Rust compiler warnings dynamic lod travesal#361
dmarcos merged 1 commit into
sparkjsdev:mainfrom
mrxz:cleanup-dynamic-lod-traversal

Conversation

@mrxz
Copy link
Copy Markdown
Collaborator

@mrxz mrxz commented Jun 3, 2026

With the changes in #344 running npm run build:wasm logs a few warnings from the Rust compiler. Mainly boiling down to unused variables. This PR resolves them:

  • The _last_pixel_limit argument is left in to keep the signature identical to the standard traverse_lod_trees
  • The performance object was removed entirely, as the "test time" wasn't measuring anything and the resulting value was unused anyway
  • finer_count and limits have been removed as well, since no consumer read them

Leaving them in (e.g. as commented code) could simplify future testing/development, but this should be avoided. Temporarily adding them back in should be straightforward. If that ends up being a common occurrence/hindrance, using conditional compilation for them would be cleaner IMHO.

@dmarcos
Copy link
Copy Markdown
Contributor

dmarcos commented Jun 4, 2026

Thanks

@dmarcos dmarcos merged commit 2e7d9e0 into sparkjsdev:main Jun 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants