Its not really a bug. What puzles me is that there is a constant activivity from the garbage collector and im trying to indentify from where it comes.
This is the code i ran:
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=05
The results:
java -verbose:gc -Xconcgc -cp .;jogl.jar Lesson05
[GC 3968K->587K(16320K), 0.0568377 secs]
[GC 4555K->808K(16320K), 0.0175341 secs]
[GC 4776K->808K(16320K), 0.0018226 secs]
[GC 4776K->808K(16320K), 0.0014963 secs]
[GC 4776K->809K(16320K), 0.0015315 secs]
[GC 4777K->809K(16320K), 0.0015161 secs]
Each log happens with an interval of ~ 16s. This time i measured the time more precisely and its more like 4000k /16 = 250kb a sec.
With incremental gc:
java -verbose:gc -Xincgc -cp .;jogl.jar Lesson05
[GC 3968K->587K(16320K), 0.0559940 secs]
[GC 4555K->806K(16320K), 0.0181464 secs]
[GC 4774K->806K(16320K), 0.0018332 secs]
[GC 4774K->806K(16320K), 0.0015231 secs]
[GC 4774K->807K(16320K), 0.0015290 secs]
[GC 4775K->807K(16320K), 0.0014812 secs]
Same results with incgc
If i run the demo in full screen do we think the constant gc will be eleminated ?