MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / ProcessMessagesNoWait

Function ProcessMessagesNoWait

engine/Poseidon/Core/Game/GameLoop.cpp:51–58  ·  view source on GitHub ↗

Idle heartbeat used by blocking waits (progress screen, debug window, triWaitFrames). Tickles the watchdog and pumps OS events so the window stays responsive; does not run a full AppIdle — callers that want that call AppIdle() directly.

Source from the content-addressed store, hash-verified

49// stays responsive; does not run a full AppIdle — callers that want that
50// call AppIdle() directly.
51void ProcessMessagesNoWait()
52{
53 GDebugger.ProcessAlive();
54 if (GEngine)
55 GEngine->HandleEvents();
56 else
57 SDL_PumpEvents();
58}
59
60void RenderFrame(float deltaT, bool enableDraw)
61{

Callers 3

WaitForCloseFunction · 0.85
TriWaitFramesFunction · 0.85
FrameMethod · 0.85

Calls 2

ProcessAliveMethod · 0.80
HandleEventsMethod · 0.45

Tested by 1

TriWaitFramesFunction · 0.68