From 3d4e16af84161e1b1db39ae9363a39675b56a2d3 Mon Sep 17 00:00:00 2001 From: caro Date: Sun, 1 Mar 2009 21:09:39 +0000 Subject: [PATCH] optimize ddraw engine : when locking a surface, don't allow Windows to suspend operations. expedite runs with around 7 points more than without those flags on my computer git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@39316 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/modules/engines/software_ddraw/evas_ddraw_main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/engines/software_ddraw/evas_ddraw_main.cpp b/src/modules/engines/software_ddraw/evas_ddraw_main.cpp index 46836a3..603b495 100644 --- a/src/modules/engines/software_ddraw/evas_ddraw_main.cpp +++ b/src/modules/engines/software_ddraw/evas_ddraw_main.cpp @@ -185,7 +185,7 @@ evas_software_ddraw_lock(Outbuf *buf, if (FAILED(buf->priv.dd.surface_back->Lock(NULL, &surface_desc, - DDLOCK_WAIT | DDLOCK_SURFACEMEMORYPTR, + DDLOCK_WAIT | DDLOCK_WRITEONLY | DDLOCK_SURFACEMEMORYPTR | DDLOCK_NOSYSLOCK, NULL))) return NULL; -- 2.7.4