Bug 453 - TextRenderer consumes too much memory
Summary: TextRenderer consumes too much memory
Status: VERIFIED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: awt (show other bugs)
Version: 2
Hardware: All all
: --- normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2011-01-05 23:39 CET by Julien Gouesse
Modified: 2011-02-05 04:11 CET (History)
0 users

See Also:
Type: ---
SCM Refs:
314d694855774eef907c65f8f304056dcc87de6a
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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