playMaker

Author Topic: Big scene will make playmaker Lag ?  (Read 2055 times)

eotiti

  • Junior Playmaker
  • **
  • Posts: 65
Big scene will make playmaker Lag ?
« on: December 19, 2017, 02:49:49 AM »
I work with playmaker in a big scene ( my scene is : ~ 250 MB )
every times i create a fsm need a lot of time to unity calculation , and sometime open action browser it same lag !

Maybe unity layout editor will lag when the scene have a lot object (bigscene) ?
and playmaker use layout editor of unity so, it will lag too right ?

What is the solution to this problem?

saneinsylum

  • Playmaker Newbie
  • *
  • Posts: 14
Re: Big scene will make playmaker Lag ?
« Reply #1 on: December 19, 2017, 03:02:48 AM »
You should probably be ok if you decrease the number of FSMs, either by breaking the scene into chunks or combining FSMs. Each one needs a little bit of CPU, and if you got hundreds of these, plus drawing the mesh, drawing the gui, drawing the particle systems, you're gonna need cycles to get all that done in time to loop back around next frame.

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 715
    • Flashing Lights
Re: Big scene will make playmaker Lag ?
« Reply #2 on: December 19, 2017, 08:42:11 AM »
Check Playmaker preferences, turn off real-time error checking.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Big scene will make playmaker Lag ?
« Reply #3 on: December 20, 2017, 01:55:13 AM »
Hi,

 try to create a new c# component, if Unity takes the same time to compile your project, it's not really PlayMaker.

the number of Fsm is very unlikely the problem. Yes PlayMaker will go only as afast as what Unity can make it go. It's not to say that there may be an issue with perfs inside PlayMaker, but then we need more data to check this out. Like how many global variables you have for example?


Bye,

 Jean

eotiti

  • Junior Playmaker
  • **
  • Posts: 65
Re: Big scene will make playmaker Lag ?
« Reply #4 on: December 21, 2017, 12:56:58 PM »
Hi jean

Yes i think many fsm is not problem , because i use few FSM
it just lag when i open Action browser ( i think it lag 10 seconds end then everything work fine)
add or remove a action on the stage ( lag 5-7 seconds )

i think this problem is unity layout , when i use other plugin ( not playmaker ) it lag too , because it need to open the new layout of unity like Playmaker
this problem just happen with the "big scene" only

if i buy a new graphic card you think can solved the problem?
But i don't think unity layout related to graphic card !
( I am view in scene and gameplay is not lag ,It Just lag when I interactive with unity layout )


« Last Edit: December 21, 2017, 01:05:53 PM by eotiti »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Big scene will make playmaker Lag ?
« Reply #5 on: December 22, 2017, 02:08:24 AM »
Hi,

 yes, a more powerful computer will always help, but I am not sure if this is the graphic card or the processor itself that would be the bottleneck here..

 I moved to a new laptop this year, and it does make a huge difference indeed... not just Unity, but also xcode for example, I can now compile and run on a device under 3mn, wereas before it was litterally 15 mn or more...


 bye,

 Jean