[Issue Report]: [1.6] Massive lags in Debug when compiling with MSVC and per-pixel lighting is on
Author: WiroxCreated Aug 1, 2026Updated Aug 1, 2026
I did simple tests by walking around in town on normal speed: Debug 1.5.5 compiled with MSVC: ~40 FPS Debug 1.6 (4b2e6c7) compiled with MSVC with per-pixel lighting turned off: ~35 FPS Debug 1.6 (4b2e6c7) compiled with MSVC with per-pixel lighting turned on: ~9 FPS
Release versions downloaded from here work fine, ~60 FPS in both 1.5.5 and 1.6 with per-pixel lighting on.
One of the issues is that rendering in Debug doesn't use -O2 in MSVC, just GNU and Clang, though that's not the only problem because in 1.5.5 it didn't use -O2 either. https://github.com/diasurgical/DevilutionX/blob/4b2e6c74947101f93b586f8aea1828496c8c098a/Source/CMakeLists.txt#L166-L181
Source: diasurgical/DevilutionX