Optimization Question

imGuaimGua Member Posts: 1,089
edited November -1 in Working with GS (Mac)
I have an actor that use 2 constrain attribute to be behind main actor and make effects with particle behavior. As I know, constrain anttribute is pretty "heavy" behavior. Maybe it will be wise to make those effects with spawn actor behaivior on main actor with tag spawn behing actor. What do you think?

Comments

  • entersimonentersimon Member, PRO Posts: 273
    If your main actor will be moving in x and y dimensions then you won't be able to get away from the constrains, but if you're looking at a stationary main actor then you could do a spawn or change attribute.

    Keep in mind that constrains and timers are fine to work with so long as they are used in moderation. Just keep a careful eye on performance at each stage of development and use the note behavior to help you keep track of things for later on.

    I've got about 14 unavoidable constrains in my current project as well as 15-20 timers, but through extreme care and a vigilant eye the game is maintaining 60fps on arch7 devices.
  • imGuaimGua Member Posts: 1,089
    I can't test on my iPod Touch 2G since 0.93. GS support won't answer me. On iPhone 4G i have 60 frames, but I want it to work on old devices. Yes my actor moves in X and Y but I could make same thing without constrains using spawn actor behavior to spawn actors that looks like smoke. Tell me what method is the best method in terms of optimization.

    1. Actor that use 2 constrain attribute to be behind main actor and make "smoke effect" with particle behavior. (i this case i have 1 extra actor, that always use 2 constrain attributes, and particle behavior)

    or

    2. Or make same "smoke effect" with actors that will spawn behind main actor with spawn actor behavior with tag spawn behing actor. (in this case my main actor always spawns and destroys actors to emulate smoke effect)
Sign In or Register to comment.