narzoul / DDrawCompat

DirectDraw and Direct3D 1-7 compatibility, performance and visual enhancements for Windows Vista, 7, 8, 10 and 11
BSD Zero Clause License
885 stars 67 forks source link

DirectX 6 renderer crashes on startup #218

Closed PlayNeth closed 7 months ago

PlayNeth commented 1 year ago

Another issue I forgot to report that you reminded me of in the previous issue: DirectX 6 doesn't seem work in NFS IV at all, crashes upon startup every single time, but at least this time I was able to obtain a crash dump from the .exe:

nfshs.exe.5576.zip And the log file: DDrawCompat-nfshs.log

I'm sure it has to do with DirectX 6 because whenever I use the vanilla d3da.dll (DX6) from NFS IV in NFS 3 it crashes there as well Using the latest version of ddrawcompat

BEENNath58 commented 1 year ago

I had a similar issue but it was fixed with DxWnd. There were performance issues, and DDC fixed both the crash as well as the performance together. https://github.com/narzoul/DDrawCompat/issues/166

narzoul commented 1 year ago

@PlayNeth Can you confirm if the fix mentioned by @BEENNath58 works or not?

PlayNeth commented 1 year ago

Nope. Crashes on startup regardless

narzoul commented 1 year ago

The crash dump you originally attached is definitely the same issue, so the patched ddraw.dll should fix it. I see you're using some integrated Intel GPU though, so there may be other bugs with it also. Please attach another crash dump and debug log with the patched ddraw.dll from the other issue.

PlayNeth commented 1 year ago

Alright. By the way, this laptop I'm using has a dual GPU configuration, iGPU main discrete nvidia second. Just in case this piece of info might come in handy in the future

DDrawCompat-nfshs.log nfshs.exe.6044.zip

narzoul commented 1 year ago

Odd, it crashes at the same place still. I've added some extra debug logs, please use this version: ddraw.zip (diff.txt compared to v0.4.0)

Attaching the debug log file will be enough this time.

PlayNeth commented 1 year ago

It isn't instantly crashing anymore so that is definitely some good progress. Now it's behaving the same exact way as in the previous issue, as in freezing with a black screen in borderless mode and working flawlessly in exclusive DDrawCompat-nfshs.log

narzoul commented 1 year ago

So the fix from #166 is working after all. I guess you were using the wrong ddraw.dll before?

The latest issue is indeed the same one which was solved in #218, I just forgot to include that fix in the patch above. Here's a combined version with both fixes: ddraw.zip (diff.txt compared to v0.4.0)

PlayNeth commented 1 year ago

Probably, think I got mixed up with the dll files lol, my bad. Anyways, seems to be working like a charm now. Many thanks once again

narzoul commented 7 months ago

Fixed in v0.5.0.