Hey, me again!
I just wanted to drop a quick (hummm…) line to say THANK YOU!!! for suggesting I use the Physics engine instead of doing my own object display moves in “enterFrame” and collisions. WHAT a difference!
I not only used the physics to check for collisions but I also provide impulse, and torque the rocks (asteroids) so I do not even have to deal with that in my code.
Now the largest slice of time the Particle Candy process as you can see in this profiler output.
http://s8.postimage.org/6i7sx2gqt/profiler2.jpg
Simply amazing. Thank you again.
I have also couple questions if I may:
1- I noticed that the more I improved my game in term of performance (using physics for instance) the Particle Candy (PC) share of the 20 seconds profiles seems to have increase. Or at least it is now red. I am assuming it is normal…
2- As you can see on the graph above, the PC share seems to be around 80% graphically but the PC time shows only 12 seconds of the total 20 secs. Is it because you only display the top 10 slowest process?
4- Is the profiler works on a MAC as well? It does not work for me (Mac Mini, Lion, Safari) It works like a charm on my laptop PC (vista, Chrome)
3- The line 563 deals with deal with the virtual joystick I am using (in addition of the joystick.lua line 111 and line 43. It seems that when I move the joystick (moves a gun cross on the screen) The process takes the bulk of the process (after PC) I am using the following joystick.lua I found on the code page (byMatthew Pringle) :
http://developer.anscamobile.com/code/joystick
Right now I am assuming it is the stuff I am doing in the joystick phase (moving guncross,…) that slows things down a little. I am curious, did you see something like this in your own game since I believe you are using 2 joysticks! Maybe I am simply using an old joystick code…
In any event, I cannot thank you enough for pointing me in the right direction in term of the physics engine and the time share for the coding in enterframe.
Mo.
ps: Unfortunately, I did not have much time to look into the issue of not being able to display the code line (as you can on the graph above) since I was very busy this last few weeks converting my game for use with the physics engine. Now that it is done and I am back in profiling mode, I will look into the issue again report here.
[import]uid: 49236 topic_id: 17975 reply_id: 74501[/import]