You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Painkiller Black Edition (the original, not the HD remaster) doesn't size it's game window properlyΒ #3762
This is fixable with PROTON_USE_WINED3D=1 %command% but the problem is that it uses direct3d to opengl, it doesn't use dxvk anymore this way, so all the dxvk.conf options are inaccessible. OpenGL is "fine" but can have severe frame pacing and input latency issues with Vsync on (even when there's no action, GPU and CPU underutilized), and SteamOS forces Vsync ON even when "allow tearing" is enabled (it does nothing).
Would be great to have good support for this game, as it's one of the best shooters ever made :)
Edit: extra notes.
The window covers the screen proper back in d9vk 0.11 and starts small with 0.12 but neither actually render anything but a black window.
Apitraces captured with dxvk on Linux didn't seem replayable.
Thank you for the answer! I should have precised that I'm on the Steam Deck, but I was able to reproduce this issue in desktop mode as well.
Switching back to DXVK (WINED3D=0), unfortunately force aspect ratio 16:9 doens't help, both in desktop an deck ui, unless the lowest resolution is selected. it's working because only 16:9 resolutions are available
I can also confirm the same issue on my oled deck too where it just resizes itself to a small box on the top left of the screen, plus it's not just Painkiller Black Edition that's effected, but the majority of the Painkiller games save for hell and damnation, found the same issue with the game's below.
Tried out Black Edition on my windows laptop to see what would happen on there, game wouldn't boot up with DXVK, sharing a link of my Trace file with it incase it helps.
Weird, just tried on my end on Windows with DXVK 2.3 and 2.3.1 and it works, Nvidia GTX 1080 Ti.
I had to force aspect ratio with the dxvk option to have access to my native resolution for some reason though.
Both Painkiller games seem fine here on latest master.
Painkiller: Black Edition
Painkiller: Overdose
I am on X11 however, so maybe it's an issue with Gamescope?
I tried it out lately on deck desktop mode (which I believe uses X11) on proton Experimental and i still run into the issue, unless a newer version of dxvk fixed it and isn't in proton yet.
Edit: Same result with bleeding-edge proton Experimental, game launches weirdly in a small window, if I use wined3d in desktop mode, it properly full screens and looks normal sized.
@WinterSnowfall on Fedora 41 KDE Plasma (Wayland session - Mesa 24.2.5) with the latest release of Proton-GE 9.18 (today), the game loads on a small windows with only a quarter of the menu visible.
@WinterSnowfall No luck with KDE Plasma 6.2.5 (Wayland session), Mesa 24.3.3 and Proton-GE 9.23 (latest as the time of writing), still only a quarter of a windows is visible (as my latest reply).
Experiencing this issue on Windows 10, latest nvidia drivers. DXVK 2.6.1.
Quite interested in investigating this as it affects the Painkiller RTX Remix project.
We have some insight into the game functionality, if the dxvk folks would like additional information to assist with debugging, please do not hesitate to ask.
Ah good to know some people care, having DXVK work for this would allow Lillium's DXVK HDR mod to perform brightness and possibly channels remastering/upgrades, which would look amazing for such a vibrant game like Painkiller 2004 :)
After that and FEAR 1, there will be no more DX9 outliers at least for me :D
@WinterSnowfall I'm reporting some improvements here! Now the game launch not cut in half but it's VEEEERY tiny inside a black square in the middle of my screen. If i try to change the resolution from 640x480 to 1980x1080 it simply crashes.
wine3d gives me a grey window, full screen; nothing is displayed but at least it launches (sound works) and it looks like the resolution might be correct -_-
Thx anyway, I'll try again in a few months...
I'm waiting for this MR to be released with the next KDE 6.5 plasma stable update (by their schedule, should be on Tue 2025-12-09) because it fixes a problem very similar to this (cc @WinterSnowfall, maybe it's this the needed fix?).
No. Just need to be looked at by the devs at some point
Not much to look at, since this is a full-screen WSI issue. What I've done for it to work reliably is used d3d9-wrapper as a first link in the chain, and set ForceWindowedMode = 1 to get a poor man's borderless full-screen, which then always scales/displays properly with dxvk.
No. Just need to be looked at by the devs at some point
Not much to look at, since this is a full-screen WSI issue. What I've done for it to work reliably is used d3d9-wrapper as a first link in the chain, and set ForceWindowedMode = 1 to get a poor man's borderless full-screen, which then always scales/displays properly with dxvk.
Here is another possible workaround for that issue. It seems like calling SetWindowPos() after loading the game also fixes that problem.
For example here is what I do:
#include <Windows.h>
int main() {
HWND handle = nullptr;
while (true) {
if (GetAsyncKeyState(VK_MULTIPLY) & 0x8000) {
do {
handle = FindWindow(NULL, L"PainKiller");
} while (handle == nullptr);
SetWindowPos(handle, NULL, 0, 0, GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), SWP_FRAMECHANGED);
return 0;
}
Sleep(50);
}
return 0;
}
@WinterSnowfall@GloriousEggroll Confirmed fixed work with and without Wayland with Proton Wayland (on ProtonGE 11-7). The only downside is that you can't use the Unofficial Patch that fixes many problem with the game. I think maybe it's the DxWrapper cited on the patch note that interfere. If you apply the patch and launch the game it simply show a white square on the top left then close, both with and without Wayland. But now the original game is playable, thanks! :D
@DarkSwan86 You might want to retry on latest master, since it turns out the fix was somewhat incomplete and actually caused crashing in a Wine test. Not sure if it's related to what you're seeing with the Unofficial Patch, but probably worth rechecking.
Activity
Blisto91 commentedon Dec 22, 2023
You should post more details like a screenshot since it isn't very clear what is meant. Also remember logs.
The issue presents itself like below when you start the game
Screenshot
It can be worked around by forcing a aspect ratio e.g.not anyway for all resolutions. See belowd3d9.forceAspectRatio = 16:9for my monitor.Log without config (quite spammy)
Painkiller_d3d9-no-config.log
Log with config
Painkiller_d3d9-yes-config.log
Edit: extra notes.
The window covers the screen proper back in d9vk 0.11 and starts small with 0.12 but neither actually render anything but a black window.
Apitraces captured with dxvk on Linux didn't seem replayable.
Deus-nsf commentedon Dec 23, 2023
Thank you for the answer! I should have precised that I'm on the Steam Deck, but I was able to reproduce this issue in desktop mode as well.
Switching back to DXVK (WINED3D=0), unfortunately force aspect ratio 16:9 doens't help, both in desktop an deck ui, unless the lowest resolution is selected. it's working because only 16:9 resolutions are available
waspennator commentedon Mar 18, 2024
I can also confirm the same issue on my oled deck too where it just resizes itself to a small box on the top left of the screen, plus it's not just Painkiller Black Edition that's effected, but the majority of the Painkiller games save for hell and damnation, found the same issue with the game's below.
Painkiller overdose
Painkiller Reoccurring evil
Painkiller Redemption
Painkiller resurrection
waspennator commentedon Apr 13, 2024
Tried out Black Edition on my windows laptop to see what would happen on there, game wouldn't boot up with DXVK, sharing a link of my Trace file with it incase it helps.
https://www.mediafire.com/file/uc2pwrf5k5fzg5r/Painkiller.zip/file
Deus-nsf commentedon Apr 13, 2024
Weird, just tried on my end on Windows with DXVK 2.3 and 2.3.1 and it works, Nvidia GTX 1080 Ti.
I had to force aspect ratio with the dxvk option to have access to my native resolution for some reason though.
DarkSwan86 commentedon Oct 7, 2024
I can confirm that the behaviour of Painkiller Black edition is still the same as the one shown by the screenshot from @Blisto91.
I'm using the latest Proton-GE with dxvk commit e6f89062f5a5af96c4ae28d2ac441e54fbe94068.
WinterSnowfall commentedon Oct 31, 2024
Both Painkiller games seem fine here on latest master.
Painkiller: Black Edition
Painkiller: Overdose
I am on X11 however, so maybe it's an issue with Gamescope?
waspennator commentedon Oct 31, 2024
I tried it out lately on deck desktop mode (which I believe uses X11) on proton Experimental and i still run into the issue, unless a newer version of dxvk fixed it and isn't in proton yet.

