Keeping Rendering going

Problems building or running the engine, queries about how to use features etc.
jchmack
Goblin
Posts: 267
Joined: Tue Feb 28, 2006 12:30 pm

Keeping Rendering going

Post by jchmack »

I'm trying to add networking to my game and i need two instances of my app running at once so i can test networking through the echo port. How exactly would I keep ogre from holding rendering when its not the active window? And how do i keep the mouse from being restricted to the render window when not in fullscreen mode?
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66

Post by sinbad »

User avatar
Game_Ender
Ogre Magi
Posts: 1269
Joined: Wed May 25, 2005 2:31 am
Location: Rockville, MD, USA

Post by Game_Ender »

Those threads are very outdated Sinbad. The situation in Ogre is currently a little better because windows are only enabled and disabled by the WindowEventUtilities::messagePump function. So just setting your window back to active right after calling the messagePump function should allow you to get around this. You could also not use the messagePump and process your own message loop for the window but then you will have to repeat this for all platforms.