Changeset 123


Ignore:
Timestamp:
Aug 15, 2010, 6:56:09 PM (10 years ago)
Author:
sam
Message:

Make the GTK editor more responsive.

File:
1 edited

Legend:

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

    r122 r123  
    157157    new DebugFps();
    158158
    159     //gtk_idle_add(tick, glarea);
    160     gtk_timeout_add(1000 / FPS, tick, glarea);
    161 
     159    /* We tick from the idle function instead of a timeout to avoid
     160     * stealing time from the GTK loop. */
     161    gtk_idle_add(tick, glarea);
    162162    gtk_main();
    163163
Note: See TracChangeset for help on using the changeset viewer.