Just wondering, how does using less generics improve performance?
Android port of JBox2D testbed
Miscellaneoustoucansam wrote:Just wondering, how does using less generics improve performance?
I didn't know it applied to Android software too but I have heard about this with Google Web Toolkit. I think it comes down to this: because the Java is compiled into something different (i.e. Android code for Andoird and JavaScript for GWT) the compiler needs to get all implementing classes in there. So, if you specify something as <List> for instance, it would need to put <LinkedList>, <ArrayList>, etc. into the result.
Seems to me this would increase the memory footprint but I don't see how it would effect speed.
I will try to run JBox2D from GWT sometime, but it might be a stretch.
Michiel wrote:toucansam wrote:Just wondering, how does using less generics improve performance?
I will try to run JBox2D from GWT sometime, but it might be a stretch.
I was looking for an other guy with the same idea 😉.
I've made two tests yesterday.
http://labs.lo2k.net/gwt-physical-engine/
and
http://labs.lo2k.net/gwt-physical-engine-2/
It's "usable" on chrome but it's really damn too slow on other browser even on firefox 3.5.
A used the latest version of JBox2D. Do you think I can have better result with the android version ?
Hi guys
I wonder if you can help me on this topic, I am new to box2d and although ive managed to work with the Jbox2d in eclipse, I am now trying to import the c-based Box2d to my android application and Im not too sure how to implement c files in eclipse. Could anyone point me in the right direction for importing this into my project.
thanks
I wonder if you can help me on this topic, I am new to box2d and although ive managed to work with the Jbox2d in eclipse, I am now trying to import the c-based Box2d to my android application and Im not too sure how to implement c files in eclipse. Could anyone point me in the right direction for importing this into my project.
thanks
sahar wrote:I am now trying to import the c-based Box2d to my android application and Im not too sure how to implement c files in eclipse. Could anyone point me in the right direction for importing this into my project.
I've never used the native interface with Android, but the place to go for help on that would definitely be an Android-specific forum, it will be the same with Box2d as with any other C++ code.
You might find some info here, the Android NDK is what you need to use: http://developer.android.com/sdk/ndk/index.html
hi everyone! What i must do for apply patch to the library? And is anybody who use it? I want ask about perfomence change.
PS sorry for my bad english(
PS sorry for my bad english(
Original thread: https://box2d.org/forum/viewtopic.php?t=2794