Summary: | PMVMatrix.glPushTransform shouldn't allocate a new float array per call | ||
---|---|---|---|
Product: | [JogAmp] Jogl | Reporter: | Brice Figureau <brice.figureau> |
Component: | util | Assignee: | Sven Gothel <sgothel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | --- | ||
Version: | 2 | ||
Hardware: | All | ||
OS: | all | ||
Type: | --- | SCM Refs: |
gluegen: ac16df0bab94fab313030ead42644844d1690a82
gluegen: 8b3e5b94bcd3167278eb972b2be37086d3bd2996
jogl: 96f8f55a8db5f430fc17ce9ea1bf45e4728ab6ac
|
Workaround: | --- |
Description
Brice Figureau
2012-12-28 19:28:53 CET
You are referring to glPushMatrix/glPopMatrix ? If so .. I agree. Do you like to make that [git] patch ? http://jogamp.org/git/?p=jogl.git;a=commit;h=96f8f55a8db5f430fc17ce9ea1bf45e4728ab6ac Enhance PMVMatrix: Use FloatStack to implement PushMatrix and PopMatrix (Bug 657) One FloatStack for each, MV, P and T, with initialialSize zero to save memore and growSizes: MV = 16 arrays, P = 2 arrays, T = 2 arrays, with array = 16 floats. This shall save performance due to the preallocated stack when used and growing only in the above mentioned grow intervals. We may finetune the growSize, if required. |