playMaker

Author Topic: GUI buttons - Performance hit  (Read 1632 times)

Tonda

  • Playmaker Newbie
  • *
  • Posts: 31
GUI buttons - Performance hit
« on: March 20, 2016, 12:36:09 PM »
I have an FSM i'm using for UI and im using 46 GUI Button actions in a state as well as 2 draw textures.

Problem : When entering the state, my fps drops from 35-40 to 15. Why is this happening?

EDIT: Perhaps there is a way to pre-cache textures? I'm not sure what the problem is. Actually i don't know how that would help, as pullling up this Ui MENU slows down the game every single time, just not the first call.
« Last Edit: March 21, 2016, 01:26:25 AM by Tonda »

Tonda

  • Playmaker Newbie
  • *
  • Posts: 31
Re: GUI buttons - Performance hit
« Reply #1 on: March 22, 2016, 03:12:03 AM »
Hoping someone has some insight, as I'm sure i just don't understand a fundamental of unity that is causing this...

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: GUI buttons - Performance hit
« Reply #2 on: March 22, 2016, 03:50:21 AM »
Hi,

46 gui buttons?! that's a lot indeed. I would recommand using the new UI system from unity and move away from the legacy which never was really performant anyway.

so in short I would simply rebuild your UI to use the modern version which will perform a lot better.

Bye,

 Jean

Tonda

  • Playmaker Newbie
  • *
  • Posts: 31
Re: GUI buttons - Performance hit
« Reply #3 on: March 22, 2016, 10:18:58 AM »
Ok thanks for the suggestion Jean.
Are there any playmaker actions / support for this new ui system?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: GUI buttons - Performance hit
« Reply #4 on: March 22, 2016, 03:32:36 PM »
Hi,
yes there are. you can get them on the EcoSystem
Search for ugui and get the "U Gui Proxy Full" Package.
« Last Edit: March 23, 2016, 04:33:34 AM by jeanfabre »