[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

RE: more draw optimizations in xwin.c



Hi Frank, Hi Peter!

this patch is fantastic :-))
would be great if peter could include this in his next unified patch.

On systems with stronger cpu and graphics the wintach difference is not so
big, but on systems with very week cpu(486, pentium100 ...) the performance
gain for wintach is about 100%!
The difference between with -F and without -F are minimal. (about 1%)

following my testvalues 1024x768/16bpp:

1. Intel pentium100 with onboard grafics:


a.  --no-backpixmap, patch fasttext2 and patch 19-3-6-2:

overall:		>>>27,12<<<
word:			3,99
CAD:			37,73
spread:		31,74
paint:		35,02

b.  patch fasttext2 and patch 19-3-6-2:

overall:		>>>14,49<<<
word:			5,01
CAD:			19,25
spread:		17,45
paint:		16,23

c.  patch 19-3-7:

overall:		13,95
word:			4,81
CAD:			19,14
spread:		18,53
paint:		13,31

2. AMD K6-2/350 CPU and SIS530 grafics:


a.  --no-backpixmap, patch fasttext2 and patch 19-3-6-2:

overall:		65,90
word:			13,46
CAD:			98,66
spread:		99,73
paint:		51,76

b.  patch fasttext2 and patch 19-3-6-2:

overall:		51,47
word:			15,71
CAD:			64,97
spread:		75,21
paint:		49,97

c.  patch 19-3-7:

overall:		47,66
word:			15,36
CAD:			60,56
spread:		60,87
paint:		53,86

best regards
Michael


Frank wrote (fasttext2 patch):
>
> Hi All!
>
>     What's in this patch:
>
>         * Added  --no-backpixmap  option to disable the ugly double
> drawing in xwin.c (I have a
>           very robust backing storage in my X, so I don't need it ;)
>         * More optimizations to text draw (previous fast-text patch was
> included in 192-3-6-2). In text
>           drawing with solid background the glyphs are drawn with
> stippled fill instead of XCopyPlane
>           (runs faster on my S3Trio64 with XFree 3.3.6, please test it
> on other configurations to validate
>           this). The WinTach not show any improvement with this change,
> it seems to use all transparent
>           background text draws, but with a old PC Magazine Winbench
> (3.1) doing the scroll text test the
>           speed gain is significative.
>         * My Previous patch to disable backing storage in fullscreen
> mode.
>
>     My WinTach runs:
>
>       Platform: Amd586-150Mhz (486 core) with S3Trio64V+ 800x600 16-bit
> colours
>
>       WinTach word processing test:
>         Patch 19-3-5:         2.09
>         Patch 19-3-6-2:     3.56
>         This patch:              3.68  ( with --no-backpixmap )
>                                       4.86  ( with --no-backpixmap -F )
>         M$ RDP W2K:        17.05 (fullscreen)
>
>       WinTach overall performance:
>         Patch 19-3-5:         15.75
>         Patch 19-3-6-2:     17.06
>         This patch:              25.24 ( with --no-backpixmap )
>                                       25.60  ( with --no-backpixmap -F )
>
>         M$ RDP W2K:          32.49 (fullscreen)
>
>     To do:
>         * Make more text optimizations! Some idea??
>         * Change --no-backpixmap option to a compile time option??? How
> many people have
>           a broken backing-storage X??
>         * Find bugs in this patch :)
>
> (the patch is against 19-3-6-2)
>
> --
> Frank