From: <cw...@by...> - 2005-01-10 11:18:15
|
Hi David, I've done a bigger modification. The problem was the memory usage of fastjogl and lwjgl renderer. The worl model polygons were stored twice. At first in the glpoly_t as float[][] and second in the FoatBuffer for vertex array operations. The glpoly_t is now abstract. The implementations are the Polygon classes in the specific renderer package. For lwjgl and fastjogl renderer a FloatBuffer is used as the global back buffer. The operations on vertex and texture coords of Polygon objects modify the back buffer directly. --> less memory usage --> less Garbage at game loop If you have annotations, let me know. (Thanks) bye Carsten |