Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: SSH on Thu 15/09/2005 13:27:49

Title: Object.MergeIntoBackground performance query
Post by: SSH on Thu 15/09/2005 13:27:49
Does merging an object into the background make the game run faster than if you have the object on with its baseline set to 0? I'm using lots of objects onscreen and objects 0 and 1 are backgrounds, really. Would merging them make the game run faster?

Title: Re: Object.MergeIntoBackground performance query
Post by: Rui 'Trovatore' Pires on Thu 15/09/2005 14:20:46
Well, the manual certainly hints at that...

QuoteMerges the object into the background scene for this room. By doing this, the object becomes part of the background and so does not slow the game down.
Title: Re: Object.MergeIntoBackground performance query
Post by: SSH on Thu 15/09/2005 15:10:13
Ah, I knew I'd seen it somewhere. But if you have 18 objects going, does taking 2 out save much? Also, I think its easier just to keep them as objects. Ah well, we'll see if people have problems in beta.
Title: Re: Object.MergeIntoBackground performance query
Post by: Kweepa on Thu 15/09/2005 18:11:13
If they are small, it won't make much difference.
If they are the size of the screen, it could make a significant difference.
Title: Re: Object.MergeIntoBackground performance query
Post by: Pumaman on Thu 15/09/2005 21:48:58
Indeed. If you Merge them, then in performance terms it's as if they're not there at all. Try it and see.