QtPyHammer icon indicating copy to clipboard operation
QtPyHammer copied to clipboard

QTimer isn’t reliable

Open snake-biscuits opened this issue 5 years ago • 0 comments

When a QTimer is used for timing frames, either in the viewports or the demo player prototype, frames can lag

The error / deviation accumulates too. We could look at the time taken to execute functions tied to the timer and compensate for the deviation

Or asynchronously run the functions with a 1 frame delay, showing the previous frame (double buffering) some kind of “delayed execution” QTimer subclass (GFrameTimer?) could be useful

snake-biscuits avatar Sep 30 '20 18:09 snake-biscuits