diff options
| author | Mel <einebeere@gmail.com> | 2024-04-09 03:29:14 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2024-04-09 03:29:14 +0200 |
| commit | 2ab9e650f814d47e78fc95500605b4561922893d (patch) | |
| tree | 1850dcdd1e198d8ca77b2677b5f1721757e16441 /src/Render.hpp | |
| parent | 15237a469afe1fd6a6958466bae761ec68b647dc (diff) | |
| download | meowcraft-2ab9e650f814d47e78fc95500605b4561922893d.tar.zst meowcraft-2ab9e650f814d47e78fc95500605b4561922893d.zip | |
Add FPS limiting for render thread
Diffstat (limited to 'src/Render.hpp')
| -rw-r--r-- | src/Render.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Render.hpp b/src/Render.hpp index 09c6fee..6670858 100644 --- a/src/Render.hpp +++ b/src/Render.hpp @@ -80,6 +80,8 @@ private: void render_scene(Scene const& actions, GFX::Texture const& texture) const; static void setup_gl(); + void wait_until_next_frame_start(Real spent_time_budget) const; + GFX::Resources m_resources; GFX::Window& m_window; std::shared_ptr<Control> m_control; |
