Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Core: Refactor a lot of timer work and fix a couple of bugs #11220

Merged
merged 1 commit into from May 15, 2024

Conversation

refractionpcsx2
Copy link
Member

Description of Changes

Refactor timers a bit to be a little less gross and more readable, also fix a couple of bugs.

Rationale behind Changes

There was a bunch of repeated code and legacy naming which wasn't obvious to what it was, which I wanted to sort out.
Also fixed the slight inaccuracy of counting time for framerates which weren't whole numbers.
Correct start cycles so they are on clock tick boundaries.
Disable sending V/H sync interrupts etc when SINT (this is the PCRTC initialization mode) is enabled, nothing happens during this sequence on a PS2.

Suggested Testing Steps

Test a whole bunch of things, make sure everything is fine.
Unfortunately I don't think anything is fixed :(
Double unfortunate this required a savestate bump.

EE/IOP Timers: improve clock sync, disable v/h sync when SINT enabled.

Some changes based on tests from PS2

[SAVEVERSION+]
@refractionpcsx2 refractionpcsx2 merged commit 566ea8e into master May 15, 2024
22 checks passed
@refractionpcsx2 refractionpcsx2 deleted the core_timerrefactor branch May 15, 2024 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants