WidescreenFixesPack icon indicating copy to clipboard operation
WidescreenFixesPack copied to clipboard

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

Open Diego0920 opened this issue 7 years ago • 12 comments

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.

Diego0920 avatar Jan 16 '19 16:01 Diego0920

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

Keith94 avatar Jan 16 '19 17:01 Keith94

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.

Diego0920 avatar Jan 16 '19 17:01 Diego0920

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

ThirteenAG avatar Jan 16 '19 17:01 ThirteenAG

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

Diego0920 avatar Jan 16 '19 18:01 Diego0920

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

Blackbird88 avatar Jan 16 '19 18:01 Blackbird88

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.

Diego0920 avatar Jan 16 '19 20:01 Diego0920

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

eadmaster avatar Sep 11 '19 02:09 eadmaster

@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..^^

d4rkne55 avatar Sep 11 '19 11:09 d4rkne55

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 )? :(

Hexaae avatar Oct 14 '21 16:10 Hexaae

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)

AeroWidescreen avatar Oct 14 '21 18:10 AeroWidescreen

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!

DonelBueno avatar Oct 14 '21 20:10 DonelBueno

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 avatar Oct 14 '21 22:10 Hexaae

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:

  • renamed Max Payne 2 Wide Screen Fix's d3d8.dll -> dinput.dll
  • copied the latest d3d8 wrapper archive from the link above into game's directory (d3d8.dll, d3d8.ini)
  • edited d3d8.ini using "FPSLimit = 60" and "FullScreenRefreshRateInHz = 60" (equivalent of vsync, since will sync video refresh rate to fps. Perfectly smooth)

Hexaae avatar Mar 10 '23 09:03 Hexaae