About This File
DDrawCompatis a DirectDraw wrapper aimed at fixing compatibility and performance issues with games based on DirectX 7 and below on newer versions of Windows (Vista/7/8/10). Games using DirectX 8 and above for rendering are not affected as they don't use
DDrawCompatdoes not use any external renderer (such as OpenGL), nor even a newer version of DirectX. It only changes how DirectDraw (and GDI) is used internally. Since older versions of Direct3D (v7 and below) also rely on DirectDraw,
DDrawCompatmay be useful for those renderers as well.
Source code is licensed under the
Free Public License 1.0.0. See
LICENSE.txtin the repository root for details. The same terms apply for the entire repository, not just for the versions in which the license file appears.
Binary releases are licensed under the
Microsoft Research Shared Source License Agreement (Non-commercial Use Only). Each release contains the exact terms in
DDrawCompatneither comes from, nor is endorsed by Microsoft. Use it at your own risk!
- Windows Vista, 7, 8 or 10
- DirectDraw (comes preinstalled with Windows)
Download the latest binary release from the repository's releases page. Unzip the file and copy the extracted
ddraw.dllto any DirectDraw based game's installation directory, next to the main executable file. If the main executable is in a subdirectory of the installation directory, you must put
ddraw.dllin the same subdirectory.
If there is already an existing
ddraw.dllfile there, it is probably another DirectDraw wrapper intended to fix some issues with the game. You can still try to replace it with
ddraw.dll, but make sure you create a backup of the original DLL first.
Do not attempt to overwrite
ddraw.dllin a Windows system directory, it is currently not supported and will not work.
If you put the dll in the correct place, then (assuming the game really uses DirectDraw) every time you launch the game a
ddraw.logfile should be created in the same directory, containing some basic log messages. If something goes wrong, it is worth checking this log file for possible error messages.
ddraw.dllfrom the game's directory and restore the original
ddraw.dllfile (if there was any). You can also delete the
DDrawCompataims to minimize the amount of user configuration required to make games compatible. It currently doesn't have any configuration options. This may change in future versions, if the need arises.
If some compatibility options are set for the game via the Compatibility tab of the executable's Properties window, try disabling or changing them.
If that doesn't help, advanced users can access additional compatibility options using Microsoft's ACT (Application Compatibility Toolkit). This is not a user guide for ACT, you'll have to look for that elsewhere. However, here are some of the compatibility fixes I found useful:
Disable8And16BitD3D:It can help with performance issues in games that use 8 and 16 bit color modes. This fix is available only in the
Compatibility Modeslisting and not under
DXPrimaryEmulation:Use it with the
-DisableMaxWindowedModeparameter. It can help with performance issues.
DDrawCompatenables this automatically.
ForceSimpleWindow:If you are not using
DXPrimaryEmulationand the game is running in full screen mode with visible window borders, then this may help remove the borders.
NoGDIHWAcceleration:Despite what the name suggests, this can improve performance. It can be used as an alternative to
DXPrimaryEmulation. Usually using both will not provide additional performance benefits.
SingleProcAffinity:Old games often have various issues when running on multiple CPU cores. This fix will force a game to run on a single core.
DDrawCompatenables this automatically.
Win98VersionLie:Some games use different code paths based on the reported OS version or may not run if the version is not recognized. This and other similarly named fixes report the specified fake Windows version to the game and may help with various issues.
DDrawCompatis written in C++ using Microsoft Visual Studio Community 2015.
Compilation depends on Detours Express 3.0. It needs to be built first before
DDrawCompatcan be built. Change the include and library paths as needed if you didn't install/build Detours in the default directory.
The project initially used the Windows 8.1 SDK and WDK, but some commits after the v0.2.1 release it was updated to use the Windows 10 SDK and WDK instead. The exact version required can be checked in the project properties in Visual Studio (General tab / Target Platform Version). Commits using an older platform version can probably still be built with a newer version by retargeting the project to the appropriate SDK.
DirectDraw compatibility and performance enhancements for Windows Vista, 7, 8 and 10
LicenseNo packages published
What's New in Version 12/01/2020 12:39 AM See changelog
No changelog available for this version.
- With version 12/01/2020 12:39 AM: