-
Notifications
You must be signed in to change notification settings - Fork 103
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
Unify renderMode options and add missing documentation #118
Conversation
This will make future diffs easier to read.
46bcd8d
to
61dd944
Compare
This better matches what the modes actually do. Currently mostly internal apart from the lossy mode being referred to as "fast" in the README, but the next commit will expose the internal names to the public. This does not change the existing option names, which are already closer to the new than the old names.
To preserve backwards compatibility, the old option names are still evaluated, but only at a lower priority.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Real default
But it can also be specified here (as in that renderAhead PR):
just to unify the options and not to clog that feature |
Can you elaborate on what you think should be changed? The doc-commit does list |
But that's because renderAhead started using |
I'm afraid I am still not sure what change you are suggesting. The only commit relating to Do you perhaps, want the default value already being set in |
Yes. - self.targetFps = options.targetFps || undefined;
+ self.targetFps = options.targetFps || 30; But it is not currently used in
👍 |
61dd944
to
37ae5bc
Compare
@TheOneric If You may also be interested in https://github.com/WeebDataHoarder/JavascriptSubtitlesOctopus/blob/ea80135ebe80d3fae85f0a88e5f38801335d563c/src/subtitles-octopus.js#L5-L8 |
When I tested this the error message was only printed on intital page load, resize and playback resume after pause. While playback was active I didn't get any more error messages.
That would require duplicating the full list of valid renderModes, which is not great. A simpler way to avoid repeated errors is to just override the stored renderMode after outputting the message. (Or alternatively if changing the renderMode during playback is not supported or planned to be supported: run |
I didn't have them either - it was quietly lagging. Only 4 times at the start.
How about a lookup? self.renderModes = {
'js-blend': self.render,
'lossy': self.lossyRender,
'wasm-blend': self.blendRender
}; I think |
The comment claiming Safari not supporting the function doesn't seem to be accurate (anymore), assuming Safari is using up-to-date WebKit. With WebKitGTK 2.34.4
Is there another reason |
https://webostv.developer.lge.com/discover/specifications/web-engine/
|
Supposedly[1] the fallback path is called often enough to cause performance degradation with invalid values; fix up those values so this path is only taken once. [1]: libass#118 (comment)
Supposedly[1] the fallback path is called often enough to cause performance degradation with invalid values; fix up those values so this path is only taken once. [1]: libass#118 (comment)
Supposedly[1] the fallback path is called often enough to cause performance degradation with invalid values; fix up those values so this path is only taken once. [1]: libass#118 (comment)
The renames are not in line with what is currently used in jellyfin. However
fast
doesn't make much sense for the lossy mode andnormal
also isn't a good name for the JS-blending mode, especially since we want to change the default soon.