Edit: Same result with bleeding-edge proton Experimental, game launches weirdly in a small window, if I use wined3d in desktop mode, it properly full screens and looks normal sized.
DarkSwan86 commentedon Nov 1, 2024
@WinterSnowfall on Fedora 41 KDE Plasma (Wayland session - Mesa 24.2.5) with the latest release of Proton-GE 9.18 (today), the game loads on a small windows with only a quarter of the menu visible.

DarkSwan86 commentedon Jan 21, 2025
@WinterSnowfall No luck with KDE Plasma 6.2.5 (Wayland session), Mesa 24.3.3 and Proton-GE 9.23 (latest as the time of writing), still only a quarter of a windows is visible (as my latest reply).
WinterSnowfall commentedon Jan 21, 2025
I've been able to reproduce it in the meantime as well. It's a bug for sure, but a tough nut to crack at that.
BinqAdams commentedon May 5, 2025
Experiencing this issue on Windows 10, latest nvidia drivers. DXVK 2.6.1.
Quite interested in investigating this as it affects the Painkiller RTX Remix project.
We have some insight into the game functionality, if the dxvk folks would like additional information to assist with debugging, please do not hesitate to ask.
Deus-nsf commentedon May 5, 2025
Ah good to know some people care, having DXVK work for this would allow Lillium's DXVK HDR mod to perform brightness and possibly channels remastering/upgrades, which would look amazing for such a vibrant game like Painkiller 2004 :)
After that and FEAR 1, there will be no more DX9 outliers at least for me :D
BinqAdams commentedon May 6, 2025
The issue does not seem to occur with DXVK version 1.9.4
I did not test any other versions, but it might be possible to narrow down the commit.
for extra information, painkiller seems to hardcode 640x480 somewhere;
This is with desktop resolution 2560x1440,
game resolution options set to 1280x720.
DarkSwan86 commentedon May 15, 2025
@WinterSnowfall I'm reporting some improvements here! Now the game launch not cut in half but it's VEEEERY tiny inside a black square in the middle of my screen. If i try to change the resolution from 640x480 to 1980x1080 it simply crashes.
Proton-GE 10.1 + Mesa 25.0.4
5 remaining items
Gobi-one commentedon Nov 28, 2025
Well, I tried the fixes proposed here and played with versions but nothing works. I have a tiny game window inside a small black window. Any ideas?
Blisto91 commentedon Nov 28, 2025
No. Just need to be looked at by the devs at some point
Edit: If dxvk doesn't but wined3d works then you'll have to use that for now
Gobi-one commentedon Nov 28, 2025
wine3d gives me a grey window, full screen; nothing is displayed but at least it launches (sound works) and it looks like the resolution might be correct -_-
Thx anyway, I'll try again in a few months...
DarkSwan86 commentedon Nov 28, 2025
I'm waiting for this MR to be released with the next KDE 6.5 plasma stable update (by their schedule, should be on Tue 2025-12-09) because it fixes a problem very similar to this (cc @WinterSnowfall, maybe it's this the needed fix?).
WinterSnowfall commentedon Nov 28, 2025
Not much to look at, since this is a full-screen WSI issue. What I've done for it to work reliably is used
d3d9-wrapper as a first link in the chain, and set
ForceWindowedMode = 1to get a poor man's borderless full-screen, which then always scales/displays properly with dxvk.DarkSwan86 commentedon Dec 8, 2025
...aaaaaaaaanddd works again GE-Proton 10.26 ^^"
rrPKrr commentedon Dec 8, 2025
Here is another possible workaround for that issue. It seems like calling SetWindowPos() after loading the game also fixes that problem.
For example here is what I do:
Just in case if somebody needs that...
XDavidXtreme commentedon Apr 17, 2026
This problem was solved about 1 year ago, if you install the 4GB RAM Patch and the Windowed Patch then the game opens normally: https://www.moddb.com/downloads/painkiller-4gb-patch.
You do not need to play in Windowed, you just need to have those 2 patches installed.
Gragt commentedon May 26, 2026
By Jove, youβre right! With your patch, no other fixes needed. Thank you so much for this!
DarkSwan86 commentedon Jun 29, 2026
Sigh...broken again on wayland on Proton-GE 11-1, the tiny window on black background is back. This game is sure from hell :/
Ticket on ProtonGE tracker: GloriousEggroll/proton-ge-custom#579
GloriousEggroll commentedon Jun 29, 2026
It happens without wine-wayland, I noted that already in GloriousEggroll/proton-ge-custom#579
DarkSwan86 commentedon Sep 17, 2026
@WinterSnowfall @GloriousEggroll Confirmed fixed work with and without Wayland with Proton Wayland (on ProtonGE 11-7). The only downside is that you can't use the Unofficial Patch that fixes many problem with the game. I think maybe it's the DxWrapper cited on the patch note that interfere. If you apply the patch and launch the game it simply show a white square on the top left then close, both with and without Wayland. But now the original game is playable, thanks! :D
waspennator commentedon Sep 18, 2026
Works fine now on my oled steam deck out of the box. Thanks for fixing
WinterSnowfall commentedon Oct 20, 2026
@DarkSwan86 You might want to retry on latest master, since it turns out the fix was somewhat incomplete and actually caused crashing in a Wine test. Not sure if it's related to what you're seeing with the Unofficial Patch, but probably worth rechecking.