Re: Negating some JNI call overhead by doing transformations in Java
Posted by GiGurra on Jul 21, 2011; 9:04pm
URL: https://forum.jogamp.org/Negating-some-JNI-call-overhead-by-doing-transformations-in-Java-tp3188212p3189701.html
Thanks everyone. Everything is now clear. I will attempt to compose a transformation matrix on cpu then send it by glloadmatrixf and then gldrawelements to get my vertices to the gpu. MAybe in the future I'll also look into shaders.
Holy crap jni call between 11-15 ns like Michael says? Woa I must be out somewhere way off ^^.
I guess gone are the days when they took microseconds. (all benchmarks i could find online said it would
take a microsecond or so, or more, so when my gl calls took 1 microsecond I assumed it was all jni overhead :D)