mirror of
https://github.com/moonlight-stream/moonlight-qt
synced 2025-03-05 15:17:20 +00:00
20 lines
332 B
C++
20 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;
|
|
};
|