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

playClip works better when timer fires slowly #1519

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

horner
Copy link

@horner horner commented Dec 9, 2022

Video Demo

https://youtu.be/C6jsGZfL82s

Description

This change makes playClip playback keep real time by dropping missed frames if the computer cannot keep up with the requested framerate. Without this change, providers perceive playback to "slow down." With this change, the playback is always kept to "real time" at the expense of dropping frames that must be skipped.

@codecov
Copy link

codecov bot commented Dec 9, 2022

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 21.69%. Comparing base (925a3dd) to head (744a892).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
src/stackTools/playClip.js 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1519      +/-   ##
==========================================
- Coverage   21.70%   21.69%   -0.01%     
==========================================
  Files         287      287              
  Lines       10137    10141       +4     
  Branches     2081     2081              
==========================================
  Hits         2200     2200              
- Misses       6750     6754       +4     
  Partials     1187     1187              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant