New
#1
[BUG] Double-buffering bug RADEON drivers (v15.7 - v19.3) on Windows 7
Double-buffering bug RADEON drivers (v15.7 - v19.3, all versions) on Windows 7
Classic theme or Windows Basic theme (any no AERO themes)
This bug all new AMD cards 2014-2019 years:
- Radeon HD 7XXX;
- Radeon R5, R7, R9 series;
- Radeon RX 400, RX 500 series
with Radeon Driver - from Catalyst v15.7 to Radeon Adrenalin v19.3.1 (all versions)
NVidia and Intel video cards there are no problems!
Unfortunately, this problem is present on AMD drivers only.
Using "double-buffering patch" increase RADEON driver performance up 10-30 times!
Demonstration in the foobar2000 spectrum with FPS measurement using simpleGLUT.
No patch (WS_EX_COMPOSITED = OFF)
FPS = 25-60 (very big lags)
Used "double-buffering patch" (WS_EX_COMPOSITED = ON)
FPS = 850-920 (no lags)
Video demonstration -
Source code:
Code:#include <windows.h> #define WS_EX_COMPOSITED 0x02000000L static BOOL WINAPI EnumProc (HWND hwnd, LPARAM param) { DWORD style; style = (DWORD)GetWindowLong (hwnd, GWL_EXSTYLE); // ON SetWindowLong (hwnd, GWL_EXSTYLE, style | WS_EX_COMPOSITED); // OFF //SetWindowLong (hwnd, GWL_EXSTYLE, style & ~WS_EX_COMPOSITED); return TRUE; } void BoostWindows (void) { EnumWindows (EnumProc, 0l); } int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR szCmdLine, int nShowCmd) { BoostWindows (); return 0; }