Qt animation without Animation Framework
I need to update QPixmap 1024x128, 30...60 times a second and i don't want
to use Animation Framework - i think is overkill for this purpose. So, any
ideas?
Should i use QTimer with 30...60 ticks per second (TPS) and call update()
in timer SLOT? But QTimer is not syncronized with actual screen updates
and QTimer is inaccurate. My QTimer rate may be too low (not smooth
picture) or too high (eat too much CPU) - how to find good one? My
experiment showed that i need different QTimer interval for my linux and
windows machines to get smooth update: linux: 30 TPS, windows: 50...60 TPS
(when i set 1000/30 msec interval for windows, i see rugged motion).
No comments:
Post a Comment