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

Thread scheduling fixes #722

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Thread scheduling fixes #722

wants to merge 5 commits into from

Conversation

wheremyfoodat
Copy link
Owner

@wheremyfoodat wheremyfoodat commented Feb 11, 2025

Properly trigger preemption on thread wakeups/timeouts & implement more threading stuff. Improves or fixes several games (Senran Kagura Burst, Detective Pikachu, ...). Not being merged yet in order to consider if there's some more performant way of implementing the fixes.

@wheremyfoodat
Copy link
Owner Author

image
image

@@ -11,7 +11,8 @@ struct Scheduler {
VBlank = 0, // End of frame event
UpdateTimers = 1, // Update kernel timer objects
RunDSP = 2, // Make the emulated DSP run for one audio frame
SignalY2R = 3, // Signal that a Y2R conversion has finished
ThreadWakeup = 3, // A thread is going to wake up and we need to reschedule threads
SignalY2R = 4, // Signal that a Y2R conversion has finished
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Type 4 is duplicated?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoopsie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants