-
Notifications
You must be signed in to change notification settings - Fork 371
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
Timer running slow #32
Comments
I just wanted to chime in cause this caught my interest. I haven't tried replicating this issue, but I had taken a quick look and noticed you are using I found an npm module called I noticed also there is also something else you may try (or as well as using this with the npm package) that I found in the Electron
|
I installed v0.6.1 and I notice a 10 minute lag by the third work session. Could it be related to privacy settings / access privileges? I'm running macOS 10.14.5 (Mojave). I'd be happy to provide more details if I can, hoping it helps. |
I believe I have the same issue on Windows 7 with latest release (0.6.1). It appears that the timer runs two times slower than actual time when minimized. |
I'm confirming the same problem of time going about 2 time slower when minimized with latest release on Windows 10. |
I've done some testing for this issue |
To improve accuracy, we could store both the start time and end time of the timer, and when displayed, update the current second based on theses ( That way, even if the app is throttled in the background, we can still check pretty much every second if the timer should have ended ( I can propose a PR of that implementation if you think that's a good idea. |
@jonathanTIE I'm seeing similar results between the 2 versions. It seems that in either case the timer is most inconsistent when the application is minimized. I think for now, let's go with your recommendation and stick with 0.6.1. Thanks for running those tests! |
I've continued to do some testing, the problem is the "computedtimeout" that set the timeout. Just change computedTimeout : |
That won't really fix it. Please see my PR (coming in minutes). |
It is still slow. |
I've moved the timer functionality to a web worker with #68. This allows the timer to run off the main render thread, which should decrease the In initial tests on Windows 10-1909 and Ubuntu 19.10, the timer accuracy of The only drawback that I can see to this implementation is increased complexity. I'll leave this issue open for a few weeks to facilitate feedback and discussion. |
I'm on Mac OSX (HIgh Sierra) and I have noticed the timer is running slow. I've compared this to a manual stopwatch and it lags about ~10 by the end of the 25 minute session (so it's reporting I still have 10 minutes left when a full 25 minutes have passed).
No idea what's causing this. I usually start the timer, then minimize it while I work away. Haven't tried running it solo with nothing else running.
The text was updated successfully, but these errors were encountered: