-
Notifications
You must be signed in to change notification settings - Fork 12
One CPU Core Pinned at 100%? #8
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
Comments
Hey there, thank you for using ex-portmidi! Sorry about this (and for taking long to answer). It looks like we're gonna need a I'll give this a try and let you know as soon as you can pull a new version! 🙇 |
Thank you for the response, @lucidstack! I'm glad you can corroborate my finding. I wonder if there might be some way to do a select on the socket somehow and avoid putting a sleep in the loop. I have no idea of the challenges in portmidi nor interfacing with it, but it's my understanding that putting a sleep in the main loop not really the best option. For my little toy project here, I'm looking to map buttons on my Midi Fighter 3D to control my home server / living room. Being another process on my low power, multi-purpose server, I'd be concerned with adding unnecessary cpu work... At any rate, I really appreciate your working on and sharing this library. It was really great to find. |
Much thanks for sharing this library! It was great to find it as I set about trying to read some buttons on my controller. What I noticed, though, is that as soon as I run this line in iex
... I get one of my cores pinned to 100%
It does seem to work alright otherwise, but something is clearly wrong. And thoughts on what it might be?
Launching this and moving some controls does give me the messages back, but my CPU is working awfully hard for it.
This is on an Arch Linux system.
The text was updated successfully, but these errors were encountered: