[PR #286] [MERGED] Fix for high cpu usage, issue with loop. #992

Closed
opened 2026-01-29 16:24:42 +00:00 by claunia · 0 comments
Owner

📋 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: masterHead: master


📝 Commits (1)

  • 65b1ced Fix 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.

## 📋 Pull Request Information **Original PR:** https://github.com/SabreTools/MPF/pull/286 **Author:** [@BadAd84](https://github.com/BadAd84) **Created:** 5/30/2021 **Status:** ✅ Merged **Merged:** 5/30/2021 **Merged by:** [@mnadareski](https://github.com/mnadareski) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`65b1ced`](https://github.com/SabreTools/MPF/commit/65b1cedb6ae27ff355ec92c1109c6b4f8f9e63f9) Fix for high cpu usage, issue with loop. ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `MPF.Library/Data/ProcessingQueue.cs` (+1 -1) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 16:24:42 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SabreTools/MPF#992