playMaker

Author Topic: Too long loading scene on Samsung Galaxy S  (Read 5372 times)

xsodus

  • Playmaker Newbie
  • *
  • Posts: 14
    • View Profile
Too long loading scene on Samsung Galaxy S
« on: April 06, 2012, 01:53:17 AM »
Problem Detail.
Now, I’m developing a puzzle game like the Bejeweled.
So I need to create a lot of game objects.
I try to created a game object more than 200 objects.
When I run my scene with Samsung Galaxy S, it takes about 2 minutes.
If I run my scene on PC, It takes only 10 seconds.
How can I reduce loading time less than 20 seconds on Samsung Galaxy S?
Please tell me.

More Information.
- Playmaker V1.3.3 RC2
- Unity 3.5.0f5
- Samsung Galaxy S with Android OS 2.2 (Froyo)
- PC Specification
     o  CPU : Intel Core i5-2500K 3.30GHz
     o   RAM : 4.00 GB
     o   Graphic Card :  AMD Radeon HD 6700
- I create these game object by using Pool Manager 2.
- Each game object contains 2 FSM.
- 1st FSM contains
     o   45 States
     o   24 Events
     o   34 Variables
- 2nd FSM contains
     o   5 States
     o   5 Events
     o   9 Variables
- Profiler while load a scene.


Thank you very much.

xsodus

  • Playmaker Newbie
  • *
  • Posts: 14
    • View Profile
Re: Too long loading scene on Samsung Galaxy S
« Reply #1 on: April 07, 2012, 10:35:20 PM »
If you need more information , please tell me.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3201
  • Official Playmaker Support
    • View Profile
    • LinkedIn
Re: Too long loading scene on Samsung Galaxy S
« Reply #2 on: April 07, 2012, 11:41:29 PM »
Hard to say what's going on without taking a closer look... Can you send me the project?

xsodus

  • Playmaker Newbie
  • *
  • Posts: 14
    • View Profile
Re: Too long loading scene on Samsung Galaxy S
« Reply #3 on: April 08, 2012, 02:32:32 AM »
@Alex Chouls
I need permission from my project manager. If I can send it to you , I will reply to you again.

xsodus

  • Playmaker Newbie
  • *
  • Posts: 14
    • View Profile
Re: Too long loading scene on Samsung Galaxy S
« Reply #4 on: April 08, 2012, 09:14:55 PM »
@Alex Chouls
Oh, it's bad news.
I can't send my project to you.
Do you have any idea for finding cause of problem?
or
What should I research more for resolve this problem?
Please tell me.

Thank you.
 

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Too long loading scene on Samsung Galaxy S
« Reply #5 on: April 09, 2012, 02:19:37 AM »
Hi,

 If you could send screenshots of the fsm and actions, that could help ( you can blur out the details you don't want to be public).


 Bye,

 Jean

xsodus

  • Playmaker Newbie
  • *
  • Posts: 14
    • View Profile
Re: Too long loading scene on Samsung Galaxy S
« Reply #6 on: April 09, 2012, 04:10:35 AM »
@Alex Chouls , @jeanfabre

I attach screen shot of these 2 FSM. If you would like to see more actions which are in each states, please tell me.
1st FSM

2nd FSM


Thank you.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12342
  • Official Playmaker Support
    • View Profile
Re: Too long loading scene on Samsung Galaxy S
« Reply #7 on: April 09, 2012, 06:58:00 AM »
Hi,

I think you should try some pool library ( pool manager 2 is very good, and I have ported custom actions for it to work with playmaker) and have your object created during editing and reused instead of instantiated at runtime, this would most definitly be something to consider.

btw, your 1st fsm is scaring me big time :)

 Bye,

 Jean

xsodus

  • Playmaker Newbie
  • *
  • Posts: 14
    • View Profile
Re: Too long loading scene on Samsung Galaxy S
« Reply #8 on: April 09, 2012, 07:42:40 AM »
Hi , jeanfabre

I try used Pool Manager 2 and created my custom actions. (I explained in rep 1)
It didn't reduce time of loading scene on my Samsung Galaxy S.
I would like to know maximum of states, actions and events per 1 FSM which I can instantiate 200 objects within 30 seconds. (on Samsung Galaxy S)
Do you have more guideline for handle this?
Please tell me.

Thank you.  :)



Damian

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 188
    • View Profile
    • Permaximum Betty
Re: Too long loading scene on Samsung Galaxy S
« Reply #9 on: April 09, 2012, 10:05:46 AM »
First of you are using Froyo on the phone. That is old to start with.
Upgrade to Gingerbread. only that would make it better for you.
Also make sure your texture is in the right format.
Make also sure you use the latest unity 3D.
There is a bug in the older one that make loading from the phone a lot longer then it should.
I had some trouble with this before and just made a load screen before loading a scene.
But it do work better with unity 3D 3.5.

xsodus

  • Playmaker Newbie
  • *
  • Posts: 14
    • View Profile
Re: Too long loading scene on Samsung Galaxy S
« Reply #10 on: April 09, 2012, 10:42:01 AM »
@Damian
I will recheck these. Thanks for your help.   ;)

shinodan

  • Full Member
  • ***
  • Posts: 170
    • View Profile
    • Shinozone
Re: Too long loading scene on Samsung Galaxy S
« Reply #11 on: May 09, 2012, 03:04:07 AM »
will updating my unity give me better stability in my andriod game? im getting alot of crashes when i use particle systems.... anyone know why? im testing on a galaxy s2.

Damian

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 188
    • View Profile
    • Permaximum Betty
Re: Too long loading scene on Samsung Galaxy S
« Reply #12 on: August 25, 2012, 10:17:53 AM »
will updating my unity give me better stability in my andriod game? im getting alot of crashes when i use particle systems.... anyone know why? im testing on a galaxy s2.

Most of the time the latest is better. Many bugs is gone and scripts etc is optimized.
But you should always have a backup if you do upgrade, so you easy can go back if there is issues.