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

Fix high cpu usage from iop thread #55

Merged
merged 2 commits into from
Sep 25, 2020
Merged

Fix high cpu usage from iop thread #55

merged 2 commits into from
Sep 25, 2020

Conversation

water111
Copy link
Collaborator

Previously I implemented a system so the IOP code wouldn't have to run at 100% CPU usage in a busy loop, like it does in the original game. However it was not robust to the case where the game C code calls the "is the IOP done?" function in a loop as fast as possible. This fixes that issue and the CPU usage of gk remains very low when nothing is happening.

@water111 water111 merged commit 15051ec into master Sep 25, 2020
@water111 water111 deleted the w/fix-high-cpu-usage branch September 25, 2020 02:15
@coveralls
Copy link

Pull Request Test Coverage Report for Build 271665732

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.003%) to 64.163%

Totals Coverage Status
Change from base Build 271335554: 0.003%
Covered Lines: 14096
Relevant Lines: 21969

💛 - Coveralls

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