[gimp] app: increase GimpDrawTool update rate
- From: Ell <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: increase GimpDrawTool update rate
- Date: Tue, 4 Feb 2020 15:51:55 +0000 (UTC)
commit 626e5b9b1491edc5695bc8c54d7631af5c47ab94
Author: Ell <ell_se yahoo com>
Date: Tue Feb 4 17:46:58 2020 +0200
app: increase GimpDrawTool update rate
Now that painting is done in a separate thread, the display update
rate has a far smaller impact on it. Increate the GimpDrawTool
update rate to 120 FPS. This makes brush-outline motion much
smoother.
app/tools/gimpdrawtool.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/app/tools/gimpdrawtool.c b/app/tools/gimpdrawtool.c
index 70e4e6c2d4..129f9293d8 100644
--- a/app/tools/gimpdrawtool.c
+++ b/app/tools/gimpdrawtool.c
@@ -53,9 +53,10 @@
#include "gimptoolcontrol.h"
-#define DRAW_TIMEOUT 4
-#define USE_TIMEOUT 1
-#define MINIMUM_DRAW_INTERVAL 50000 /* 50000 microseconds == 20 fps */
+#define USE_TIMEOUT
+#define DRAW_FPS 120
+#define DRAW_TIMEOUT (1000 /* milliseconds */ / (2 * DRAW_FPS))
+#define MINIMUM_DRAW_INTERVAL (G_TIME_SPAN_SECOND / DRAW_FPS)
static void gimp_draw_tool_dispose (GObject *object);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]