mgs2-v-s-fix icon indicating copy to clipboard operation
mgs2-v-s-fix copied to clipboard

Disable Frameskip

Open UltimateNova1203 opened this issue 1 year ago • 5 comments

Is your feature request related to a problem? Please describe. MGS2 PC, due to the nature of being an Xbox port, has some cutscenes (or sections of cutscenes), run at 30fps.

Describe the solution you'd like Pull in the ASI mode I've created to disable the frame skip that makes some cutscenes run at 30fps. (My preference)

Describe alternatives you've considered Alternatively, patch the executable at address 0x002E352F from value 02h to 00h or 01h. (Not my preference)

Additional context Shameless plug. Patches address 0x006E352F in memory (0x002E352F in the binary), which is the value to divide the framerate at for "problematic" cutscenes. Today's hardware isn't going to have issues with full framerate cutscenes.

You can see what the current framerate skip (division really) is set to at address 0x00BB6198. Menus and gameplay set it to 00h. Cutscenes set it to 01h. "Problematic" cutscenes or sections of cutscenes set it to 02h.

You can view the current tick rate at address 0x00DB8790. If previewing the value in the "Change address" prompt in cheat engine, you can see it increment at 60 ticks when not skipping, or 30 ticks if it is skipping.

Either method of patching will work, it's purely my preference to leave the binary alone unless necessary.

UltimateNova1203 avatar Dec 17 '22 05:12 UltimateNova1203

Wow, just wow.

I can't try it right now, but absolutely worth including it.

A good candidate for the next fix release (when? when probably works give me little time to mentally be strong enough to do that).

Absolutely worth of the "enhancement" label, good work 😃

VFansss avatar Dec 18 '22 16:12 VFansss

Don't the PS2 original also cap fps at 30 during certain shots in cutscenes for cinematic purposes? Zone of the enders 2 also does something similar to this.

ArhumMK avatar Dec 26 '22 19:12 ArhumMK

There is a cinematic overlay that is used, but that is not capping the framerate. You can change the size of the overlay (if you find the memory addresses) and see the cutscenes are still running at 60, and the overlay is doing a drop frame effect by writing the scene to a texture. It's a neat effect that works as intended. Example being the pan around Snake on the bridge during the tanker opening. It looks choppy but moving the 2D overlay (contains cutscene borders, cinematic frames, subtitles, among others) shows it's still smooth.

UltimateNova1203 avatar Dec 30 '22 16:12 UltimateNova1203

Huh, so Overlay effects aside that means the xbox port introduced FPS capping that wasn't present in the PS2 original? Well then it'd be nice to see this patched. I also noticed certain animations like the flags on top of the tanker update at a low framerate while the HD version animated at 60fps, is there any relation?

ArhumMK avatar Dec 30 '22 22:12 ArhumMK

Sorta, xbox introduced a frame skip, in cutscenes it skips roughly every other frame (not capped, still runs at 60, but updates visuals at 30). Ingame, setting the same frameskip just appears to slow the game down.

UltimateNova1203 avatar Jan 07 '23 00:01 UltimateNova1203