-
-
Notifications
You must be signed in to change notification settings - Fork 4
QTimer isn’t reliable #16
Copy link
Copy link
Open
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Description
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or request
Type
Fields
Give feedbackNo fields configured for issues without a type.
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