fix stale decodes and streamer holes, speed up world textures and export #43
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/rpatty-dev--PercyStar!43
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/43/head"
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?
@asm512 on GitHub · 2026-11-22 16:46 UTC · original
asm512:review-fixes→main· +483 −220 · 3 files · 1 commits · merged 2026-11-22 17:15 UTCFixes for a few things I hit while reviewing the code against the latest files.
Bugs
Performance
Testing
cargo test --release: 98 passPERCYSTAR_LEVELS_RPF), and one covers the stale-decode guard.@rpatty-dev on GitHub · 2026-11-22 17:15 UTC · original
Merged and verified (
cargo test --release: 98 passed; 0 failed)! 🙌Also layered a few extra optimizations on top of your PR:
src/world_gpu.rs: Removed the per-archetypeMutexlock and 1 ms sleep inside the streaming loop, movedset_thread_texture_cap(128)once per worker thread, and scaled worker count cleanly ((cores / 2).clamp(3, 6)).src/tex.rs: Reused the openFilehandle acrossttpf_read_virtualcalls via thread-localLAST_TTPF_FILEand sharedRc<PathBuf>keys inCHUNK_CACHEto avoid per-chunk file opens and path allocations.Thanks again for the stale-decode, streamer-hole, cell-batching, and mip-cap fixes!