Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 463db82

Browse files
committed
poll events on draw, hels with responsiveness
1 parent 4bb04b8 commit 463db82

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Main.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -255,17 +255,15 @@ namespace RTE {
255255
while (!System::IsSetToQuit()) {
256256
bool serverUpdated = false;
257257
updateStartTime = g_TimerMan.GetAbsoluteTime();
258+
PollSDLEvents();
259+
g_WindowMan.Update();
258260

259261
g_TimerMan.Update();
260262

261263
// Simulation update, as many times as the fixed update step allows in the span since last frame draw.
262264
while (g_TimerMan.TimeForSimUpdate()) {
263265
serverUpdated = false;
264266

265-
PollSDLEvents();
266-
267-
g_WindowMan.Update();
268-
269267
g_PerformanceMan.NewPerformanceSample();
270268
g_PerformanceMan.UpdateMSPSU();
271269
g_TimerMan.UpdateSim();

0 commit comments

Comments
 (0)