diff --git a/src/events/EventSystem.cpp b/src/events/EventSystem.cpp index b690646f..20c2d8bf 100644 --- a/src/events/EventSystem.cpp +++ b/src/events/EventSystem.cpp @@ -48,9 +48,7 @@ void EventSystem::postEvents(const std::vector& events) void EventSystem::update(double deltaTime, double timeStamp) { std::lock_guard queueGuard{ queueLock }; - const double now = glfwGetTime(); - while (!eventQueue.empty() && eventQueue.top().is_due_at(now)) - { + while (!eventQueue.empty() && eventQueue.top().is_due_at(timeStamp)) { processEvent(eventQueue.top().get()); eventQueue.pop(); }