nipkownix / re4_tweaks

Fixes and tweaks for the "UHD" port of Resident Evil 4
zlib License
340 stars 32 forks source link

[Feature Request] Independent Flip mode for Borderless Window #268

Open RiasatSalminSami opened 2 years ago

RiasatSalminSami commented 2 years ago

Describe the feature you'd like to see added

Having this option will help getting rid of DWM induced input lag in borderless window mode. This will also introduce screen tearing instead of stutters when vsync is disabled in borderless window mode. Having this option will be nice to have.

Currently fullscreen exclusive is still the best way to play this game since it bypasses the DWM and runs in independent flip mode. Borderless window DWM can still be bypassed if someone with variable refresh rate monitor enables Gsync/ Freesync for window mode.

Currently the only way to force independent flip in this game for non variable refresh rate users is to use special k+ dgvoodoo, which is not exactly ideal, not to mention it interferes with re4 tweaks mod.

nipkownix commented 2 years ago

You mean using DXGI_SWAP_EFFECT_FLIP_DISCARD, right? I though DXGI was only a thing in games using d3d11 or higher? Not sure though, as I'm not very familiar with DirectX.

Edit: Ah, seems DX9 (Ex only?) has D3DSWAPEFFECT_FLIPEX, which might be the same thing? Would there be any issue having this enabled when playing in full screen as well?

RiasatSalminSami commented 2 years ago

You mean using DXGI_SWAP_EFFECT_FLIP_DISCARD, right? I though DXGI was only a thing in games using d3d11 or higher? Not sure though, as I'm not very familiar with DirectX.

Edit: Ah, seems DX9 (Ex only?) has D3DSWAPEFFECT_FLIPEX, which might be the same thing? Would there be any issue having this enabled when playing in full screen as well?

I think exclusive fullscreen already runs in independent flip mode.

Yeah d3d9ex is required for independent flip mode for borderless window mode. Idk if this will affect exclusive fullscreen, hopefully not.

Off topic, but has anyone tried re4 on ps5 [running the ps4 version on ps5 that is]? I heard auto HDR works on RE4 in ps5 and series X.

Auto hdr is kinda possible with dx11 games on pc via special k. But the pc port is running on dx9, so idk if it will be possible to implement something similar.