From 62d546f7c5d4eb6b097e8f28efc0cb92900d9506 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sat, 10 Mar 2012 17:08:02 +0100 Subject: [PATCH] spark: do not sync blitter after every rectangle (improves performance) --- src/driver/framebuffer_spark.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/driver/framebuffer_spark.cpp b/src/driver/framebuffer_spark.cpp index fe437d8f8..6ef5157cb 100644 --- a/src/driver/framebuffer_spark.cpp +++ b/src/driver/framebuffer_spark.cpp @@ -74,7 +74,7 @@ void CFrameBuffer::waitForIdle(void) struct timeval ts, te; gettimeofday(&ts, NULL); #endif -// ioctl(fd, STMFBIO_SYNC_BLITTER); + ioctl(fd, STMFBIO_SYNC_BLITTER); #if 0 gettimeofday(&te, NULL); printf("STMFBIO_SYNC_BLITTER took %lld us\n", (te.tv_sec * 1000000LL + te.tv_usec) - (ts.tv_sec * 1000000LL + ts.tv_usec)); @@ -1609,7 +1609,6 @@ void CFrameBuffer::blitRect(int x, int y, int width, int height, unsigned long c if (ioctl(fd, STMFBIO_BLT, &bltData ) < 0) perror("blitRect FBIO_BLIT"); - ioctl(fd, STMFBIO_SYNC_BLITTER); } void CFrameBuffer::blitIcon(int src_width, int src_height, int fb_x, int fb_y, int width, int height)