diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-29 19:09:26 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-29 21:13:33 -0300 |
| commit | 2eb8860b2ca05c426f3962661441aaee13d3be44 (patch) | |
| tree | 8d363280576cc86db7209ef37c6210a0d5b75c8e /src/FrameStats.zig | |
| parent | e4cfd57bc41c5740e3a823a8f05d70d3e87b68ca (diff) | |
| download | pardes-2eb8860b2ca05c426f3962661441aaee13d3be44.tar.gz pardes-2eb8860b2ca05c426f3962661441aaee13d3be44.zip | |
web: the browser shell builds again and loads a dump of a native build: a theme by its name, a field compiled out passed over, no disk asked; touch.dump replaces the hand-written ZON fixture
Fixed for wasm32-freestanding: counts as usize, no threads, stb_image, tape or
host stat there. touch.mjs follows the renderer's 13 tag-layer fields, helix's
retuned colours and the tag column.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'src/FrameStats.zig')
| -rw-r--r-- | src/FrameStats.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/FrameStats.zig b/src/FrameStats.zig index 2287002e..c27e74af 100644 --- a/src/FrameStats.zig +++ b/src/FrameStats.zig @@ -173,7 +173,7 @@ pub fn record(stats: *FrameStats, end_ns: u64, moving: bool, skipped: bool) void if (stats.armed and @as(u64, gap) * std.time.ns_per_us * 2 > stats.period_ns * 3) stats.jank += 1; if (@as(u64, frame.update_us + frame.render_us + frame.present_us) * std.time.ns_per_us > stats.period_ns) stats.over_budget += 1; if (skipped) stats.skipped += 1; - stats.ring[stats.count % capacity] = frame; + stats.ring[@intCast(stats.count % capacity)] = frame; stats.count += 1; stats.last_end_ns = end_ns; stats.armed = moving; |
