Bug 453

Summary: TextRenderer consumes too much memory
Product: [JogAmp] Jogl Reporter: Julien Gouesse <gouessej>
Component: awtAssignee: Sven Gothel <sgothel>
Status: VERIFIED FIXED    
Severity: normal    
Priority: ---    
Version: 2   
Hardware: All   
OS: all   
Type: --- SCM Refs:
314d694855774eef907c65f8f304056dcc87de6a
Workaround: ---

Description Julien Gouesse 2011-01-05 23:39:34 CET
Hi!

TextRenderer consumes too much memory as I explained here:
http://jogamp.762907.n3.nabble.com/high-memory-consumption-in-JOGL-tp2141331p2190784.html

You can reproduce this bug by running the text flow demo during half an hour. Lots of identical StandardGlyphVector instances are created which is completely useless.

I have already made a pull request containing a reliable fix for this bug and it is already used in several commercial applications for months. Use jvisualvm to see the difference. The pull request is here:
https://github.com/sgothel/jogl/pull/13
https://github.com/sgothel/jogl/pull/12
https://github.com/sgothel/jogl/pull/11
Comment 1 Sven Gothel 2011-02-05 04:11:53 CET
merged: 314d694855774eef907c65f8f304056dcc87de6a