Replicating parallax and perfomance
dwibre
Member Posts: 192
I am building a platform game. I have set my Parallax to replicate so it runs though the whole of the level. My question is regaring memory usage. Is it best to have the parralax replicate or should I have them pre-loaded? Which will be the best for performance?
Comments
It would be different if it were spawning random connecting level pieces - when you spawn it gets loaded in to memory.
You can deal with that if you want to know how I can tell you.
But - if what you are doing is replicating the same image over and over - why not just make the image wrap horizontally and then you can make the actor whatever length you need it to be with simple use of the actors properties like size and position.
That way there are no rules used at all and I would say it's best for performance.
That's as far as I know anyway. If somebody knows different bring it to the table...
Cheers, M@