G2D: Implement an area threshold for using G2D blits.
Due to the overhead of G2D for small screen-to-screen blits, CPU blits
are faster for small areas. This patch introduces are threshold below
which CPU blits are triggered. It is currently set to 1000 for 32bpp
and 2500 for 16bpp based on test results.
Some benchmarks:
1920x1080x16bppx60Hz, ShadowFB disabled:
x11perf -scroll10
Before:
1500000 trep @ 0.0239 msec ( 41800.0/sec): Scroll 10x10 pixels
After:
2500000 trep @ 0.0110 msec ( 90900.0/sec): Scroll 10x10 pixels
x11perf -copywinwin10
Before:
1200000 trep @ 0.0247 msec ( 40500.0/sec): Copy 10x10 from window to window
After:
1800000 trep @ 0.0146 msec ( 68600.0/sec): Copy 10x10 from window to window
Signed-off-by: Harm Hanemaaijer <fgenfb@yahoo.com>
Please register or sign in to comment