Game Development Community

Multiple Torques on a Mac? What?

by Lally Singh · in Torque Game Engine · 02/18/2007 (10:10 pm) · 2 replies

Hey All,

It seems that the only way to make Torque run is to have it as the front window. It seems to completely go dead the rest of the time, even if I just switch windows to another app. This really didn't matter much (why waste CPU on a game when the player's not playing?) _until_ I try to set up a game as a server, dedicated or otherwise.

Some time in ethereal showed that Torque in server mode wouldn't respond to the UDP packet sent by another client torque instance until I Cmd-Tab back to the server-torque's window. Then, to get them running evenly, I have to continuously cmd-tab back and forth to (apparently) give each one CPU cycles.

I know it's not the best-supported platform in the Torque world, but it's also not 1984 anymore.

Am I the only one who's hit this? Anyone know a way around this? So far I've been using the platformX86UNIX tweaks to the mac version to do it (thank God).

#1
02/20/2007 (5:42 am)
I'm pretty sure there's code that automatically pauses the game when it loses focus. It's a pretty sensible thing to do when you're *playing* the game. (It may be slightly less sensible when you're trying to develop a stand-alone server and test it with a client on the same box.)

I'd make one of two suggestions.
1) Find the auto-pause code, and disable it *only* for your stand-alone server.
2) Run the client on a different box than your stand-alone server.
#2
02/20/2007 (10:28 am)
It hasn't paused, it's just running really, really, slowly:
garagegames.com/mg/forums/result.thread.php?qt=55355

There's also console variables, but thanks to platform sniglets, if you don't modify the C++, then the background sleep variables have different effects on different platforms.

Gary (-;