mirror of
https://github.com/vladtrc/iw4L
synced 2026-10-26 02:11:39 -04:00
07f7a40f4e
update_smodel_lighting wrote each dirty static-model lighting tile into the model lighting atlas through a tracked Assets::get_mut. Every frame with a dirty tile therefore marked the whole atlas modified, so Bevy extracted all of it again and rewrote the whole texture on the GPU, up to 1 MiB, for a few 256-byte tiles. The tile is now written through an untracked borrow and queued in ModelLightingAtlasTileWrites, as the moving-model lighting cache already does for the same atlas. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>