New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A change I needed for my project #1
Conversation
…or worlds without energy loss (e.g. no gravity, no friction and full restitution). Also fix Maven project.
I just made all settings non-final :) |
Hi Daniel, Great! Can't wait to see, after work ;-). BTW, I saw that you tried the JNI option. Did you really see no improvement On Wed, Feb 12, 2014 at 3:09 AM, Daniel Murphy notifications@github.comwrote:
|
It was a somewhat large disappointment :( I should probably double check my numbers though. Most of the issue came from needing the callbacks to java (proceed in the query or not), and crossing the java-c barrier is rather slow. I had some ideas for removing that for the most common cases, but I haven't gotten around to it yet. If you want to see some cool stuff, check out the liquidfun branch :) |
I wonder whether GWT+V8 would be faster than JNI ;-) On 12 February 2014 20:53, Daniel Murphy notifications@github.com wrote:
|
I've seen a couple of people do comparisons, apparently javascript is still slower. |
* Make velocityThreshold mutable - See jbox2d/jbox2d#1 * TimeOfImpact loop fixes - See jbox2d/jbox2d#36 * fix ropejoint pool leak bug - See jbox2d/jbox2d#59
* Make velocityThreshold mutable - See jbox2d/jbox2d#1 * TimeOfImpact loop fixes - See jbox2d/jbox2d#36 * fix ropejoint pool leak bug - See jbox2d/jbox2d#59
Settings.velocityThresold needs to be modifiable, as it is in other languages.
I needed that because my world has no gravity, and objects without friction and with full restitution. Having velocityThreshold caused my bodies to stick to walls.