8000 Websocket Stream Stats & Robustness Improvements by gerth2 · Pull Request #605 · PhotonVision/photonvision · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Websocket Stream Stats & Robustness Improvements #605

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

Merged
merged 5 commits into from
Dec 1, 2022

Conversation

gerth2
Copy link
Contributor
@gerth2 gerth2 commented Nov 20, 2022

A collection of small tweaks meant to address some of the issues users have reported with stream robustness.

  • Increased priority of the ws stream thread on the server side
  • Added client-side stream stat tracking
  • Added mouseover-driven overlay of the stats to each image in the main UI
    • skipped the thinclient, since it's fullscreen and likely to have a mouse over it anyway
  • Reordered client-side temporary URL creation/revocation to ensure the browser can't reuse a URL. This is a plausable (but unproven) root cause of some "stuck stream" issues.

- Increased thread priority for streaming to reduce "stutter/slow" issues
- revised client side URL creation order to prevent the possibility of repeat-identical URL's
- Improved overlay to only be visible on mouseover, and fully centered in the screen
@gerth2 gerth2 requested a review from a team as a code owner November 20, 2022 16:38
@gerth2
Copy link
Contributor Author
gerth2 commented Nov 20, 2022

Closes #548

@gerth2 gerth2 linked an issue Nov 20, 2022 that may be closed by this pull request
@mdurrani808 mdurrani808 added this to the 2023 Kickoff milestone Nov 27, 2022
@gerth2 gerth2 merged commit 678961e into PhotonVision:master Dec 1, 2022
mcm001 added a commit to mcm001/photonvision that referenced this pull request Dec 13, 2022
* Websocket Stream Stats & Robustness Improvements (PhotonVision#605)

* wip support for a stats overlay

* WIP adding stream stats. But.... eeeh. Corporate.

* kbits over mbytes

* A ton more tweaks:

- Increased thread priority for streaming to reduce "stutter/slow" issues
- revised client side URL creation order to prevent the possibility of repeat-identical URL's
- Improved overlay to only be visible on mouseover, and fully centered in the screen

* wpiformat on js

* Add curl (PhotonVision#618)

* Add curl

* goofy wording

Co-authored-by: shueja-personal <32416547+shueja-personal@users.noreply.github.com>

* Update heap size for install script (PhotonVision#622)

* Logging for NTDataPublisher (PhotonVision#560)

* logging for NTDataPublisher

* logging name along with index

* formatting lol

* resolution logging

* Removed pipelineManager object from data publisher

* aaaaa

* bruhh

* sim photoncamera WIP. Builds and runs, tests still fail

* fixups for broken testcase

* Add check for packet of incorrect length (PhotonVision#629)

Co-authored-by: Matt <matthew.morley.ca@gmail.com>

* Add avahi daemon to install script (PhotonVision#625)

* wip test update to beta 5 - still issues

* Move native config into root build.gradle

* Move back into subproject test, like it should be

* Working jni changes for photon-core test

* Fix photon core build! huzzah

* Yeet

* Run formatter

* run spotless

* Update NTDataPublisher.java

* Update build.gradle

* Fix photonlib compilation errors

* Potentially spam matrix lol

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* Update main.yml

* fix path separator in main.yml windows fat jar

* trying pathsep again

* Remove old apriltag libs and fix main

* Update Main.java

* Add archive platform to shadowjar, update pi image name

* Copy paste fixed apirltag classes

* Run format

* pi dependencies updated, it's running on a pi now!

Co-authored-by: Chris Gerth <gerth2@users.noreply.github.com>
Co-authored-by: Mohammad Durrani <46766905+mdurrani808@users.noreply.github.com>
Co-authored-by: shueja-personal <32416547+shueja-personal@users.noreply.github.com>
Co-authored-by: sarah-e-c <71732260+sarah-e-c@users.noreply.github.com>
Co-authored-by: Chris Gerth <chrisgerth010592@gmail.com>
Co-authored-by: Drew Williams <williams.r.drew@gmail.com>
MrRedness pushed a commit to MrRedness/photonvision that referenced this pull request Feb 8, 2023
* wip support for a stats overlay

* WIP adding stream stats. But.... eeeh. Corporate.

* kbits over mbytes

* A ton more tweaks:

- Increased thread priority for streaming to reduce "stutter/slow" issues
- revised clie
6EFE
nt side URL creation order to prevent the possibility of repeat-identical URL's
- Improved overlay to only be visible on mouseover, and fully centered in the screen

* wpiformat on js
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.

WS Camera Streams - Add Metrics
3 participants
0