From 604ad3067a954bb3953234b3f07a53b1f7dce05d Mon Sep 17 00:00:00 2001 From: Jean-Pierre Martineau Date: Sun, 4 Oct 2026 17:49:25 -0400 Subject: [PATCH] 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) --- .claude/skills/profile-picocalc/scripts/watchdog.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.claude/skills/profile-picocalc/scripts/watchdog.py b/.claude/skills/profile-picocalc/scripts/watchdog.py index 5bc8ca6..b17718b 100644 --- a/.claude/skills/profile-picocalc/scripts/watchdog.py +++ b/.claude/skills/profile-picocalc/scripts/watchdog.py @@ -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