Commit 8a89a335 authored by Christian Hergert's avatar Christian Hergert

graph: use monotonic clock for time

We can't rely on frame time, since that seems to have shifted
in recent gtk+ commits to avoid jitter.

I'd like to use the frame time, but that probably puts undue
requirements on the graph model.
parent 2aad4470
......@@ -131,7 +131,7 @@ dzl_graph_view_tick_cb (GtkWidget *widget,
gtk_widget_get_allocation (widget, &alloc);
frame_time = gdk_frame_clock_get_frame_time (frame_clock);
frame_time = g_get_monotonic_time ();
end_time = dzl_graph_view_model_get_end_time (priv->model);
x_offset = -((frame_time - end_time) / (gdouble)timespan);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment