* dene maxwell -- Wednesday 21 June 2006 22:55:
> I answered a previous post before before reading yours.... could this 
> problem have existed for a while (previous versions)?

No. It was a kind of copy&paste error that I committed recently, with this
log message:

  revision 1.47
  date: 2006-06-05 22:23:56 +0200;  author: mfranz;  state: Exp;  lines: +40 -34
  make FGFontCache independent of NewGUI and allow early construction in
  FGGlobals

I moved the initialization from the constructor to the getter with a
flag ensuring that this code would only get called once. This was needed
because the FGFontcache instance was now part of FGGlobals. Being created
in FGGlobals' contructor, it had no access to globals->get_root() at that
time.

Well, and what happened is, that after copying the code I set the brace
at the wrong line, before the static fonts were added to the cache. Now
they were added with every font query again -- several times per frame.
And these fonts take several kB ...   :-)

m. 

All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to