stf icon indicating copy to clipboard operation
stf copied to clipboard

Noticeable lag on screencast, but 0 lag on input while remote

Open Rabusek opened this issue 10 years ago • 4 comments

When accessing STF on remote connection (I'm using mobile, 30ping, 30mb download, 2mb upload, but this also happened while at friends house) the screen sharing is really sluggish, after an action is done there's a 1-2 second delay, but on the device itself action is instant - after the delay, everything is shown in a slow-motion manner.

Like this: https://youtu.be/7-YthBI6TTY (the "freeze" happened for the first time on the video though, never had this before).

I've opened all possible ports, I've removed all kinds of protection off my router, I've double checked upload/download speed (250/30 on my server machine, 30/2 on my test machine). The fun thing is, that the bigger the device is, the quicker it reacts - I thought it should work the other way around, as older devices produces smaller data packs (smaller screens/resolutions). I'd really love fix this, as right now it's better for me to connect through teamviewer/splashtop and work "locally" rather than use the remote functionality :(

Rabusek avatar Mar 13 '16 21:03 Rabusek

Looks like you're trying to use STF from another phone. We have some known rendering performance issues in that area (mobile Safari and Chrome) that cause most of that lag. The frame producer on the origin device, with its current architecture, waits for the current frame to be fully read before sending the next frame. Since the rendering on the phone is very slow to begin with, this further compounds the effect, and can even lead to the image getting stuck like you saw (although it could have been caused by another issue as well) once the internal buffer queue runs out of space.

I agree that it is definitely a use case we want to support, but it isn't possible right now due to our limited resources. We're working on something that will hopefully allow us more time in the future.

sorccu avatar Mar 15 '16 16:03 sorccu

To be a bit clearer the problem is essentially our current "video" delivery method. There may be some low hanging fruits to improve the performance somewhat, but I think it'll require a larger architectural change to become fully responsive.

Find us funding and we can do it ;)

sorccu avatar Mar 15 '16 16:03 sorccu

I showcased how it works on a mobile because its easier having devices next to each other - it works exactly the same on a pc :)

Rabusek avatar Mar 16 '16 08:03 Rabusek

Well that doesn't sound right. Any chance you're using ADB over wifi?

sorccu avatar Mar 16 '16 08:03 sorccu