I'm working on the in-game menu, and I was wondering, does it save performance to stop the script that is linked to all the many buttonsprites when the menu isn't shown?
This forum is now archived!
- Welcome to the archive!
News:
The 3DRad community can be found at classdev.net.
- 3D Rad - Free 3D game maker - Forum >
- General Category >
- 3D Rad - Optimization Tips >
- Does stopping a script save performance?
Author Topic: Does stopping a script save performance? (Read 1014 times)
just a guess... but i would imagine it would... to point at least... the visible objects themselves will probably still have to be refreshed, but at least the instructions in the script don't need to be executed...
--Mike
--Mike
jestermon
I don't get it.
Execute in terms of humans, is to kill them
Execute in terms of a job or a programs means to start it, or run it.
It's an English language joke. When one word has many meanings. (It's called a "pun")
In other words... If you kill (stop) a program, you are not executing (running) it.
It's bad if one has to explain language jokes, it makes the humor go away.
It's bad if one has to explain language jokes, it makes the humor go away.
Yeah, I know, I'm sorry.
It's guaranteed joke killer.
I did some tests with a project with 40 sprites linked to a script and stopping and starting the script. I tried it on my very slow parents computer and didn't show any big differences. It looks like the script is still 'communicating' with the linked objects, even when stopped.
jestermon
There is not much performance loss when you use a single script. If however you use a lot of scripts with linked items, then you will certainly start feeling the message overhead. Ask Mike about his experience in this with his sub projects.
as i said above, i would imagine it would... to point at least (less instructions to be interpreted every 60th of a sec)...
that being said, any gain in performance should be minimal by stopping a script...
personally, if i have to stop a script, then i would suspect that my logic is faulty... i try not to do it...
--Mike
that being said, any gain in performance should be minimal by stopping a script...
personally, if i have to stop a script, then i would suspect that my logic is faulty... i try not to do it...
--Mike
Pages: [1]