wagenknecht.org » Gunnar’s Weblog » 2005 » December » 08   Admin | Sign Out  
Weblog | Pictures

Dangerous uses of “new GC(Display)”

Thursday, December 08th, 2005, 08:13:39 +0100, Gunnar Wagenknecht

Anybody out there doing this or who copied HTMLTextPresenter? Have a look at bug 119585.

A “new GC(Display)” is a very expensive operation on some platforms because it has to create an overlay window for the whole screen to allow for fullscreen drawing.

If the GC is not used for fullscreen drawing but only for getting some FontMetrics, it should be replaced by a “new GC(Shell)” or better by a “new GC(Control)”.

See bug #38528 for details.

Gunnar’s Weblog is proudly powered by WordPress and valid XHTML and CSS (hopefully...).
Entries (RSS) and Comments (RSS). Spawned in 0.535 seconds.