DDP-over-ws: handle fragmented (multi-part) messages

オープン
#5,755 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
cpp, javascript

調査の方向性

Start with wled00/data/common.js around line 218 and wled00/ws.cpp around lines 99–105. Reproduce the videolab playback issue on the 128x64 HUB75 setup with debug logging and inspect how fragmented WebSocket messages are received. Done means multi-part binary messages are handled and playback performance improves without relying on lowering maxDDPpx.

索引モデルが issue の本文から書いたものです。

説明

connectivity enhancement Feature Request

https://github.com/wled/WLED/blob/a8ae8afa6be0a4ad9f5c460333b74d0998d4802b/wled00/data/common.js#L218

https://github.com/wled/WLED/blob/a8ae8afa6be0a4ad9f5c460333b74d0998d4802b/wled00/ws.cpp#L99-L105

When trying videolab on a setup with 128x64 pxels (wled 16.0 HUB75), I still have a very laggy/jumpy playback at low FPS. In debug mode, there are tons of WS multipart messages that arrive from the frontend. Multi-part messages are not reduced when lowering the maxDDPpx parameter in common.js. My conclusion is that the esp32 side is splitting some ws messages into multi-part, especially when the receiver is under heavy load.

I think we should implement multi-part binary message handling, to improve performance on fixtures that are larger than 48x64 pixels.

主要言語
C++
スター
18.8k
フォーク
4.4k
平均マージ
5日 12時間
マージ済み PR(30日)
16

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

wled/WLED のほかの issue

wled/WLED の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。