Skip to content

Add performance modules - #36

Open
peaBerberian wants to merge 1 commit into
ui-rework-logs-not-modulelfrom
perf-modules
Open

peaBerberian wants to merge 1 commit into
ui-rework-logs-not-modulelfrom
perf-modules

Conversation

@peaBerberian

@peaBerberian peaBerberian commented Sep 22, 2026 •

Copy link
Copy Markdown
Collaborator

Based on #35

This PR adds a few Performance metrics, by adding another performance-oriented event the client sends back to RxPaired.

For now it polls those every 10 seconds. It might be too long, to check.

I focused on four kinds of metrics:

  • A PerformanceObserver set to longtask for when the UI thread (not the worker thread on which most of the RxPlayer might run) has poor performance
  • A PerformanceObserver set to long-animation-frame for when an UI update took a lot of time
  • A PerformanceObserver set to event for when event handling was slow
  • A VideoPlaybackQuality report mostly to know about dropped frames

The three PerformanceObserver-based parts are useful to see numbers if the UI seems to have current performance issues on the tested device, what scale they are and where they're.

The VideoPlaybackQuality is more about the capacity of the device to reliably decode the current pushed quality without issue.

I show both the last snapshot and the history in two different modules, here is what it looks like:

image

The sent message is also shown in the log window with the Performance namespace:

image

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