297chrisc / playn

Automatically exported from code.google.com/p/playn
0 stars 0 forks source link

Pea Physics (Showcase example) getting slower on Android after adding more and more peas #65

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Run the Showcase example on the Android and choose the Pea Physics.
Add more and more peas. I've added 30 peas, and then I noticed that the example 
is getting slower and that animation is not smooth.

What is the expected output? What do you see instead?
I expect that I should be able add objects and that the example should have 
smooth animation all the time.

What version of the product are you using? On what operating system?
I'm running the example on the Android 2.2 (Samsung Galaxy S)

Please provide any additional information below.
In addition, I downloaded AndEngine framework examples through the Android 
Market just to see its behavior and I managed to add at least 100 objects and 
animation was still realy smooth.

I hope that this will be fixed because otherwise the Physics part of the PlayN 
framework will not be useful on the Android devices.

Thanks,
Kresimir

Original issue reported on code.google.com by kresimir...@gmail.com on 23 Sep 2011 at 9:28

GoogleCodeExporter commented 9 years ago
I would like to add that there is also an issue of being able to add peas to 
block, and they will be stuck. Should I file another issue?

Original comment by danielmd...@gmail.com on 24 Sep 2011 at 3:42

GoogleCodeExporter commented 9 years ago
I would suggest opening another issue, because I think that they are not 
related.

Original comment by kresimir...@gmail.com on 25 Sep 2011 at 5:54

GoogleCodeExporter commented 9 years ago
I would be surprised if Dalvik ran slower than V8 Javascript. I would want to 
isolate whether it is Box2D performance or rendering performance, by puting 
timing statements before/after the Box2d code is run. Also, it could be  
problems with garbage collection vs CPU. More research is needed.

Original comment by cromwell...@gmail.com on 26 Sep 2011 at 4:35

GoogleCodeExporter commented 9 years ago

I am trying to play with PlayN :) and i found something interesting, i had a 
lot of perfomance problems in the game i was trying to do. On GLAXSY S 2 

Anyway  when i was trying to solve the problem i saw that instead of reloading 
the same image over and over again e.g. (Block) i save it in a chache and each 
time I need it I am reusing it from the cache. this is working fine now. 

i think it can help solve this problem.

Original comment by a...@tikalk.com on 6 Dec 2011 at 3:33