playMaker

Author Topic: Playmaker EXTREMELY laggy in Game/Build  (Read 4111 times)

roymagnuson

  • Playmaker Newbie
  • *
  • Posts: 7
Playmaker EXTREMELY laggy in Game/Build
« on: November 24, 2017, 08:24:05 AM »
Hi there!

My playmaker is extremely laggy in game/build, but not in the editor. This is even with very, very basic elements - e.g., a single FSM making a sphere move on trigger. I can hardly walk with a FPC because it is so choppy. Thoughts?

I am on an i7 7700 with 24g ram and an R 580.

Thanks!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Playmaker EXTREMELY laggy in Game/Build
« Reply #1 on: November 24, 2017, 08:53:37 AM »
Hi,
Can you give some more information?
I don't think it is a playmaker issue, but unity settings maybe.

Are you building for pc standalone?
What playmaker and unity version are you using?
any other information (big textures/some pictures from your fsm/states/actions)
the more info the better :)

roymagnuson

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Playmaker EXTREMELY laggy in Game/Build
« Reply #2 on: November 24, 2017, 09:14:52 AM »
Sure!

I was building in macOS high sierra, Unity 2017. Basically nothing loaded into the scene: terrain, sphere, playmaker, FPC.

THAT said, I just booted into bootcamp and tried it and it was not laggy at all. Any thoughts re: how to optimize this for OSX?

Thank you!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Playmaker EXTREMELY laggy in Game/Build
« Reply #3 on: November 24, 2017, 01:07:59 PM »
Hi,
Very strange, i can't test as a don't have a mac.
But i did not hear any issues either yet (on this forum)

Probably you should search in unity for optimizing for mac.

What actions are you using?

Are you using get/set property actions?

roymagnuson

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Playmaker EXTREMELY laggy in Game/Build
« Reply #4 on: November 25, 2017, 05:59:05 AM »
I setup a basic trigger/itween on a cube and then opened the statistics window in game mode. When I am not moving the mouse the FPS is around 70. When I try to look around, it stutters and drops to about 25fps.

The CPU data remains the same, so it looks like it is bottlenecking around the 580 (which isn't a terrible card...but, yeah)


djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Playmaker EXTREMELY laggy in Game/Build
« Reply #5 on: November 25, 2017, 04:53:45 PM »
Hi,
Can you send the scene? maybe i can find the issue.
You say it only happens on osx?

roymagnuson

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Playmaker EXTREMELY laggy in Game/Build
« Reply #6 on: November 26, 2017, 01:27:45 PM »
Thank you for your help! I think my scene is attached here (again, first time I doing this...so, thank you thank you...!)
This is just a sphere moving with a FPSController. And it lags, horribly, both in the game mode, and in the build.
RM

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Playmaker EXTREMELY laggy in Game/Build
« Reply #7 on: November 26, 2017, 07:33:05 PM »
Hi,
I think you send the wrong scene. There is only a cube and a sphere with a move toward action.

Maybe you placed a fspController on the sphere and you have the move toward action on it,
if so you need to remove it as you need to move manually with the fspcontroller.

if you need to move it automatically with the action you won't need the fpscontroller.

roymagnuson

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Playmaker EXTREMELY laggy in Game/Build
« Reply #8 on: November 26, 2017, 07:59:42 PM »
That is the right scene. Literally just having playmaker installed and having any fsm loaded on any object causes severe lag. I went ahead and tested again in bootcamp just to be sure. Totally smooth in windows (as you would think...since it is basically nothing...)
Thank you again for your help! Any thoughts?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Playmaker EXTREMELY laggy in Game/Build
« Reply #9 on: November 27, 2017, 01:37:10 AM »
Hi,

 when you have projects that are having performances issues, the best thing to do is to start profiling with Unity Profiler.

 From your description, it's unlikely an issue with PlayMaker itself.

indeed your scene is not enough, make sure you package the scene properly, and test it on an empty project to make sure it features all the things you need. For example, that scene doesn't have a camera and is missing a prefab ( which is likely the fsp controller right? but which one exactly is it?) what version of Unity is it? 2017.1 or 2017.2?

 I suspect it's an issue with the camera not following on late update, and so the camer movement is jerky. Can you check the game stats, what fps do you have?

Bye,

 Jean

roymagnuson

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Playmaker EXTREMELY laggy in Game/Build
« Reply #10 on: November 27, 2017, 04:32:58 AM »
Hi Jean!

I will check the camera - thank you! It is indeed very jerky.

It is Unity 2017.2.0F3

It would make sense that it isn't Playmaker since it works so well in bootcamp - but the FPC works fine until Playmaker is trying to do something.

I will experiment - thanks!

roymagnuson

  • Playmaker Newbie
  • *
  • Posts: 7
Re: Playmaker EXTREMELY laggy in Game/Build
« Reply #11 on: November 27, 2017, 05:41:58 AM »
Alright - ran the profiler. Pic is attached here.

My FPS when I do not move the camera is about 70. When I move the FPC it drops to 20ish, and I get spikes in the Initialization.PlayerUpdateTime. Thoughts?

Again, this is all totally smooth in windows (though the FPS is a constant 60 because of Bootcamp shenanigans)

Thanks again for all your help!
RM

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Playmaker EXTREMELY laggy in Game/Build
« Reply #12 on: November 29, 2017, 01:12:24 AM »
Hi,

 I suspect you have an issue with vSync:

https://answers.unity.com/questions/409576/vsync-on-or-off.html

 bye,

 Jean