aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-14 15:46:35 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-14 15:46:35 +0200
commit497a8e9971d935be4c3d75cbebf862b645bc02a5 (patch)
tree310ce1e2d3bebce94317253a93e6374acf7b39d1 /include
parent46c0e4438c7092a5f45468475f0dffcc3dad041c (diff)
Try vsync, fallback to fps limit if vsync fails
Diffstat (limited to 'include')
-rw-r--r--include/Vsync.hpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/Vsync.hpp b/include/Vsync.hpp
deleted file mode 100644
index 387d2b5..0000000
--- a/include/Vsync.hpp
+++ /dev/null
@@ -1,15 +0,0 @@
-#pragma once
-
-#include <SFML/Graphics/RenderWindow.hpp>
-
-namespace QuickMedia {
- class VSync {
- public:
- VSync(int framerate);
- void display(sf::RenderWindow &window);
- private:
- sf::Int64 target_frame_delta_micro;
- sf::Int64 overflow;
- sf::Clock timer;
- };
-} \ No newline at end of file