ThirteenAG / WidescreenFixesPack

Plugins to make or improve widescreen resolutions support in games, add more features and fix bugs.
https://thirteenag.github.io/wfp
MIT License
2.26k stars 215 forks source link

[Max Payne 2] Vsync and framerate limit in fullscreen mode #592

Open Diego0920 opened 5 years ago

Diego0920 commented 5 years ago

Hello.

Is there any way to make MP2 run with a 60fps cap in fullscreen mode and Vsync disabled? The input lag is off-putting and in my particular PC, the framerate crashes to 30 whenever it drops under 60. I tried using the windowed mode but it's not perfect.

Keith94 commented 5 years ago

https://pcgamingwiki.com/wiki/Glossary:Frame_rate_(FPS)#Frame_rate_capping

Diego0920 commented 5 years ago

Thank you.

I forgot to add that I have an Intel HD iGPU and that's why I cannot find a proper solution for Vsync. Using any sort of wrapper that is not DX8 will reduce performance by a lot.

ThirteenAG commented 5 years ago

https://github.com/ThirteenAG/d3d8-wrapper/releases/latest

Diego0920 commented 5 years ago

What do I do next? I can use bandicam to limit FPS but I don't know what to do with Vsync.

Blackbird88 commented 5 years ago
  1. Download it, extract it so d3d8.dll/ini are next to EXE
  2. Open d3d8ini
  3. Change FPSLimit = 0 to whatever you want
Diego0920 commented 5 years ago

I did manage to set the frame limit correctly, either with Bandicam or d3d8.ini. It's just that the game seems to be permanently set with Vsync ON. Maybe it's an engine thing.

For now I can play it without framedrops on my other PC. It's impossible to disable vsync completely.

eadmaster commented 5 years ago

similar problem here with Intel HD 610 iGPU, the framerate drops randomly and the game is unplayable on Windows 10.

d4rkne55 commented 5 years ago

@Diego Did you try a driver override from the Intel Control Panel to disable V-Sync? Yeah, it's a bit old already, but the issue is not resolved and it got revived already, so..^^

Hexaae commented 2 years ago

https://github.com/ThirteenAG/d3d8-wrapper/releases/latest

Is there a way to make the FPSLimit=n feature of that d3d8 wrapper work together with the widescreen fixes for MP1 & 2 (see also https://github.com/ThirteenAG/WidescreenFixesPack/issues/871 )? :(

AeroWidescreen commented 2 years ago

https://github.com/ThirteenAG/d3d8-wrapper/releases/latest

Is there a way to make the FPSLimit=n feature of that d3d8 wrapper work together with the widescreen fixes for MP1 & 2 (see also #871 )? :(

I don't have access to either games at the moment, but have you tried renaming Ultimate ASI Loader (the d3d8.dll that comes with the widescreen fix) to something else? Try dsound.dll.

All possible names, but only a few will actually work depending on the game:

ddraw.dll dinput.dll dinput8.dll dsound.dll msacm32.dll msvfw32.dll version.dll wininet.dll winmm.dll xlive.dll vorbisFile.dll (rename original to vorbisHooked.dll, optional) binkw32.dll (rename original to binkw32Hooked.dll, optional)

DonelBueno commented 2 years ago

https://github.com/ThirteenAG/d3d8-wrapper/releases/latest

Is there a way to make the FPSLimit=n feature of that d3d8 wrapper work together with the widescreen fixes for MP1 & 2 (see also #871 )? :(

I don't have access to either games at the moment, but have you tried renaming Ultimate ASI Loader (the d3d8.dll that comes with the widescreen fix) to something else? Try dsound.dll.

Renaming Ultimate ASI Loader to dsound.dll worked perfectly, thank you so much!

Hexaae commented 2 years ago

Renaming it dinput.dll also worked (to leave dsound.dll free for EAX wrapper... see https://steamcommunity.com/app/12150/discussions/0/5358712989057650317/ ) even though 60fps seems not vsynced, just capped (a little bit less smooth, not sure if can break scripts)... mmh

With Vsync = Adaptive in NVidia control panel (or Nvidia Profile Inspector) + scripts/Global.ini: UseD3D8to9=1 you can play 144Hz (my screen max Hz) vsynced and silky smooth though. MP2 seems more stable than MP1 and scripts look ok to me (I'm 50% of the game and saw no errors)

Hexaae commented 1 year ago

Today I tried again this old game and found that additional 60fps cap using https://github.com/ThirteenAG/WidescreenFixesPack/issues/592#issuecomment-454872474 does actually work, even on Windows 11. How to: