DirectFB - Home of the pragmatist Roadmap


[directfb-cvs] DirectFB
Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[directfb-cvs] DirectFB



CVSROOT:	/cvs/directfb
Module name:	DirectFB
Changes by:	dok	20030716 04:49:09

Modified files:
	src/core       : surfaces.c surfaces.h 
	src/gfx        : util.c 

Log message:
Removed front and back buffer locks from surface.
Locking is provided by the embracing surface manager lock.

This saves two system calls per drawing operation and even four system
calls per blitting operation.

Locking a surface won't block anymore. Currently any number of
concurrent read/write accesses by cpu/gpu are allowed.
Locking is a way of pinning the surface buffer to a pool.
The hardware lock fails if the system memory instance is locked.

Check the benchmarks, some values nearly doubled ;)

BEFORE

Benchmarking with 1x1 in 16bit mode... (16bit)

Anti-aliased Text                              3.00 secs (  626.97 KChars/sec)
Anti-aliased Text (blend)                      3.00 secs (  633.18 KChars/sec)
Fill Rectangles                                3.00 secs (    0.14 MPixel/sec)
Fill Rectangles (blend)                        3.00 secs (    0.13 MPixel/sec)
Fill Triangles                                 3.00 secs (    0.06 MPixel/sec)
Fill Triangles (blend)                         3.00 secs (    0.06 MPixel/sec)
Draw Rectangles                                3.00 secs (  128.37 KRects/sec)
Draw Rectangles (blend)                        3.00 secs (  125.77 KRects/sec)
Draw Lines                                     3.00 secs (  737.33 KLines/sec)
Draw Lines (blend)                             3.00 secs (  718.00 KLines/sec)
Blit                                           3.00 secs (    0.10 MPixel/sec)
Blit colorkeyed                                3.00 secs (    0.10 MPixel/sec)
Blit with format conversion                    3.00 secs (    0.12 MPixel/sec)
Blit from 32bit (alphachannel blend)           3.00 secs (    0.09 MPixel/sec)
Blit from 8bit palette                         3.00 secs (    0.11 MPixel/sec)
Blit from 8bit palette (alphachannel blend)    3.00 secs (    0.09 MPixel/sec)
Stretch Blit                                   3.24 secs (   99.88 MPixel/sec)
Stretch Blit colorkeyed                        3.23 secs (  100.16 MPixel/sec)

AFTER

Benchmarking with 1x1 in 16bit mode... (16bit)

Anti-aliased Text                              3.00 secs (  675.60 KChars/sec)
Anti-aliased Text (blend)                      3.00 secs (  677.32 KChars/sec)
Fill Rectangles                                3.00 secs (    0.17 MPixel/sec)
Fill Rectangles (blend)                        3.00 secs (    0.16 MPixel/sec)
Fill Triangles                                 3.00 secs (    0.07 MPixel/sec)
Fill Triangles (blend)                         3.00 secs (    0.07 MPixel/sec)
Draw Rectangles                                3.00 secs (  168.70 KRects/sec)
Draw Rectangles (blend)                        3.00 secs (  159.00 KRects/sec)
Draw Lines                                     3.00 secs (  833.00 KLines/sec)
Draw Lines (blend)                             3.00 secs (  809.33 KLines/sec)
Blit                                           3.00 secs (    0.15 MPixel/sec)
Blit colorkeyed                                3.00 secs (    0.15 MPixel/sec)
Blit with format conversion                    3.00 secs (    0.21 MPixel/sec)
Blit from 32bit (alphachannel blend)           3.00 secs (    0.16 MPixel/sec)
Blit from 8bit palette                         3.00 secs (    0.20 MPixel/sec)
Blit from 8bit palette (alphachannel blend)    3.00 secs (    0.15 MPixel/sec)
Stretch Blit                                   4.41 secs (  110.36 MPixel/sec)
Stretch Blit colorkeyed                        3.14 secs (  103.09 MPixel/sec)



-- 
Info:  To unsubscribe send a mail to ecartis@directfb.org with 
"unsubscribe directfb-cvs" as subject.



Home | Main Index | Thread Index


directfb.org / Development / Old Archives