Explorar o código

sdl_impl: Pump SDL Events at 1000 Hz

Morph %!s(int64=5) %!d(string=hai) anos
pai
achega
e7e8a87927
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/input_common/sdl/sdl_impl.cpp

+ 1 - 1
src/input_common/sdl/sdl_impl.cpp

@@ -698,7 +698,7 @@ SDLState::SDLState() {
             using namespace std::chrono_literals;
             while (initialized) {
                 SDL_PumpEvents();
-                std::this_thread::sleep_for(5ms);
+                std::this_thread::sleep_for(1ms);
             }
         });
     }