Create presentation thread

This commit is contained in:
2021-08-10 17:57:13 -07:00
parent 7965da421c
commit 8b59c5c382
3 changed files with 35 additions and 1 deletions

View File

@@ -196,6 +196,10 @@ private:
#endif
} SurfaceInfo;
unordered_map<KrSurfaceHandle, SurfaceInfo> m_surfaces;
std::thread m_presentationThread;
void presentationThreadFunc();
std::atomic<bool> m_stop;
void renderFrame();
};
#endif