GithubHelp home page GithubHelp logo

Comments (2)

Westworld avatar Westworld commented on June 21, 2024

Oops, it seems that you did not included that on purpose, because the traffic for uncompressed rgb24 is too heavy, right?
If yes, please just close this request, I assume that would be a feature request like support for rgb565 or similar to reduce the bandwidth? And I guess nobody else needs that...

For testing I have modifed main.js line 248-250:
renderRgb24(data) {
//console.log('Colored rgb24 Frame: %s', frame.timestamp);
if (!this._clientStart) {
this._clientStart = new Date().getTime();
this._serverStart = data.timestamp;
}
var serverDiff = data.timestamp - this._serverStart;
var clientDiff = new Date().getTime() - this._clientStart;
var delay = this._bufferTime + serverDiff - clientDiff;

	if (delay < 0) {
		this._bufferTime -= delay;
		console.log("Increasing buffer time to %sms.", this._bufferTime);
		delay = 0;
	}

	var that = this;
	setTimeout(function () {
		that._dmdMesh.material.map.image.data = data.planes;
		that._dmdMesh.material.map.needsUpdate = true;
		that.renderCanvas();
	}, delay);
},

Now the browser displays RGB24, such as Tron (with Serum) or tables using Flex such as JP's Dreadpool.
The display is reversed on y-axes, the planes seems not to fit for the renderCanvas() function.

Browser works for a while, sometimes some seconds, sometimes up to a minute, then freeze (I test using Wifi).
I also tested by using ESP32 to feed a 256x64 display and while that worked fine for many minutes, the device is too slow to follow up the fast animations in Tron, sometimes display is 1-3 seconds behind real time. it is not the DMD hardware, I tried to skip frames when I'm behind, it is the Wifi receiving part. The browser test proves that your web socket server is fast enough to send, that it fails on receiver side.

To solve that, either the Web Socket Server would need to compress RGB24 frames (such as RGB565) or skip frames (if there are more than 20-25 fps), to reduce bandwidth, which is a little bit extrem request.
My DMD panels are a little bit slow (icn2053), this leads to serial port hickups (when using the ZeDMD interface), so I thought Wifi could be a solution.
Workaround lead to workaround, remaining idea would be to use a Teensy with Ethernet cable, fetching Web Socket packets, compressing them and sending (left + right panel separated) via serial port to two ESP32 feeding the panels. Crazy setup.
I assume best to trash those panels and give up...

As said, I guess best to close this and keep RGB24 unsupported for WebSocket.

from dmd-extensions.

freezy avatar freezy commented on June 21, 2024

Cool, can you open a PR for this, then I see what I can do in terms of compression.

from dmd-extensions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.