Performance question

Look, i have a situation in which i need to have like 10 or 20 scripts running at the same time.

What is the best approach in terms of performance ?

a. Create N objects each one with one of the scripts i need ?
b. Create 1 object and attach to it all the scripts i need ?

I know its silly, very low number of scripts and also i think i already know the answer… but just in case…

what do you think ?

On the other hand, the application will demand a lot of resources, a lot of game objects and a lot of scripts in other areas, so, saving even if its a milisecond is worth it.

thanks

.org

There’s virtually no overhead to having more objects, so preformance will be pretty much identical. If it helps you organize your scripts, by all means do it.

Thank you, ill keep with my schema of having one object per master script.

.org