Easy Frame Advance Setting#2588
Open
mracsys wants to merge 3 commits into
Open
Conversation
With the comments it was easy to find the hooked function 👍 I haven't tested it but the code seems ok otherwise. |
Author
Good catch, I jumped to building both halves of The Thanks for the reviews! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Port of the MMR "Easy Frame by Frame" pause buffer setting by ZoeyZolotova.
With the setting enable, holding the start button to unpause will advance one frame before pausing again. This makes pause buffering much easier to manage on emulators where frame timing can be inconsistent.
Normal pause buffering by timing a start button press is untouched, as well as re-pausing on the same frame.
Functionally, this replaces the else branch check in
z_kaleido_setup.cfor a new start button press with a new function that checks the following:The game tracks player inputs for the current frame (
raw.pad, orcur.buttonin decomp), previous frame (raw_prev.pad, orprev.buttonin decomp), new positive inputs between frames (pad_pressed, orpress.buttonin decomp), and new negative inputs between frames (pad_released, orrel.buttonin decomp). This makes it easy to track held inputs in addition to the already checked new inputs.Testing
Tested on N64, Wii VC, Project64 3.0.1, RetroArch (mupen64plus-next core), and ares v147. Video below shows it in action on all platforms.
pause_buffer.mp4