I'm currently trying to debug my client/server app on a PC. For this, I disabled a statement in game.cpp, which ran Sleep() while game's window inactive, because I want two pfrog apps running simultaneously - a server, and a client.
This doesn't work - game fails with an exception once I make it's window inactive. I researched this - and found that GetDisplay returns 0.
Further research brought me to this:
I tried disabling BeginScene() call in GetDisplay(), but game still hangs(now in SetRenderTarget()). Probably something else was digged deep into game logic.
Is it actually possible to run pocketfrog in background?
This doesn't work - game fails with an exception once I make it's window inactive. I researched this - and found that GetDisplay returns 0.
Further research brought me to this:
- Code:
/// Begin a scene. Must be called before rendering. This function will fail if your
/// window doesn't have focus.
/// @remark GetBackBuffer() will return 0 if BeginScene() fails or is not called first.
bool BeginScene();
I tried disabling BeginScene() call in GetDisplay(), but game still hangs(now in SetRenderTarget()). Probably something else was digged deep into game logic.
Is it actually possible to run pocketfrog in background?