Bug 663582 - Brush outline is too slow

Even less drawing: let the timeout running if it triggers within the
50ms since the last drawing, so it's reduced to its actual purpose of
updating to the actual cursor position after framerate-limiter skipped
drawing.
This commit is contained in:
Michael Natterer 2012-10-06 16:39:14 +02:00
parent 52c00faad5
commit 52d933a1cc
1 changed files with 6 additions and 0 deletions

View File

@ -180,6 +180,12 @@ gimp_draw_tool_control (GimpTool *tool,
static gboolean
gimp_draw_tool_draw_timeout (GimpDrawTool *draw_tool)
{
guint64 now = g_get_monotonic_time ();
/* keep the timeout running if the last drawing just happened */
if ((now - draw_tool->last_draw_time) <= MINIMUM_DRAW_INTERVAL)
return FALSE;
draw_tool->draw_timeout = 0;
gimp_draw_tool_draw (draw_tool);