Game Development Community

Question about increasing performance

by B. Spencer · in Torque Game Builder · 04/28/2010 (2:25 am) · 3 replies

Hello,

Wanted to ask and find out if objects in scene are invisible, would this preserve resources and memory, and also increase fps when game is running? Want to know if this would work on a for example, platform game?

Want to use triggers to make sprites/objects visible at certain points in the level.

Or will I have to create some type of spawn function for objects, and have them spawned when player walks on a trigger or something?

Thanks! in advance...

#1
04/28/2010 (5:41 am)
Objects that are invisible don't get rendered so you save render time only. They are still updated for physics (etc) but you can turn off physics sending which stops any proactive physics work taking place.

Anything that's off-screen doesn't take any render time so making something invisible only saves render time if they're actually on-screen. Obvious I know but I thought I'd point it out.

If your GPU is fast you may see very little improvement by making things invisible.

Disabling objects has a much more profound effect on performance however.

Melv.
#2
04/28/2010 (11:11 am)
@Melv - I always pondered about this, now i know for sure. thanks.
#3
04/28/2010 (1:08 pm)
Thanks for that info.

I'll experiment, and see what happens.
Smooth performance is a plus in my game, or any game for that matter.

B.Spencer