[KMS] Extremely low performance of XDrawImageString
Submitted by Mihail Zenkov
Assigned to xf86-video-ati maintainers
Description
Created attachment 67652
test.c
I have performance problem in simple terminal apps like st (st.suckless.org) that render text without xft. With "NoAccel" "1" or "RenderAccel" "0" problem gone.
I write simple test and have result:
- default x.org configuration: 2000 ms
- with "RenderAccel" "0": 70-170 ms
- with "NoAccel" "1": 18-30 ms
I also run gtkperf -ac1000 and see many test faster with "RenderAccel" "0".
Default x.org configuration:
GtkEntry - time: 0,22
GtkComboBox - time: 14,89
GtkComboBoxEntry - time: 17,33
GtkSpinButton - time: 0,39
GtkProgressBar - time: 0,42
GtkToggleButton - time: 0,36
GtkCheckButton - time: 0,34
GtkRadioButton - time: 1,90
GtkTextView - Add text - time: 12,98
GtkTextView - Scroll - time: 2,31
GtkDrawingArea - Lines - time: 15,77
GtkDrawingArea - Circles - time: 9,08
GtkDrawingArea - Text - time: 4,74
GtkDrawingArea - Pixbufs - time: 1,84
---
Total time: 82,59
With "RenderAccel" "0":
GtkEntry - time: 0,22
GtkComboBox - time: 10,63
GtkComboBoxEntry - time: 11,35
GtkSpinButton - time: 0,31
GtkProgressBar - time: 0,31
GtkToggleButton - time: 0,34
GtkCheckButton - time: 0,34
GtkRadioButton - time: 0,82
GtkTextView - Add text - time: 13,21
GtkTextView - Scroll - time: 2,51
GtkDrawingArea - Lines - time: 28,74
GtkDrawingArea - Circles - time: 9,25
GtkDrawingArea - Text - time: 8,58
GtkDrawingArea - Pixbufs - time: 2,16
---
Total time: 88,78
HD6770, kernel-3.5, xorg-server-1.12.4, libdrm-2.4.39, xf86-video-ati-6.14.6
**Attachment 67652**, "test.c":
test.c