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


SVN revision: 39316
This commit is contained in:
Vincent Torri 2009-03-01 21:09:39 +00:00
parent a5a7e167d9
commit 3616db9aa6
1 changed files with 1 additions and 1 deletions

View 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;