diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-05-02 14:44:31 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-05-02 14:44:31 +0100 |
commit | f2654cf7d46b0e55d288cc48bdd6af872fb021f4 (patch) | |
tree | b3bc31345a2ea16fd6b76b0435247027fab48808 /application | |
parent | Bump to release GCC version (diff) | |
download | ilt-f2654cf7d46b0e55d288cc48bdd6af872fb021f4.tar.bz2 ilt-f2654cf7d46b0e55d288cc48bdd6af872fb021f4.tar.xz ilt-f2654cf7d46b0e55d288cc48bdd6af872fb021f4.zip |
Fix warnings produced by new clang-tidy
Diffstat (limited to 'application')
-rw-r--r-- | application/main.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/application/main.cpp b/application/main.cpp index 2fc9f99..61206eb 100644 --- a/application/main.cpp +++ b/application/main.cpp @@ -129,7 +129,6 @@ public: shader.setUniform("ambientColor", {0.5, 0.5, 0.5}); auto t_start = std::chrono::high_resolution_clock::now(); - const auto framelen = std::chrono::milliseconds {1000} / 120; inputStack.objects.push_back(shared_from_this()); inputStack.objects.insert( @@ -147,9 +146,6 @@ public: world.apply<Renderable>(&Renderable::render, shader); windows.apply(&Window::SwapBuffers); - if (const auto snz = framelen - t_passed; snz.count() > 0) { - SDL_Delay(snz.count()); - } t_start = t_end; } |