mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-03 21:29:27 +00:00
[PR #286] [MERGED] Fix for high cpu usage, issue with loop. #992
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/SabreTools/MPF/pull/286
Author: @BadAd84
Created: 5/30/2021
Status: ✅ Merged
Merged: 5/30/2021
Merged by: @mnadareski
Base:
master← Head:master📝 Commits (1)
65b1cedFix for high cpu usage, issue with loop.📊 Changes
1 file changed (+1 additions, -1 deletions)
View changed files
📝
MPF.Library/Data/ProcessingQueue.cs(+1 -1)📄 Description
When doing nothing, MPF maxes out a CPU core due to a loop. This wasnt in 1.18, so its fairly recent addition. I have just added a small sleep, but you may want to do it another way.
Either way, fix stops the loop maxing out a core.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.