From 497a8e9971d935be4c3d75cbebf862b645bc02a5 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 14 Sep 2020 15:46:35 +0200 Subject: Try vsync, fallback to fps limit if vsync fails --- include/Vsync.hpp | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100644 include/Vsync.hpp (limited to 'include') 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 - -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 -- cgit v1.2.3