🐛 Fix tile cache exhaustion

This commit is contained in:
Aitor Moreno 2025-03-20 19:24:02 +01:00
parent 7a4c9d9933
commit 60bc88a075
2 changed files with 86 additions and 14 deletions

View file

@ -462,10 +462,12 @@ impl RenderState {
ey + interest_delta
*/
self.pending_tiles = vec![];
self.surfaces.cache_clear_visited();
for y in sy..=ey {
for x in sx..=ex {
let tile = (x, y);
self.pending_tiles.push(tile);
self.surfaces.cache_visit(tile);
}
}
self.current_tile = None;