Delayed start apps

Started by Thomas., February 11, 2012, 01:38:57 PM

Previous topic - Next topic

Thomas.

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 :)

EgonOlsen

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.

Thomas.

I know, 400ms is't much, but it is useless time between tap on icon and black screen...

EgonOlsen

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.

Thomas.

Oh, sorry... When app starts is created instance of ParticleManager, which immediately create hundreds Particles, which are build. My mistake.