mirror of https://github.com/GNOME/gimp.git
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:
parent
52c00faad5
commit
52d933a1cc
|
@ -180,6 +180,12 @@ gimp_draw_tool_control (GimpTool *tool,
|
||||||
static gboolean
|
static gboolean
|
||||||
gimp_draw_tool_draw_timeout (GimpDrawTool *draw_tool)
|
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;
|
draw_tool->draw_timeout = 0;
|
||||||
|
|
||||||
gimp_draw_tool_draw (draw_tool);
|
gimp_draw_tool_draw (draw_tool);
|
||||||
|
|
Loading…
Reference in New Issue