playMaker

Author Topic: This is an fsm variable performance question [solved]  (Read 582 times)

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 126
    • Tumblr
This is an fsm variable performance question [solved]
« on: December 31, 2020, 05:56:20 PM »
If a game object has 100 different sprite variables stored in an FSM, but only sets one sprite at a time to the sprite renderer are all of the sprite variables loaded into memory/ affecting performance, or only the one sprite displayed by the sprite renderer?

I guess the question could be applied to any variable. Are they taking up performance if they are not being processed in the FSM but just dormant fsm variables....?
« Last Edit: January 01, 2021, 04:50:26 PM by Gav (HeyBud) »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: This is an fsm variable performance question
« Reply #1 on: January 01, 2021, 11:35:50 AM »
hi.
They should not affect performance, but can take up memory.

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 126
    • Tumblr
Re: This is an fsm variable performance question
« Reply #2 on: January 01, 2021, 04:49:39 PM »
Thanks!