Tested 100% work! improve Game/scene loading time method
Hello all
I wanted to share my findings for a test i made on improving loading times of the game, and for the scenes in your game.
**This method is not for EVERY project** Youll see what i mean later on
So first let me tell you this test was made on a heavily graphic project , and i managed to reduce the game loading time from 9.6 to 5.9 seconds! (yes i use a timer) now this may not seem a lot for everyone but trust me its huge!
Im going to implant it to another project i have and try to make a 2.5-3 second game loading time (i must mention im a pro user so no GS splash in all of this tests)
So lets go to the interesting part , how to get it done
Here is what i do:
i have lots of actors that the player dont see in the first look at the scene (cause maybe they are off screen or their alpha is 0 at initial boot or any other reason)
*in my project i have an image which is a simple 2x2 pixels white square. ( waist 1 more min of your life in photoshop to make it
)
thoes actors are already sized and placed in the scene , but the image i give them is this tiny square that almost dont take RAM , cause there is no need to load their original (big) image at the first boot.
Now at some point the player will have to see those actors , and we dont want him to see white squares right ,
so we need to apply those actors their graphics :
instead of giving each and every one of this actors a rule to change their images to their actual graphics ,(which will be lots of rules cause maybe you have lots of "off screen"/"invisible" actors) i have 1 manager actor that have 1 rule and make the change for them! like so:

Note that the manager actor must be an instance - NOT prototype in order to access this attributes
i have this rule in my manager actor :
When SELF.time > 1 (or any other trigger you like)
change Current scene>Layers>"Your LAYER">"Your actor">Image to the disairable image (for example - "manu-button.png")
Thats it , so basically what we are doing is loading the game fast , letting the "player" see the initial boot ,
and THEN loading the rest of the images in that scene.
*sure there are lots of other way to improve loading time , this method is not a replacement but another extra
i hope this will be useful for some of you
Roy.
If you liked it press ----> | LIKE |
:P
I wanted to share my findings for a test i made on improving loading times of the game, and for the scenes in your game.
**This method is not for EVERY project** Youll see what i mean later on
So first let me tell you this test was made on a heavily graphic project , and i managed to reduce the game loading time from 9.6 to 5.9 seconds! (yes i use a timer) now this may not seem a lot for everyone but trust me its huge!
Im going to implant it to another project i have and try to make a 2.5-3 second game loading time (i must mention im a pro user so no GS splash in all of this tests)
So lets go to the interesting part , how to get it done
Here is what i do:
i have lots of actors that the player dont see in the first look at the scene (cause maybe they are off screen or their alpha is 0 at initial boot or any other reason)
*in my project i have an image which is a simple 2x2 pixels white square. ( waist 1 more min of your life in photoshop to make it

thoes actors are already sized and placed in the scene , but the image i give them is this tiny square that almost dont take RAM , cause there is no need to load their original (big) image at the first boot.
Now at some point the player will have to see those actors , and we dont want him to see white squares right ,
so we need to apply those actors their graphics :
instead of giving each and every one of this actors a rule to change their images to their actual graphics ,(which will be lots of rules cause maybe you have lots of "off screen"/"invisible" actors) i have 1 manager actor that have 1 rule and make the change for them! like so:

Note that the manager actor must be an instance - NOT prototype in order to access this attributes
i have this rule in my manager actor :
When SELF.time > 1 (or any other trigger you like)
change Current scene>Layers>"Your LAYER">"Your actor">Image to the disairable image (for example - "manu-button.png")
Thats it , so basically what we are doing is loading the game fast , letting the "player" see the initial boot ,
and THEN loading the rest of the images in that scene.
*sure there are lots of other way to improve loading time , this method is not a replacement but another extra
i hope this will be useful for some of you

Roy.
If you liked it press ----> | LIKE |
:P
Comments
Good work.
Darren.
at YouKnowMe, the file you save needs to be a png....and I guess an 8 bit one would be best. (File/Save For Web in photoshop or illustrator.
I imagine you are getting the files sizes as one is psd from photoshop and the other is a vector from illustrator... or I could be completely wrong. :-)
If you use this method post the results!
Roy.