Turning off images in the scene
Hello!
I have a little problem with FPS and image RAM usage:
I have a huge background image, it's split into smaller images (something like this: http://trickofmind.com/Grid.png ). The entire scene is 6000 pixels in width and 1600 in hight. There are 24 inctances, each with different image.
I have an idea, and I would like to hear your opinion about it:
In each instance I would put a rule:
When actor overlaps or collides with actor of type Player
then
Change Attribute self.Image to BackgroundX.png (X is a number of background piece)
otherwise
Change Attribute self.Image to Empty.png
(empty.png is a very small 10x10, invisible image).
Do you think that this will improve FPS or maybe image RAM usage? Maybe you have some different ideas?
Thank you very much!
I have a little problem with FPS and image RAM usage:
I have a huge background image, it's split into smaller images (something like this: http://trickofmind.com/Grid.png ). The entire scene is 6000 pixels in width and 1600 in hight. There are 24 inctances, each with different image.
I have an idea, and I would like to hear your opinion about it:
In each instance I would put a rule:
When actor overlaps or collides with actor of type Player
then
Change Attribute self.Image to BackgroundX.png (X is a number of background piece)
otherwise
Change Attribute self.Image to Empty.png
(empty.png is a very small 10x10, invisible image).
Do you think that this will improve FPS or maybe image RAM usage? Maybe you have some different ideas?
Thank you very much!