playMaker

Author Topic: Is it possible to have one FSM work on all objects with a renderer?  (Read 717 times)

rcwongtk

  • Playmaker Newbie
  • *
  • Posts: 4
Hello Playmaker Experts!

Was hoping to get some help with a problem of mine, I made a relatively simple fsm that sends a signal when you click on it, along with a couple more actions.

Issue is, when I take that FSM, and copy it over to thousands of objects in my scene my FPS goes from about 100 to around 5.

Pretty sure it is because I have so many of these little scripts bogging down my game, was wondering if there was a way to relate 1 FSM (with the same contents) to every object I have that is clickable without having to have every object have the same bit of code.

Thanks in advance for your help! Hope I explained myself clearly enough.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Is it possible to have one FSM work on all objects with a renderer?
« Reply #1 on: June 04, 2020, 01:57:31 AM »
Hi,

 it depends what is your fsm made of and wether this lad is due to your game being played in editor or not, have you checked FPS at runtime when built?

- to test as closely as possibly to a published version, make a unity layout with just the game view and switch to that when you want to check perfs without publishing, this will be closer to it.

Can you show your fsm and tell us what actions you are using on that fsm?


Bye,

 Jean