Replicating parallax and perfomance

dwibredwibre Member Posts: 192
edited July 2012 in Working with GS (Mac)
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

  • dwibredwibre Member Posts: 192
    bump
  • ShaunEleryShaunElery Member, PRO Posts: 148
    bump
  • mataruamatarua Auckland, New ZealandMember Posts: 854
    Replicate replicates an image which will only load once loaded into memory - once that image is in memory it just get's picked out of memory each time and placed - so the replicated image is already in memory.

    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@
Sign In or Register to comment.