summaryrefslogtreecommitdiff
path: root/test/pdf_scroll_bench.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-18 17:44:54 -0300
committerGabriel Schneider <[email protected]>2026-11-18 17:44:54 -0300
commit41f665c986886790e474bef78928f4b0d3b05c21 (patch)
treefe14dc9afdbcc36e42fbdcb17e7257083dda9d98 /test/pdf_scroll_bench.zig
parente3e9a2d35ded6b668c2bb668845bb39d86e0412b (diff)
parentf3a38a45c00eb02f0aaaca7185e5601ab7224913 (diff)
downloadpardes-41f665c986886790e474bef78928f4b0d3b05c21.tar.gz
pardes-41f665c986886790e474bef78928f4b0d3b05c21.zip
integration: addons in a client part 4 (the scroll bench's clock, a view laid out as the active one, the Shadow path deleted, address P:H on a late joiner) with the client path's round 4 and Zig 0.17.1: no conflict; on Zig 0.17.1: replicas with five clients: diverged 0, unequal 0, deltas checked/wrong 1782/0, 1769/0, 1871/0, quiet checks 582/0, 773/0, 791/0; tui core-test 819/960 (141 skipped), shell-test 995/998, behaviour-test 274/274 and its replay 20 seeds with 0 failures, pane-test 183/184; gui frame corpus 77/77 Debug and ReleaseFast against mbase171, unit-test 1592/1596, the tui build has no SDL symbol; the perf window, each of its three runs now the gated tree's: corpus2x -0.096% (spread 0.19%), corpus-snake -0.164%: the +0.77% that held this merge was the gate measuring another workspace (the helper that ignored GATE_W)
Co-Authored-By: Claude Fable 5.2 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/pdf_scroll_bench.zig')
-rw-r--r--test/pdf_scroll_bench.zig6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/pdf_scroll_bench.zig b/test/pdf_scroll_bench.zig
index bb4640f7..595037ae 100644
--- a/test/pdf_scroll_bench.zig
+++ b/test/pdf_scroll_bench.zig
@@ -277,9 +277,15 @@ fn measure(config: Config, plan: Plan) !Result {
var visual: u64 = 0x7061_7264_6573_5343;
var shown: u64 = 0;
var total: u64 = 0;
+ // The core's clock a frame on at each, as a shell's loop moves it
+ // (its glide and a fling are on that clock).
+ var now: u64 = std.time.ns_per_s;
+ core.advance(now);
for (0..plan.frames) |frame| {
const button: pardes.Mouse.Button = if (plan.scenario == .fling_reverse and frame >= plan.down_frames) .wheel_up else .wheel_down;
const started = nowNs();
+ now += pardes.frame_ns;
+ core.advance(now);
for (0..ticks) |_| core.update(.{ .mouse = .{ .button = button, .kind = .press, .col = rect.x + rect.w / 2, .row = rect.y + rect.h / 2, .amount = config.turn } });
_ = arena.reset(.retain_capacity);
const surface = try core.render(arena.allocator());