playMaker

Author Topic: Playmaker scripts causing jitter in game object movement  (Read 2528 times)

silonighora

  • Playmaker Newbie
  • *
  • Posts: 28
Playmaker scripts causing jitter in game object movement
« on: June 05, 2016, 01:15:30 PM »
Hi All,
I am facing one strange problem. I am working on a game where I have few cars moving in the scene. Apart from the cars I have few game objects where I have added FSMs. In the editor if I play the game and then select an object which has a FSM(not related to the car movement) attached to it, then the movement of the cars is not smooth. I see lot of jitter in the car movement. But if I select a game object which does not have any FSM, then the cars move very smoothly.
I am not sure why this is happening. Has anyone faced this kind of problems?

Please help!!

Regards,
Siloni

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: Playmaker scripts causing jitter in game object movement
« Reply #1 on: June 05, 2016, 07:04:02 PM »
Having an active Fsm being displayed when the game is playing slow things down some times- that doesn't effect the build in any way though- I'm not sure if this slow down and choppy playback is the jitter you're referring to though-
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Playmaker scripts causing jitter in game object movement
« Reply #2 on: June 05, 2016, 07:45:42 PM »
Hi,
try if you have the fsm's collapsed in the inspector if that helps.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Playmaker scripts causing jitter in game object movement
« Reply #3 on: June 06, 2016, 03:55:03 AM »
Hi,

 What version of PlayMaker are you using?

Bye,

 Jean

silonighora

  • Playmaker Newbie
  • *
  • Posts: 28
Re: Playmaker scripts causing jitter in game object movement
« Reply #4 on: June 07, 2016, 01:42:11 PM »
Hi All,
Thanks for the replies and sorry for replying late.

@mdotstrange
Yes, I am referring to the choppy playback in the editor when the game is played with an active FSM open. However, I feel the same is the case in the build as well. I have seen some parts of the game plays smoothly in the build. But as soon as I make one GameObject active which has some FSMs, I experience the jitter.

@jeanfabre
I am using Playmaker version-1.8.0.f43

Regards,
Siloni

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: Playmaker scripts causing jitter in game object movement
« Reply #5 on: June 08, 2016, 12:17:14 AM »
If you're seeing the same behaviour in the build you should double check the work that the FSM is doing. Check for things like debug log spamming, too many raycasts, spawning new objects, or other expensive operations... can the behaviour be optimized? Or run less often?