Well,
I don't pretend that I have *the* answer, but I think that in the second test
you pass a treshold where the hot spot compiler jumps in. If it sees that a
certain computation takes exceedingly long time, that's a *hot spot* and it is
natively compiled. At that point, the native multiplication of two integers it
is really fast, so it doesn't matter so much if you compute the index into a 2x
array or 1x array.
Regarding the 4 x 4 matrix used by j3d to operate on transforms, if I
have an ideal 100 fps with 50 matrixes to copy, the performance gain with the
new copy in 1 sec will be 9,14 ms. Not really detectable by the human
senses.
Florin
|
Title: improving performance in access to multidimensional array elements
- [JAVA3D] AW: [JAVA3D] improving performance in access to ... Florin Herinean
- [JAVA3D] AW: [JAVA3D] improving performance in access... Florin Herinean