From 3eace443fc52812b33ad1b2f927eab36e5e2d1ae Mon Sep 17 00:00:00 2001 From: Chi Wang Date: Mon, 29 Jan 2024 14:12:19 +0800 Subject: [PATCH] perf: change min_width to 6 --- src/tracing.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracing.zig b/src/tracing.zig index 087372a..534f376 100644 --- a/src/tracing.zig +++ b/src/tracing.zig @@ -414,7 +414,7 @@ const ViewState = struct { fn calc_region(self: *ViewState, bb: c.ImRect) ViewRegion { const width_per_us = (bb.Max.x - bb.Min.x) / @as(f32, @floatFromInt((self.end_time_us - self.start_time_us))); - const min_width = 3; + const min_width = 6; const min_duration_us: i64 = @intFromFloat(@ceil(min_width / width_per_us)); return .{ .bb = bb,