profiler live snapping

This commit is contained in:
jacob 2026-04-02 00:17:01 -05:00
parent e22475fb1d
commit 8ae5498ba7

View File

@ -6286,6 +6286,8 @@ void V_TickForever(WaveLaneCtx *lane)
{
f64 ruler_left_ns = MinF64(profiler->ruler_start_ns, profiler->cursor_ns);
f64 ruler_right_ns = MaxF64(profiler->ruler_start_ns, profiler->cursor_ns);
ruler_left_ns = ClampF64(ruler_left_ns, view_start_ns, view_end_ns);
ruler_right_ns = ClampF64(ruler_right_ns, view_start_ns, view_end_ns);
ruler_len_ns = ruler_right_ns - ruler_left_ns;
f64 ruler_len_px = ruler_len_ns / profiler->ns_per_px;