From 771e377f6db9c3aed1ab85bc36a774f4176272cc Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 13 Nov 2026 10:09:48 -0300 Subject: debugger: decouple font zoom from window size and add restart --- gui/bench/RESULTS.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gui/bench') diff --git a/gui/bench/RESULTS.md b/gui/bench/RESULTS.md index 0426dce..5281ac2 100644 --- a/gui/bench/RESULTS.md +++ b/gui/bench/RESULTS.md @@ -132,3 +132,25 @@ without executing the target. Screenshot: `/tmp/ztrace-ui-review/native-final-reviewed.jpg`. Native font-shortcut injection was unavailable through the automation tool's punctuation grammar; the actual headless key handler passed the nine size/zoom combinations. + +## Native zoom and restart follow-up + +The original headless size tests missed a native resize feedback loop: `canvas()` +also changes the window dimensions. Dividing the window size by font zoom and +passing it back to `canvas()` repeatedly enlarged the window when zoomed out. +The GUI now keeps the canvas at the actual window size and scales drawing, +clipping and pointer coordinates independently. No renderer-library changes were +needed. `test/restart.py --native` verifies the actual SDL window/backing stays +800×700 through 60–200% zoom and repeated zoom key presses, including scaled +button hits and tiny-overlay lens close controls. Headless checks run in the GUI +suite; native checks are explicit because they require a display. + +Restart is available through the toolbar arrow, Shift-r, and `restart`. Tests +cover exited, running and stopped targets; each launch creates a fresh recording, +retains the same executable/arguments, and leaves no previous target running. +Breakpoints and JIT symbols reset because process addresses may change. + +The reboot cleared the historical `/tmp` artifacts listed above. The same V8 +revision's runtime, source and all split DWARF artifacts have been restored into +`.ws/v8-debug/`, an ignored persistent workspace cache. Historical timing results +remain as reported; the fresh UI regression does not remeasure V8 stepping cost. -- cgit v1.3