FunkyFr3sh / cnc-ddraw

GDI, OpenGL and Direct3D 9 re-implementation of the DirectDraw API for classic 2D games for better compatibility with Windows 2000, XP, Vista, 7, 8, 10, 11, Wine (Linux/macOS/Android) and Virtual Machines
https://discord.gg/afWXJNDDF5
MIT License
2.13k stars 143 forks source link

Game freeze then exit after 2-3s on yuri's revenge again. #260

Closed kotoricon closed 8 months ago

kotoricon commented 8 months ago

Sorry for this again, but look like the same issue is happen again in 5.9.0.0(game freeze then exit after 2-3s). I've used 5.5.0.0 until jump to this version never happen this.

Old issue: [Originally posted by @kotoricon in https://github.com/FunkyFr3sh/cnc-ddraw/issues/230#issuecomment-1788319646](https://github.com/FunkyFr3sh/cnc-ddraw/issues/230)

FunkyFr3sh commented 8 months ago

Can you give me a debug log? https://github.com/FunkyFr3sh/cnc-ddraw/issues/44

kotoricon commented 8 months ago

Sorry for the wrong file. and I cant find cnc-ddraw-*.dmp, maybe it's not generated? P.S: this dll always make the game very slow between 30-60 framerate with infinite framerate setting. cnc-ddraw-log.zip

FunkyFr3sh commented 8 months ago

You seem to have a bad ddraw.ini because non of the required YR settings are loaded. And yeah, the dmp file is only generated if you crash, it might not always exist, but that's ok.

Can you upload your ddraw.ini? You may have multiple ones, one in the resources folder and one in the main game folder

kotoricon commented 8 months ago

I deleted one of them and test it still not crash after 20min, thanks for your help.

FunkyFr3sh commented 8 months ago

nice 👍

Yeah, your's had "hook=1" set in it so it was probably a couple years old ddraw.ini you had there