Hi all,
I'm looking for advises regarding the following remarks.
While profiling my game, I see (again) time spent in GLContext.getCapabilities and BufferChecks.checkFunctionAddress.
For example:
21,923 ms spent to invoke 1,748,992 times the method GL11.glVertex3f
And to perform this call, I have:
7,175 ms for GLContext.getCapabilities
2,796 ms for GL11.nglVertex3f <-- the native call
2,402 ms for BufferChecks.checkFunctionAddress
So I've questions:
- would it be possible to remove the 2 calls to GLContext.getCapabilities and BufferChecks.checkFunctionAddress?
Note that I've implemented something that does it perfectly but I would like to get from the creators for possible restrictions like several monitors?
My implementation performs about 10x faster for a call to GL11.glLoadIdentity bypassing these checks:
- 0,0014362558548009367681498829039813 ms per call (new impl)
- 0,012490314582364791569812490314582 ms per call (current impl)
Hoping JVM native compilation does not interfere here
Waiting for your comments
WS