narzoul / DDrawCompat

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

Feature request: Force 24-bit Z-buffer #150

Closed ZellSF closed 8 months ago

ZellSF commented 1 year ago

Now that DDrawCompat has support for forcing higher resolutions some old games look bad at times at those resolutions because of z-fighting. I've tested "Arcturus: The Curse and Loss of Divinity" and "Nelson Piquet's Grand Prix Evolution" in DDrawCompat with forced resolution and they look worse than dgVoodoo/Peixoto with forced 24-bit Z-buffer.

"Hydro Thunder", "Simon The Sorcerer 3D" and "Star Wars Episode 1 Racer" are three other titles I know need 24-bit Z-buffer to look optimal, though I haven't checked if those work in DDrawCompat.

Quick search tells me "Rayman 2" and "Vampire: the Masquerade - Redemption" also would benefit from such a setting. Not that I know if it's viable to implement in DDrawCompat.

I'm pretty sure I've run into other games with this problem too, I just don't remember them at the moment (I do remember two more, but they're Direct3D8).

narzoul commented 1 year ago

It should be possible. I'll try to add an option for it in the next release.

narzoul commented 8 months ago

Added a DepthFormat setting in v0.5.0.