Dangerous uses of “new GC(Display)”
Thursday, December 08th, 2005, 08:13:39 +0200, Gunnar WagenknechtAnybody 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.






December 8th, 2005 at 12:13
Thanks! Very useful hint.