elishacloud / Silent-Hill-2-Enhancements

A project designed to enhance Silent Hill 2 (SH2) graphics and audio for the PC. It also includes scripts to build or modify SH2 audio files (SFX, BGM and Dialog).
http://www.enhanced.townofsilenthill.com/SH2/
zlib License
595 stars 42 forks source link

Buggy resolution change in Fullscreen mode #1090

Open Nikatomix opened 1 month ago

Nikatomix commented 1 month ago

Video: https://youtu.be/M1JyzyOsum8

Switching to certain resolutions in Full Screen mode causes fade-out to black transitions to break, and the pause menu to show black screen in the background. There might be more issues but these are the obvious ones that I've noticed.

Only affects some resolutions but not the others.

Only happens in Full Screen mode, couldn't replicate in FS Windowed mode.

Only happens with Render Resolution set to 1x, couldn't replicate with Render Resolution set to any other value.

The resolutions themselves aren't bugged as restarting the game fixes the issue, and sometimes switching to "buggy" resolutions doesn't result in those issues at all.

d3d8.log Looking at the log it appears that m_IDirect3DDevice8::FakeGetFrontBuffer Setting GetFrontBuffer mode switches (pretty consistently but not always in my other testing attempts) to GDI instead of DirectX when changing to certain resolutions. Not a programmer but I'm guessing that might be the culprit?

Polymega commented 1 month ago

Thanks for the thorough testing and notes on this. We'll have to see what our lead programmer @elishacloud has to say about this one.