Futura-Py / TimerX

A fluent Timer App, made completely in Python
https://timerx-app.netlify.app
MIT License
37 stars 5 forks source link

Performance Issue #59

Closed sumeshir26 closed 2 years ago

sumeshir26 commented 2 years ago

The Problem

After running a test side-by-side of the Windows 11 clock app and TimerX of 30 Minutes, TimerX lags 22 seconds behind.

Cause

TimerX does not use a actual timer, it just waits for a second and then takes a few milliseconds to process it(Update time_display, seconds_left, etc .). Those milliseconds add up and cause a lag.

Possible Solutions

@not-nef and @im-coder-lg what are your thoughts?

not-nef commented 2 years ago

time.clock seems like the best solution to me

im-coder-lg commented 2 years ago

We could try options 2 and 3, the only problem is that if you are compiling with option 3, you need C# tools. I guess that's a pain. I'd prefer option 2 since that'd make compiling easier.

im-coder-lg commented 2 years ago

A question - does time.clock consume huge chunks of RAM?

sumeshir26 commented 2 years ago

No Idea, the last time I messed with that was over a year ago, I at that time more than making semi-polished apps, I just wanted to learn

im-coder-lg commented 2 years ago

But does it? Why not integrate it before Republic Day?

sumeshir26 commented 2 years ago

I'll try

sumeshir26 commented 2 years ago

Started work on this!

sumeshir26 commented 2 years ago

Closing as Resolved