Login  Register

Re: Negating some JNI call overhead by doing transformations in Java

Posted by Wade Walker on Jul 21, 2011; 1:29pm
URL: https://forum.jogamp.org/Negating-some-JNI-call-overhead-by-doing-transformations-in-Java-tp3188212p3188504.html

I benchmarked JNI call rate a while back when someone asked me about this on my blog (benchmark code at http://wadeawalker.wordpress.com/2010/10/17/tutorial-faster-rendering-with-vertex-buffer-objects/#comment-108). The result was I could make anywhere from ~300,000 to ~4,000,000 JNI calls per second on a 2.4GHz machine, depending on the amount of loop unrolling performed by the JVM. I didn't test to see how much was "extra" due to JNI (compared to just a normal Java call).