Color Wheel or Change Image?

Hey guys,

I have an actor that has ten states that can be toggled by the user. Green, Blue, Yellow, etc.

Would I be better off having three rules that change the color attributes or using change image?

Thanks,
- Thomas

Comments

  • SocksSocks London, UK.Member Posts: 12,822
    edited March 2013
    Hard to say without testing, I expect both have a pretty low overhead.

    I'd spawn a few hundred actors, and have them change colour values /or/ image every 0 seconds - and see whether either one impacts on the target device's frame rate.

    From my own experiments (and perhaps related somewhat) I do know that cycling through the colours of the rainbow (using 3 constrains (R, G, B)) is much much more work for an iOS device's processor than running an animation of the same very same thing (@'30'fps). Placing a few hundred constrained elements like this in a scene drags it to it's knees, the identical scene made with animations runs problem free.

    But constrains are much more heavy going than change attribute behaviours so you'd really need to test this out for yourself, but if it's only ten actors I expect any difference will be minimal.
  • mounted88mounted88 Member Posts: 1,113
    edited March 2013
    I would have to agree with @socks that changing the image would probably be smoother than changing the RGB values.
Sign In or Register to comment.