Memory Efficiency for Rules On Actor - THANKS FOR HELP

jorkosjorkos Member, PRO Posts: 353
edited February 2012 in Working with GS (Mac)
Hey guys, in my game I have a set of actors that behave very differently under two conditions and i'm wondering what is most efficient:

scenario 1) I create one master rule: If condition 1 then all 10 rules inside that one master rule or:

scenario 2) In each of the 10 rules, I add a condition, if condition 1

Anyone know what is more optimal from a memory efficiency standpoint?

thanks

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    the subRules fire only when condition 1 is true

    therefore the rules for other events/actions should be nested in that rule (scenario 1)

    the computer checks if condition 1 is true … then reads/fires the nested rules
    if condition 1 is not true … computer ignores those nested rules

    it is milliseconds, but still important with a large number of rules.

    @};- MH
  • jorkosjorkos Member, PRO Posts: 353
    ok thanks
Sign In or Register to comment.