freezy / dmd-extensions

A toolbox for virtual pinball dot matrix displays.
GNU General Public License v2.0
127 stars 54 forks source link

browserstream ignores style settings #466

Closed superblobster closed 5 months ago

superblobster commented 7 months ago

I have decided to start using my phone as a DMD and was able to turn on the browserstream. The DMD stream loads up fine in my phone's browser. However, I would like to tweak the brightness, height and dot size.

This is where I'm running into an issue. Changing style.default in dmddevice.inisuccessfully changes the look of the virtualdmd that renders on my desktop monitor. Unfortunately this had absolutely no effect on the browserstream. I refreshed my browser. It's exactly the same as before. It's as if the browserstream is using completely different settings.

Maybe I'm overlooking something obvious. What is the correct way of changing the browserstream style?

freezy commented 5 months ago

Sorry for the late reply.

No, the style in DmdDevice.ini only applies to the virtual DMD. If you want to tweak the shader in the browser, you'll need to tweak it through the JavaScript console.

controller._dotMatrixParams.size = 3 
controller.onParamsChange()

Looks like:

image

I admit that's not very practical to do on a phone. I can add it as a query parameter though. What would you like to have exposed? Dot size and glow strength?

superblobster commented 5 months ago

Thanks for replying. To be honest, soon after posting this issue I stopped using this method of rendering the DMD after discovering how laggy it is. Even on my fastest smart device, there is a delay of nearly a full second to the browserstream. This makes video modes very hard to play. I'm no longer interested in using this feature.

freezy commented 5 months ago

Yeah, it compensates the time in order to not skip any frames. So it becomes more and more delayed with time. That's a behavior that could be changed, though. Let me know if a less laggier version would still be of value.

superblobster commented 5 months ago

It would definitely be useful, but only if the lag can be minimized to almost none. Running it wirelessly in a browser in full screen mode was really convenient as it didn't require manually tweaking the size and position of the dmd window (which I have to do with the Spacedesk method). I'd be interested in trying it again if the lag issue can be solved.