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