KunalBagaria / rustyvibes

A Rust CLI that makes mechanical keyboard sound effects on every key press
https://github.com/kunalbagaria/rustyvibes
MIT License
208 stars 26 forks source link

cpu usage occasionally becomes 100% #16

Closed somebody1234 closed 2 years ago

somebody1234 commented 2 years ago

it's not always, and it's not permanent, so i suspect it's to do with the worker thread caching

KunalBagaria commented 2 years ago

Couldn't reproduce this issue, could you share more details?

somebody1234 commented 2 years ago

uh... i just spam keys for a while and sometimes it stays at 100% cpu usage for ~20 seconds. compiled from master, using akira's blackwidow soundpack if that makes a difference

KunalBagaria commented 2 years ago

hmm, weird. Still can't reproduce this issue, it doesn't ever cross 5% at peak usage on my side.

somebody1234 commented 2 years ago

idk... normally it does stay around 3%ish? i do find that it's quite inconsistent though, might have to have a task manager open for a while... or it may be a linux-only issue

KunalBagaria commented 2 years ago

seems like a linux issue, will try it out on windows (tried on mac) but am pretty sure it would have the same results. I wonder what might be causing it in linux