http://bugs.winehq.org/show_bug.cgi?id=5526
------- Additional Comments From stefandoesinger@gmx.at 2006-10-07 11:39 ------- Well, the ddraw rewrite was also about sharing d3d code between ddraw, d3d8 and d3d9.
The main idea behind using opengl for ddraw is to handle Blits to the render target in hardware, and to have color conversions handled in hardware. This can really improve performance, in those games that work I get 500 fps instead of 40 fps :-) (Well, swat3 and worms 2 with hacks). There is a hacky patch for the old ddraw code which makes it use opengl, and it helped the performance of the games mentioned here until the mouse was moved, then they crashed because of multithreading issues.
Multithreading was the reason for me to port ddraw over to wined3d. This issue is common for all d3d versions, now we have to fix it only once in wined3d and it will work for all dx versions :-)