playMaker

Author Topic: Massive Performance hit from Playmaker GUI  (Read 3250 times)

brisck1

  • Playmaker Newbie
  • *
  • Posts: 40
Massive Performance hit from Playmaker GUI
« on: December 19, 2013, 09:11:15 AM »
So I've hit another perplexing issue: I have a very simple scene set up for testing some GUI stuff (subtitles). and Have some buttons set up for various things like triggering the subtitles to appear, but for some reason as soon as they are drawn the FPS in my scene plummets from 250 to around 40-30fps! I've stripped the scene back to be as bare as possible to get a clearer idea of where the hit is coming from, and after some analysis (and looking at the profiler) it seems to stem from Playmaker's GUI drawing.

If i disable various GUI elements one by one (I have 3 in-scene) the fps jumps back up to normal levels when I just only one GUI element/FSM running.

Not sure if there's something horribly wrong in the way I've set up my GUI, or my FSM, but if someone could take a look at it and let me know if they see the same issues on their end, or have any ideas on how to fix it I would be greatly appreciate it!

Here is a packaged version of the scene:
http://www.littlelostpoly.co.uk/PVT/GUIperfissue.unitypackage

Andy22

  • Junior Playmaker
  • **
  • Posts: 99
Re: Massive Performance hit from Playmaker GUI
« Reply #1 on: December 19, 2013, 11:28:33 AM »
I tried the package and i did not spot any obvious setup problem.

On my system however i get 98% time spend inside "WaitForTargetFPS", which is the vsync. If i disable vsync via project quality settings my FPS go from 80 to 900 FPS, which is to-be expected.

So did u test the scene with vsync off and what do u mean by "it seems to stem from Playmaker's GUI drawing.", what profiler calls show excessive useage on your setup, that made u come to this conclusion?


bye Andy

brisck1

  • Playmaker Newbie
  • *
  • Posts: 40
Re: Massive Performance hit from Playmaker GUI
« Reply #2 on: December 21, 2013, 09:59:12 AM »
Hi Andy,

I checked to see if Vsync was enabled, and it wasn't. Here are two screens which illustrate the problem and the performance spike when playing the subtitle GUI FSM:

Before Pressing Play (3800fps):
http://i.imgur.com/vodTrle.jpg

After (23fps):
http://i.imgur.com/JfTAuPc.jpg

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: Massive Performance hit from Playmaker GUI
« Reply #3 on: December 26, 2013, 08:28:52 AM »
Hi,

 I would check when publishing, not within Editor. Also try with nothing but just the game view, and see if the difference is still so large.

 Editor performances should always be weighted with a proper publish on the targeted platforms and mobiel devices and monitor performances there.


bye,

 Jean