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

fix(preload): Fix preload load latency logic. #6890

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

theodab
Copy link
Contributor

@theodab theodab commented Jun 24, 2024

Previously, when preloading, we would measure startTimeOfLoad based on when the PreloadManager was created.
This meant that if a PreloadManager was created and then not used for a while, it would lead to the load latency stats reporting an extreme load latency.
This changes the startTimeOfLoad to instead record when the PreloadManager is consumed by the player.

Fixes #6871

Previously, when preloading, we would measure startTimeOfLoad based
on when the PreloadManager was created.
This meant that if a PreloadManager was created and then not used
for a while, it would lead to the load latency stats reporting an
extreme load latency.
This changes the startTimeOfLoad to instead record when the
PreloadManager is consumed by the player.

Fixes shaka-project#6871
@theodab theodab added the type: bug Something isn't working correctly label Jun 24, 2024
@avelad avelad added the priority: P2 Smaller impact or easy workaround label Jun 24, 2024
@avelad avelad added this to the v4.10 milestone Jun 24, 2024
@shaka-bot
Copy link
Collaborator

Incremental code coverage: 100.00%

@avelad avelad merged commit 878bf62 into shaka-project:main Jun 24, 2024
16 of 17 checks passed
@theodab theodab deleted the preloadLoadLatencyBranch branch June 24, 2024 07:18
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Aug 23, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Aug 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority: P2 Smaller impact or easy workaround status: archived Archived and locked; will not be updated type: bug Something isn't working correctly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Load Latency Stats When Using PreloadManager
3 participants