WaitEvent without delaying the game loop

BlitzPlus Forums/BlitzPlus Programming/WaitEvent without delaying the game loop

Pineapple(Posted 2008) [#1]
Is there a way to check for UI events without delaying the game loop? My game is taking a huge hit on performance and the control response is still buggy. If WaitEvent waits longer, the game slows, and if I have it wait for a shorter period of time the controls are less responsive.


Beaker(Posted 2008) [#2]
What about PeekEvent?


Pineapple(Posted 2008) [#3]
But if I use that, how will I check the menus?

Note that PeekEvent event does not update the other event functions such as EventID or EventData.



Would the best solution to be scrap the menus and use something else so that I can use PeekEvent?