Closed TMueller83 closed 1 year ago
I haven't had time to check this game yet, but if the issue is with the mouse cursor, I assume the game uses a hardware cursor for that. DDrawCompat emulates it with shaders when display scaling is used. Can you try setting DisplayResolution=app for testing? This should disable the emulation. I also don't recommend using ForceD3D9On12, it possibly makes things worse, and I really haven't tested it much.
Hi @narzoul thank you very much for your fast response! You are right, setting DisplayResolution=app
fixes the problem, i.e., with this setting the game runs stable. Only the shape of the mouse cursor does not change, as it would be intended by the game, but it stays an arrow. However, this is not really a problem. By the way, I tested the game with and without ForceD3D9On12
and I can say that at least this game (Jane's IAF) runs quite fine with it. All issues that I observed was also present if ForceD3D9On12=off
was set, so I think the problems in Jane's IAF are not related to this setting, but maybe I have to test more. So, thank you again very much for your help on how to fix this problem!
Thanks for the feedback! I'll see if I can fix those cursor issues properly when I have some time.
That would be great if you could fix these issues at some point! Thank you very much in advance!
Reopening for the cursor investigations. Apparently there is a GDI resource leak causing the issues, I just have to find it now.
Well, I found it. There was also a slight issue with the cursor getting unnecessarily reloaded each time it was drawn, which made the resource leak worse. The game still leaks some GDI handles when alt-tabbing, but that happens without DDrawCompat too, so I assume it's a game bug. Anyway, here is a quick fix for the leak in DDrawCompat until the next release: ddraw.zip (diff.txt compared to v0.4.0)
Also there is a minor problem with the mouse cursor in the game: Usually the mouse cursor should turn into another symbol than an arrow once the game starts in 3D, however DDrawCompat 0.4 seems to prevent this, while older versions of DDrawCompat did not have this problem and the mouse cursor behaved as intended.
I guess this is the only remaining issue then. It does look like the cursor changes very briefly when mousing over some of the controls, but it immediately changes back to an arrow. I have some ideas where to look for this bug...
Hi @narzoul thank you very much for these great fixes! I just tested the newest fix and it works great! No crashes and the mouse cursor behaves as it should. Thank you very much once again!
EDIT: I have also tried the ForceD3D9On12 = on
option just for testing and it works very well with the newest fix, however the mouse cursor is invisible altogether inside the cockpit.
All mentioned fixes are now part of DDrawCompat v0.5.0.
Hi, first of all thank you for your great work! I'm trying to use DDrawCompat 0.4 to run Jane's Israeli Air Force on Windows 10 (64Bit) with an ATI Radeon RX 580 (8GB). The game runs just fine for a couple of minutes and then crashes (the image gets completely stuck but the game itself seems to continue since one can hear the plane crashing to the floor after some time). I tried to change almost all the options in the
DDrawCompat-IAFJets.ini
file, but none of them seem to fix the crash. Also there is a minor problem with the mouse cursor in the game: Usually the mouse cursor should turn into another symbol than an arrow once the game starts in 3D, however DDrawCompat 0.4 seems to prevent this, while older versions of DDrawCompat did not have this problem and the mouse cursor behaved as intended.EDIT: I think both problems are related. I have noticed that the mouse cursor hides after some time and if one then moves the mouse (which should make the cursor visible again) the image gets stuck immediately. Also the issue before this one reports some problems with the mouse in version 0.4.
Concerning the crash: Here is an example log file.