Files
iw4L/crates
JohnM 07f7a40f4e Send dirty static-model lighting tiles to the GPU as tile writes
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>
2026-10-13 13:07:40 +08:00
..
2026-09-13 13:52:33 +03:00