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

High CPU load when playing through long gap between subtitles #14

Open
rndusr opened this issue Oct 3, 2019 · 0 comments
Open

High CPU load when playing through long gap between subtitles #14

rndusr opened this issue Oct 3, 2019 · 0 comments

Comments

@rndusr
Copy link
Collaborator

rndusr commented Oct 3, 2019

How To Reproduce
  1. Place point on a subtitle that doesn't have a following subtitle for a few
    minutes.

  2. M-x subed-enable-sync-point-to-player

  3. Let the video play.

  4. After a while (tens of seconds in my case), CPU load on a single core spikes
    to 100%. Eventually, video playback becomes choppy and Emacs takes several
    seconds to respond to user input.

What I Know

The relevant code seems to be in subed-srt--subtitle-id-at-msecs, specifically
in the final (catch 'subtitle-id ...). If I comment that out, the issue goes
away, but I don't understand what's wrong with the code or how to investigate
further.

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

No branches or pull requests

1 participant