Author Topic: Delayed start apps  (Read 1054 times)

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Delayed start apps
« on: February 11, 2012, 01:38:57 pm »
Please Egon, when is started an application, some normals are calculated, it takes about 300-400ms. Is it static calculating normals of Primitives? Anyway, could you call this method later? Maybe when is first call of get something... Thanks :)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Delayed start apps
« Reply #1 on: February 11, 2012, 01:59:13 pm »
The normals are mandatory for almost everything...there will be calculated when you are calling build(). Just use serialized objects and calculate the normals on the desktop before serializing the models, and you'll get rid of the normal calculation on the device. However, 300-400ms is nothing to worry about IMHO.

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Delayed start apps
« Reply #2 on: February 11, 2012, 02:12:43 pm »
I know, 400ms is't much, but it is useless time between tap on icon and black screen...

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11777
    • View Profile
    • http://www.jpct.net
Re: Delayed start apps
« Reply #3 on: February 11, 2012, 02:20:03 pm »
As said: I don't trigger it, you do by calling build(). Just move build() to a later position if you want to delay the calculation.

Offline Thomas.

  • double
  • *****
  • Posts: 833
    • View Profile
Re: Delayed start apps
« Reply #4 on: February 11, 2012, 10:16:22 pm »
Oh, sorry... When app starts is created instance of ParticleManager, which immediately create hundreds Particles, which are build. My mistake.