mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2024-12-25 02:23:14 +00:00
21 lines
400 B
C++
21 lines
400 B
C++
#pragma once
|
|
|
|
#include "pacer.h"
|
|
|
|
class NullThreadedVsyncSource : public IVsyncSource
|
|
{
|
|
public:
|
|
NullThreadedVsyncSource(Pacer* pacer);
|
|
|
|
virtual ~NullThreadedVsyncSource();
|
|
|
|
virtual bool initialize(SDL_Window* window, int displayFps);
|
|
|
|
private:
|
|
static int vsyncThread(void* context);
|
|
|
|
Pacer* m_Pacer;
|
|
SDL_Thread* m_Thread;
|
|
SDL_atomic_t m_Stopping;
|
|
int m_DisplayFps;
|
|
};
|