GoranGaming
Member
Posts: 183
Threads: 30
Joined: Feb 2012
Reputation:
7
|
PreloadParticleSystem
What do you use the PreloadParticleSystem for? The wiki says that it "Preloads a particle system".
I still don't understand :/
Current projects:
The Dark Prison 85 % (Stopped working on this one)
Unnamed Project 7 %
(This post was last modified: 09-17-2012, 04:09 PM by GoranGaming.)
|
|
09-16-2012, 05:31 PM |
|
Tomato Cat
Senior Member
Posts: 287
Threads: 2
Joined: Sep 2012
Reputation:
20
|
RE: PreloadParticleSystem
It loads the particle system at the start rather than when the function is called.
I think.
RAISE YOUR DONGERS ヽ༼ຈل͜ຈ༽ノ
|
|
09-16-2012, 05:32 PM |
|
Apjjm
Is easy to say
Posts: 496
Threads: 18
Joined: Apr 2011
Reputation:
52
|
RE: PreloadParticleSystem
In a nutshell: Reading from disk is slow - therefore it is better to do the reading from disk on the loading screen, rather than interrupting game-play with a lag-spike while the particle system is loaded.
So if you are creating particle systems through script then it is generally advised to pre-load them in your OnEnter event. Same logic behind preload sound.
(This post was last modified: 09-16-2012, 05:56 PM by Apjjm.)
|
|
09-16-2012, 05:55 PM |
|
GoranGaming
Member
Posts: 183
Threads: 30
Joined: Feb 2012
Reputation:
7
|
RE: PreloadParticleSystem
Thanks
Current projects:
The Dark Prison 85 % (Stopped working on this one)
Unnamed Project 7 %
|
|
09-16-2012, 05:56 PM |
|