playMaker
Home
Store
Showcase
Tutorials
Forums
Manual
Wiki
About Us
Playmaker Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Join our
Discord Channel
Home
Help
Search
Login
Register
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Mobile Game-Create Object Performance Issue?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Mobile Game-Create Object Performance Issue? (Read 3710 times)
johannastephen
Playmaker Newbie
Posts: 35
Mobile Game-Create Object Performance Issue?
«
on:
September 06, 2015, 09:29:46 AM »
Hi. I develop a mobile game with Unity and Playmaker. I run it in Unity Editor and no problem is here. But i build it for Android. I tested it with Android emulator and Galaxy S3 Mini. The game is very slow. I check Unity Profiler. Draw calls are high. Game creates 4-5 objects and 3-4 seconds later, it destroys them. And again creates. Reason of the problem Create object action and destroy object action? Or sprite sizes are big? Sprites are single and they are approx. 472x512 px. Thanks for your helping.
Logged
Justin
Junior Playmaker
Posts: 58
Re: Mobile Game-Create Object Performance Issue?
«
Reply #1 on:
September 06, 2015, 12:40:49 PM »
Most likely caused by the create and destroy actions. I had this problem when I first started learning Unity, you will need to look into object pools and spawning/despawning objects that are created at load time instead of creating/destroying while the game is running.
http://hutonggames.com/playmakerforum/index.php?topic=2879.msg13169#msg13169
Not sure what 3rd party object pool manager is the best out there now, but a few years ago when I needed it it was poolManager and I still use it...
Logged
johannastephen
Playmaker Newbie
Posts: 35
Re: Mobile Game-Create Object Performance Issue?
«
Reply #2 on:
September 06, 2015, 03:50:41 PM »
Hi. Thank you for your answer. When i play game, the FPS is 10-20 although idle. (when not creating or destroying)
?
I tried it after your suggestion. But in emulator, it is still approx 30-40 FPS. Perhaps iTween animations cause this? I dont know.
Logged
djaydino
Administrator
Hero Member
Posts: 7616
Re: Mobile Game-Create Object Performance Issue?
«
Reply #3 on:
September 08, 2015, 01:40:05 AM »
hi,
itween is indeed bad, use
DOTween
instead
are you using 2d or 3d?
Logged
Join the PlayMaker Discord Channel!
johannastephen
Playmaker Newbie
Posts: 35
Re: Mobile Game-Create Object Performance Issue?
«
Reply #4 on:
September 09, 2015, 06:27:04 AM »
Hi. I am using 2d. And using very basic up-down, scale size animations. Example iTween Move From, iTween Scale To, iTween Scale From bla bla...
I dont understand this low FPS. In my game everything is basic.
Here my Profiler pics:
«
Last Edit: September 09, 2015, 12:03:24 PM by johannastephen
»
Logged
johannastephen
Playmaker Newbie
Posts: 35
Re: Mobile Game-Create Object Performance Issue?
«
Reply #5 on:
September 11, 2015, 08:20:45 AM »
Up
Logged
jeanfabre
Administrator
Hero Member
Posts: 15500
Official Playmaker Support
Re: Mobile Game-Create Object Performance Issue?
«
Reply #6 on:
September 11, 2015, 09:50:03 AM »
Hi,
can you expand within the PlayMaker fsm Update tree node, it's seems to be where you get really dragged, so you need to find out which action it slowing down the fps. And it's likely within this tree node you'll find some hints.
Bye,
Jean
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Playmaker Forum
»
PlayMaker Help & Tips
»
PlayMaker Help
(Moderator:
600
) »
Mobile Game-Create Object Performance Issue?