3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: [1]

Author Topic: Does stopping a script save performance?  (Read 1014 times)

« on: January 24, 2012, 01:47:34 PM »
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?
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #1 on: January 24, 2012, 01:58:29 PM »
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

jestermon

« Reply #2 on: January 24, 2012, 06:34:21 PM »
Why is it that when a program is killed, it's not executed?
« Reply #3 on: January 25, 2012, 10:40:14 AM »
Why is it that when a program is killed, it's not executed?

I don't get it.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0

jestermon

« Reply #4 on: January 25, 2012, 11:54:26 AM »
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.
« Reply #5 on: January 25, 2012, 12:16:08 PM »
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.   ::)
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0
« Reply #6 on: January 25, 2012, 01:17:11 PM »
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.
Rocket Rumble, a 3D Rad puzzle game:
http://www.3drad.com/forum/index.php?topic=9896.0

jestermon

« Reply #7 on: January 25, 2012, 02:59:28 PM »
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.
« Reply #8 on: February 02, 2012, 10:30:59 AM »
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
Pages: [1]