-
Notifications
You must be signed in to change notification settings - Fork 17
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
-w eats CPU #2
Comments
Ah. Yeah this is one of my less brilliant moves. Since there is an indeterminate amount of time for the notification to be active I was just spinning in a while loop waiting for the toast notification to return. I'll do some experiments with turning that into a polling loop with a thread sleep and see if that gets things set right. |
I'm going to hesitantly close this as fixed, pending more issues. Instead of spinning, it should now use a polling loop and Thread.Sleep to be a little more frugal with system resources. |
There seems to be a trick in getting this to work with 8.1- on my other two computers I had to play around with it for a bit to get it working. I'm having strange behavior on my newest laptop (doesn't work, gives an error when using -w with -m, no error but waits indefinitely with -t, etc). I can't get it to work, but.... This gives me a chance to test out your fix! |
Time to reopen this one then. |
The -w chews on a rather disturbing amount of CPU (12% of 4.43GHz).
Normally there isn't much of a wait but I had something wrong with explorer and the toasts weren't running consistently, which is how I noticed.
The text was updated successfully, but these errors were encountered: