optimize ddraw engine : when locking a surface, don't allow Windows
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 1 Mar 2009 21:09:39 +0000 (21:09 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 1 Mar 2009 21:09:39 +0000 (21:09 +0000)
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

index 46836a3..603b495 100644 (file)
@@ -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;