This website works better with JavaScript.
Home
Help
Sign In
lolengine
/
lol
mirror of
https://github.com/lolengine/lol
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
Make the editor more responsive by handling GTK events before waiting for
the loop to complete.
legacy
Sam Hocevar
sam
14 years ago
parent
601ce07746
commit
a156dd810e
2 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
src/gtk/editor.cpp
+1
-0
src/ticker.cpp
+ 2
- 0
src/gtk/editor.cpp
View File
@@ -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);
}
+ 1
- 0
src/ticker.cpp
View File
@@ -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();
Write
Preview
Loading…
Cancel
Save