Bug Reporting > PlayMaker Bug Reporting

Run FSM Stutter (Garbage Collection?)

(1/4) > >>

LordHorusNL:
I'm having some performance problems when using the Run FSM action as part of my VR system to interact with objects.

After using Run FSM/Finish FSM about a 100 times my game starts to stutter and becomes unplayable.

This does not happen when i remove the Run FSM actions and replace the templates with normal Fsm's.

This feels like a garbage collection problem of some sorts, are the template Fsm's actually being unloaded from memory when running Finish Fsm?

djaydino:
Hi.
Can you give some more information what is in the fsm
and maybe a video showing the issue?

LordHorusNL:
Okey found the culprate! i was using one "Run Template FSM" from the ecosystem.

For some reason it does not seem to finish the templates but keeps them active, so not a playmaker bug afterall.

I'll see if this actions can be updated by the author.

jeanfabre:
Hi,

 I am here :) run Fsm Template is tricky action ( and I don't recommend it, it's advanced, I am thinking about remove it as well...), can you tell me what you think is the problem, maybe I can do something?

 Bye,

 Jean

LordHorusNL:
Hi jean

Run Template FSM is very handy because it allows me to choose the template to run as a variable (so i can change it on the fly)

What i think is happening is that the action somehow does not finish the template properly when running the "Finish FSM" action inside itself.

I think this is happening because the stutter i get from using this action seems to be cumulative, in that it gets progressively worse the more you use it.

However this is just from observation!

So if the action can be fixed, or replaced with a "Run FSM" variant that lets the user define the template as a variable. That would be great.

I was going to look into that myself today.

Navigation

[0] Message Index

[#] Next page

Go to full version