diff --git a/src/gtk/editor.cpp b/src/gtk/editor.cpp index 3594d7f4..ab3f3cb8 100644 --- a/src/gtk/editor.cpp +++ b/src/gtk/editor.cpp @@ -82,6 +82,8 @@ static gint draw(GtkWidget *widget, GdkEventExpose *event) Video::Clear(); Ticker::TickRender(); gtk_gl_area_swapbuffers(GTK_GL_AREA(widget)); + while (g_main_context_iteration(NULL, FALSE)) + ; Ticker::ClampFps(FPS); } diff --git a/src/ticker.cpp b/src/ticker.cpp index c75c0872..80186f5d 100644 --- a/src/ticker.cpp +++ b/src/ticker.cpp @@ -73,6 +73,7 @@ void Ticker::TickGame() { Profiler::Stop(Profiler::STAT_TICK_FRAME); Profiler::Start(Profiler::STAT_TICK_FRAME); + Profiler::Start(Profiler::STAT_TICK_GAME); data->delta_time = data->timer.GetSeconds();