So Crazy Memory Used, plz Help.
Posted: Fri Aug 04, 2006 02:53
I'm using 0.5 svn head, and I'm trying East language display.
When I use few characters, it seems OK,
but if I display some more different characters(about 300 ~ 500 chinese characters), it's very slow and so crazy memory used ( about 70MB+).
I had add a debug trace at
void FreeTypeFont::rasterize (utf32 start_codepoint, utf32 end_codepoint)
{
....
Imageset *is = ImagesetManager::getSingleton ().createImageset (
d_name + "_auto_glyph_images_" + int (s->first),
System::getSingleton ().getRenderer ()->createTexture ());
d_glyphImages.push_back (is);
//
OutputDebugString("Create a texture!!");
With DbgVIEW, it seems that this code segment was called more than 4000 times.
plz help, thanks a lot !
When I use few characters, it seems OK,
but if I display some more different characters(about 300 ~ 500 chinese characters), it's very slow and so crazy memory used ( about 70MB+).
I had add a debug trace at
void FreeTypeFont::rasterize (utf32 start_codepoint, utf32 end_codepoint)
{
....
Imageset *is = ImagesetManager::getSingleton ().createImageset (
d_name + "_auto_glyph_images_" + int (s->first),
System::getSingleton ().getRenderer ()->createTexture ());
d_glyphImages.push_back (is);
//
OutputDebugString("Create a texture!!");
With DbgVIEW, it seems that this code segment was called more than 4000 times.
plz help, thanks a lot !