Skip to content

Commit

Permalink
perf: change min_width to 6
Browse files Browse the repository at this point in the history
  • Loading branch information
coeuvre committed Jan 29, 2024
1 parent b98bcb4 commit 3eace44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tracing.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3eace44

Please # to comment.