Allow Pacer to wait for frames up until a few ms before v-sync for better smoothness and lower latency
This commit is contained in:
parent
d6e7173af0
commit
6b395c816f
8 changed files with 49 additions and 14 deletions
|
|
@ -7,7 +7,7 @@
|
|||
class IVsyncSource {
|
||||
public:
|
||||
virtual ~IVsyncSource() {}
|
||||
virtual bool initialize(SDL_Window* window) = 0;
|
||||
virtual bool initialize(SDL_Window* window, int displayFps) = 0;
|
||||
};
|
||||
|
||||
class Pacer
|
||||
|
|
@ -21,7 +21,7 @@ public:
|
|||
|
||||
bool initialize(SDL_Window* window, int maxVideoFps);
|
||||
|
||||
void vsyncCallback();
|
||||
void vsyncCallback(int timeUntilNextVsyncMillis);
|
||||
|
||||
bool isUsingFrameQueue();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue