OSDN Git Service

[Qt][Draw] Fix drawing timing.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Wed, 9 May 2018 11:41:24 +0000 (20:41 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Wed, 9 May 2018 11:41:24 +0000 (20:41 +0900)
source/src/qt/gui/draw_thread.cpp

index c3dcd60..8cf8bf1 100644 (file)
@@ -115,9 +115,9 @@ void DrawThreadClass::doWork(const QString &param)
                }
                if(wait_count <= 0.0f) {
                        wait_count = wait_count + _rate;
-               } else if(wait_count < 10.0) {
+               } else if(wait_count < 7.0) {
                        msleep(10);
-                       wait_count = wait_count + _rate - 5.0;
+                       wait_count = wait_count + _rate - 7.0;
                } else {
                        wait_factor = (int)wait_count;
                        msleep(wait_factor);