Bitmap font embedded in TTF causes massive X server CPU usage
Submitted by Chris Lee
Assigned to Xorg Project Team
Steps to reproduce:
- Install the Anonymous Pro font (yum install msimonson-anonymouspro-fonts on F13, or download+install manually from http://www.ms-studio.com/FontSales/anonymouspro.html )
- Set GNOME terminal font to Anonymous Pro, size 8pt (assuming X server DPI is set to 96)
- In a GNOME-terminal window, run a program that spews a lot of text; an example Python script which will do the job is available at http://pastie.org/private/dmzqrytvjdhle597muzufw
Expected result: Spewing dozens of lines of text per second should causes barely any noticeable extra CPU overhead.
Actual result: My X server's CPU usage jumps to well over 70% and according to sysprof most of my CPU time is being spent inside drm_gem_object_alloc, which is being called by radeon_gem_object_create.