www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Thomas. on February 11, 2012, 01:38:57 pm

Title: Delayed start apps
Post by: Thomas. 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 :)
Title: Re: Delayed start apps
Post by: EgonOlsen 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.
Title: Re: Delayed start apps
Post by: Thomas. 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...
Title: Re: Delayed start apps
Post by: EgonOlsen 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.
Title: Re: Delayed start apps
Post by: Thomas. 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.