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 is skipping seconds #114

Open
binaryfire opened this issue Jan 13, 2025 · 4 comments
Open

Timer is skipping seconds #114

binaryfire opened this issue Jan 13, 2025 · 4 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request

Comments

@binaryfire
Copy link

Hi @ashmanix. Thanks for your work on this plugin.

I'm running Win 11 and 30.2.3. I did a manual install of 2.0.5 (copied the files into my obs dir) and the timer is showing up in OBS and working. But I'm having issues with it stuttering and skipping seconds. For example it'll go from 10 to 8 instead of 10 to 9. Any ideas what the problem could be?

@binaryfire
Copy link
Author

Just figured out the problem occurs if the timer text is on top of an animated webm background. The default OBS countdown script works fine - it's only happening with the plugin.

@ashmanix
Copy link
Owner

This issue happens because the timer now relies on timestamps to keep accurate timing when using the period type of time where you manually set hours, minutes, seconds, days. If there is slight lag then the timer skips seconds to keep accurate with the number of seconds passed since the timer started. For now the unideal solution is to use an older version of the plugin (v1.42) that doesn't use timestamps.

At some point in the future I'll need to put in an option to just count up and ignore timestamps but the code for the timer is a bit of a pain (my fault) so it will be a while before I get to it. I'm thinking I'll put an option to reduce skipping in settings where it will just add a second to the timer every time 1s passes. Less accurate but no worries about skipping seconds.

@ashmanix
Copy link
Owner

So I was working on the plugin today and decided to try a fix for this. I've added an option in the settings to use an incremental counter as opposed to using timestamps. This should ensure smooth counter incrementing. Try out https://github.com/ashmanix/obs-plugin-countdown/releases/tag/2.0.8 to see if it works. If you can confirm that this resolves the issue I'd be grateful 👍

@ashmanix ashmanix self-assigned this Jan 16, 2025
@ashmanix ashmanix added bug Something isn't working enhancement New feature or request labels Jan 16, 2025
@seboss666
Copy link

Hello, I've updated my OBS plugins to ensure best support for latest OBS version (31.0.1), and encountered the "lag" for the counter. I was ready to put that on the many problems I can have because of instabilities with AMD GPU, before finding this issue.

I confirm that the "steady second increment" option did the trick to fix the countdown :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants