Ticket #4408: dont_poll_SDL_events_v1.patch

File dont_poll_SDL_events_v1.patch, 576 bytes (added by elexis, 7 years ago)
  • source/tools/atlas/GameInterface/GameLoop.cpp

    static void* RunEngine(void* data)  
    214214
    215215        ReloadChangedFiles();
    216216
    217217        RendererIncrementalLoad();
    218218
    219         // Pump SDL events (e.g. hotkeys)
    220         SDL_Event_ ev;
    221         while (in_poll_event(&ev))
    222             in_dispatch_event(&ev);
    223 
    224219        if (g_GUI)
    225220            g_GUI->TickObjects();
    226221
    227222        state.view->Update(state.realFrameLength);
    228223