http://bugs.winehq.org/show_bug.cgi?id=3902
------- Additional Comments From damjan.jov@gmail.com 2006-12-10 11:15 ------- Created an attachment (id=3838) --> (http://bugs.winehq.org/attachment.cgi?id=3838&action=view) attempt at a client-side DIB copy patch for wine-0.9.22
Well, unimpressed by the slight performance improvement to Heroes 4 by Iulian's dirty rectangle patch, I decided to look into the problem further. The message "potential optimization - client side DIB copy" gets printed out a lot while playing Heroes 4, and I tried to do a client-side DIB copy.
With this little patch, the frame rate is unbelievably high, but unfortunately for some strange reason the graphics come out corrupted (mouse trails, stuff drawn wrongly, flickering pictures).
I've already posted to wine-devel asking for help - nobody's replied in 2 days :-( so I'm putting the patch here so it doesn't get lost. I will continue to try different things - currently I'm looking into the possibility of the image being modified on the X server while I copy pixels locally - but I would really appreciate anyone with any knowledge of winex11.drv to look at it and comment, I've been looking at the code for days and still don't know what's wrong.