summaryrefslogtreecommitdiffhomepage
path: root/main/main-impl.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-26 01:00:38 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-26 01:00:38 +0200
commit3716c496b975e0205e0cb65466e02e919ab4741e (patch)
tree23c6ad2aa6c3de0963506d6a353ebd989a6e161d /main/main-impl.hpp
parent22998e309dcf6c95c36730f86030bece0fca9667 (diff)
work on frame limiter
Diffstat (limited to 'main/main-impl.hpp')
-rw-r--r--main/main-impl.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/main-impl.hpp b/main/main-impl.hpp
index 202654db..d4a5af9a 100644
--- a/main/main-impl.hpp
+++ b/main/main-impl.hpp
@@ -51,7 +51,7 @@ struct main_impl final : Platform::Sdl2Application, floormat_main
[[maybe_unused]] void anyEvent(SDL_Event& event) override;
void drawEvent() override;
- void update_from_window_flags();
+ void update_window_state();
bool is_text_input_active() const noexcept override;
void start_text_input() noexcept override;
@@ -69,9 +69,9 @@ private:
wall_mesh _wall_mesh;
Magnum::Timeline timeline;
struct {
- float value = 1e-1f;
+ float value = 0;
float jitter = 0;
- bool do_sleep = true;
+ bool do_sleep = false;
} dt_expected;
struct draw_bounds final { std::int16_t minx, maxx, miny, maxy; };