Skip to content

Commit 46b6836

Browse files
committed
Fixed 10 FPS modules
1 parent 4bb05dd commit 46b6836

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

QtFPSvsTIMEAnimation/fps_anim.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void FrameAnimation::_tick()
5858
_blue_canvas->draw();
5959

6060
// 10 FPS canvas must be draw once every 6x
61-
if (_counter % 10 == 0)
61+
if (_counter % 6 == 0)
6262
_red_canvas->draw();
6363

6464
_counter++;

QtFPSvsTIMEAnimation/time_anim.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void TimeAnimation::_tick()
6969
}
7070

7171
// 10 FPS canvas must be draw once every 6x
72-
if (_counter % 10 == 0)
72+
if (_counter % 6 == 0)
7373
{
7474
// Compute how much time passed since the last update
7575
qint64 passed = now - _last_time_10fps;

QtFPSvsTIMEAnimation/time_anim_improved.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ void TimeAnimationImproved::_tick()
7676
}
7777

7878
// 10 FPS canvas must be draw once every 6x
79-
if (_counter % 10 == 0)
79+
if (_counter % 6 == 0)
8080
{
8181
// Compute how much time passed since the last update
8282
qint64 passed = now - _last_time_10fps;

0 commit comments

Comments
 (0)