Add PoC VsyncSource for Windows using DwmFlush(). Soon to be replaced with D3DKMTWaitForVerticalBlankEvent().
This commit is contained in:
parent
e68a15c825
commit
f6a451d6e7
8 changed files with 108 additions and 15 deletions
20
app/streaming/video/ffmpeg-renderers/pacer/dxvsyncsource.h
Normal file
20
app/streaming/video/ffmpeg-renderers/pacer/dxvsyncsource.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#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;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue