Changeset 124


Ignore:
Timestamp:
Aug 16, 2010, 2:36:34 AM (10 years ago)
Author:
sam
Message:

Make the editor more responsive by handling GTK events before waiting for
the loop to complete.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gtk/editor.cpp

    r123 r124  
    8383        Ticker::TickRender();
    8484        gtk_gl_area_swapbuffers(GTK_GL_AREA(widget));
     85        while (g_main_context_iteration(NULL, FALSE))
     86            ;
    8587        Ticker::ClampFps(FPS);
    8688    }
  • trunk/src/ticker.cpp

    r122 r124  
    7474    Profiler::Stop(Profiler::STAT_TICK_FRAME);
    7575    Profiler::Start(Profiler::STAT_TICK_FRAME);
     76
    7677    Profiler::Start(Profiler::STAT_TICK_GAME);
    7778
Note: See TracChangeset for help on using the changeset viewer.