The freeze watchdog logs how many of its tiles each raster had
A raster drawn with fewer tiles than its view needs is a frame with black where the missing ones belong. Logging have= beside tiles= makes that frame visible, which is how the zoom's black screen was measured. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
858053f5fa
commit
604ad3067a
1 file changed
+4
-2
@@ -181,9 +181,11 @@ def install():
|
||||
try:
|
||||
return orig_rg(vp, tiles, markers, *a, **k)
|
||||
finally:
|
||||
# have < tiles is a frame drawn short of ground: black where a tile is missing.
|
||||
have = sum(1 for layers in tiles.values() if layers)
|
||||
emit("raster", f"{(time.perf_counter() - t) * 1000:.0f}",
|
||||
f"coarse={k.get('coarse', False)}", f"z{vp.zoom}", f"tiles={len(tiles)}",
|
||||
threading.current_thread().name)
|
||||
f"coarse={k.get('coarse', False)}", f"z{vp.zoom}",
|
||||
f"tiles={len(tiles)} have={have}", threading.current_thread().name)
|
||||
|
||||
map_screen.render_ground = render_ground
|
||||
|
||||
|
||||
Reference in new issue
Block a user