ITunes on Mac Causing Problems
by chris · in Torque Game Builder · 05/08/2005 (8:24 am) · 6 replies
Not sure if anyone else is having a problem with this, or where I should really be posting this question, but anyways...
When running T2D with iTunes playing in the background, I get some major hiccups in preformance when the song changes. Usually it causes any current collisions to fail, and it lasts for about a second.
Anyone else having this issue?
When running T2D with iTunes playing in the background, I get some major hiccups in preformance when the song changes. Usually it causes any current collisions to fail, and it lasts for about a second.
Anyone else having this issue?
About the author
#2
when the game launches. At least, I haven't had any of the missed collisions since setting this.
Thanks again for the info. I couldn't figure out why iTunes would need so much processing power to switch the song :P
05/08/2005 (9:09 am)
Thanks Bryan - I think I was able to fix it by setting:t2dSceneGraph.setScenePhysicsFPSActive(true);
when the game launches. At least, I haven't had any of the missed collisions since setting this.
Thanks again for the info. I couldn't figure out why iTunes would need so much processing power to switch the song :P
#3
05/08/2005 (9:26 am)
Hey cool. I guess I shouldn't have assumed that this option would be on by default :)
#4
05/08/2005 (9:28 am)
Yeah, I did the same thing :)
#5
05/08/2005 (10:27 pm)
If iTunes sets itself as the foreground / focused app, this will also cause T2D to slow-down (as Torque basically tries to get out of the way of other apps who want processor time / focus). But yes, if you turn the physicsfps catch up stuff on, your sim will handle interapp stuff like this (at the cost of a little more expensive overall physics processing / lower overall fps).
#6
Thanks!
05/09/2005 (3:49 am)
The physicsFPS stuff does a great job. It also solved another problem I was having with my impulse forces not working right.Thanks!
Torque Owner Bryan Edds
Now, the collision checks and performance *should lag slightly when this happens but things should still be okay because T2D has a limit to how much it will let collision and physics get behind (I believe it's not allowed to fall under 10 FPS). Unfortunately, it sounds like you're falling below this, so that sounds like a problem with T2D's collision system slowing down more than the minimum. If anything, the game itself should slow down (like the old NES and SNES games when they had too much happening on the screen).
Now, this is all based on my personal understanding of what little I've looked into T2D's subsystems - so I might have gotten a couple things wrong. Buyer beware, I guess ;)
A work-around should be possible if your Mac allows you to adjust your iTunes processing priority (at least that's what we call them in windows) below the T2D program's priority.