Skip to content
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 slower in background in tauri version #608

Open
Inori-Lover opened this issue Feb 26, 2024 · 4 comments
Open

timer slower in background in tauri version #608

Inori-Lover opened this issue Feb 26, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Inori-Lover
Copy link

Inori-Lover commented Feb 26, 2024

Describe the bug
when choose tauri version, after hidden the main window, the clock become much slower then real time.

To Reproduce

  1. start the tauri version pomatez
  2. mark the time, close to tray
  3. after about 10 minutes
  4. open the main, compare time

Expected behavior
time go as fast as system clock

Desktop (please complete the following information):

Additional context
similar issue: #67
seem related issue: tauri-apps/tauri#5250

@sekwah41 sekwah41 added the bug Something isn't working label Feb 26, 2024
@sekwah41
Copy link
Member

I need to rework the timer code anyway to support a mobile version, Though currently the code has a timer triggering every 1 second. When the browser goes into the background it tends to slow the number of functions that can trigger in the background. I am assuming this is going above the 1 second hence slowing this down. I am not sure when I will have time to address this properly, though I can take a look at making it validate the time remaining based on a start time rather than time remaining.

@sekwah41 sekwah41 self-assigned this Feb 26, 2024
@Inori-Lover
Copy link
Author

@sekwah41 thanks for quick response! it sound like a good work

@Inori-Lover
Copy link
Author

sorry for the wrong operate.

@sekwah41
Copy link
Member

Making this a high priority now as it majorly causes an issue for the reliability

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Closed/Done
Development

No branches or pull requests

2 participants