Performance of jBullet

Hi,

I was wondering if it would be better performance wise to write a wrapper for bullet with jna instead of using jbullet. I can’t find much on performance comparison of native code through jna against bytecode, so thought I’d just ask.



If performance is better with jna I’d suggest setting up a project for this, writing a wrapper for the latest version so to also include softbodies, which is an attractive feature as well I think.



Greetings,

Kajos

No its not. I am doing that right now (using direct JNI) and the performance is the same. So I am doing it mainly for the added features, yeah.

Look here:

http://hub.jmonkeyengine.org/groups/development-discussion-jme3/forum/topic/timeline-for-jme3-and-native-bullet/



Edit: and java uses JIT since 1.4 so there is no “bytecode being executed” its always native code that runs on the CPU.

are u gonna remove jBullet at a certain point ?

iamcreasy said:
are u gonna remove jBullet at a certain point ?

Guess not, to leave the option to have a pure java implementation. The release version of jME3 will have jbullet by default, with the option to replace the library with native bullet. Maybe in jME 3.1 it becomes the default.
normen said:
No its not. I am doing that right now (using direct JNI) and the performance is the same. So I am doing it mainly for the added features, yeah.
Look here:
http://hub.jmonkeyengine.org/groups/development-discussion-jme3/forum/topic/timeline-for-jme3-and-native-bullet/
Edit: and java uses JIT since 1.4 so there is no "bytecode being executed" its always native code that runs on the CPU.

Nice *drewling*. And thanks for the quick reply, however is your branch the jbullet one? Cause that looks like the current ported jbullet :S . Do you have support for softbodies already?

EDIT: Guess you did name it bullet-jme-native. *oops*

You took the wrong link, look further down ^^

Huh? So it is in the branch jbullet? I must be stupid cause I can’t find it :S



Offtopic: MonkeyHorizons, did that have any progress lately as far you know? Sorry I’m not familiar with the searchengine (sarcasm, it cant find anything on monkeyhorizons :s)

This is the post I was referring to where I “announce” the native bullet implementation:

http://hub.jmonkeyengine.org/groups/development-discussion-jme3/forum/topic/timeline-for-jme3-and-native-bullet/#post-126074

MonkeyHorizons? Idk, the guy didn’t want to adapt his terrain to the jME3 terrain system / help work on it so I lost interest in that project.

Ah ok, I was looking at the jbullet-jme repository smash.



Shame about the MonkeyHorizons, was looking kinda neat.