Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Tonda on March 20, 2016, 12:36:09 PM

Title: GUI buttons - Performance hit
Post by: Tonda 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.
Title: Re: GUI buttons - Performance hit
Post by: Tonda 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...
Title: Re: GUI buttons - Performance hit
Post by: jeanfabre 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
Title: Re: GUI buttons - Performance hit
Post by: Tonda 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?
Title: Re: GUI buttons - Performance hit
Post by: djaydino on March 22, 2016, 03:32:36 PM
Hi,
yes there are. you can get them on the EcoSystem (https://hutonggames.fogbugz.com/default.asp?W1181)
Search for ugui and get the "U Gui Proxy Full" Package.