Hi Armin,

Thanks for your help! The VM doesn't have a GPU, but I don't think that's
the problem since it has a fairly beefy CPU and when using Microsoft's RDP,
there is no latency at all.

You mention that FreeRDP does all the H.264 decoding in software. I know
most hardware today comes with H.264 hardware decoder to free the CPU from
doing this, could that be what slows it down in this case? I would expect
Microsoft's RDP to do H.264/265 decoding on the hardware?

Are there any plans to have FreeRDP do the decoding in hardware/would that
help at all? I've tried running a graphics-intensive application like
Fortnite on the VM through FreeRDP and the CPU was clocking 100% just from
the launcher, which I suspect is because of the software encoding/decoding,
while it was only 30% CPU usage on a regular Windows 10 desktop.

Thanks for answering my questions, I really appreciate it!

Philippe


On Sun, Sep 15, 2019 at 4:24 AM Armin Novak <ano...@thincast.com> wrote:

> Hi,
>
> sorry for the delayed response ;)
>
> I know the video, and it still works on that machine as you have seen ;)
>
>
> so, the 'latencey' you experience can have 3 sources:
>
> * real network latency (doubtful)
>
> * your CPU (freerdp does all decoding in software only)
>
> * your GPU (or the bus) are too slow for the bitmap updates (could be a
> driver issue)
>
>
> in any case, you cold run sysprof and have a look in what is utilizing the
> most resources on your machine.
>
> that might help finding out what is slowing it down and fix that.
>
>
> so you can imagine what happens here a simplified pipeline:
>
> -> network -> openssl -> software decoder -> afterprocessing -> merge with
> virtual framebuffer -> send to GPU
>
>                                                                        |
>
> <- network <- openssl <- report latency   <-
>
>
> so, if your client is not fast enought in processing the data the server
> will reduce quality.
>
>
> regards
>
> Armin
>
> Am 13.09.19 um 14:11 schrieb Philippe Noël:
>
> Apologies, here's more detail about my setup:
>
> I am running Ubuntu 18.04 (Bionic Beaver) on my local device (laptop) and
> I am using FreeRDP to RDP into an Azure Virtual Machine running Windows 10.
> The machine has 4 CPU cores and 16 GB Ram, and I have tested using the
> Mircrosoft RDP from a windows laptop into it and there is no latency at
> all, even when watching videos, which seems to indicate to me that it is
> not the Internet connection or the hardware.
>
> I first tried downloading FreeRDP using "sudo apt-get install
> freerdp-x11", which I then realized later when looking at the Ubuntu
> packages downloads FreeRDP 1.1.0. For this setting, /gfx:avc444 was a valid
> command and helped make videos much more fluid, reducing slightly the
> quality. When using this FreeRDP, the graphics has very high latency and on
> YouTube videos/webpages with a lot of images, I can see the frames being
> drawn from top to bottom which makes the experience very unusable. It was
> better with avc444, but still not ideal (still a significant difference
> compared to Microsoft RDP).
>
> I was then advised to instead use FreeRDP 2, which I tried downloading
> using "sudo apt-get install freerdp2-x11", which I had a bit more trouble
> using (since I understand it is not yet, although very close to, an actual
> release build) and was surprised to see that it made no difference in
> latency really (and was worse since I couldn't use avc444).
>
> I dug a bit online and found a YouTube video (
> https://www.youtube.com/watch?v=N5IkONhAQdc) from many years ago
> showcasing FreeRDP 1.1 with barely any latency on videos, and this is
> essentially the behavior I would like to reproduce. Any advices on how to
> fix this, or is it because some features are not yet implemented?
>
> Sorry for the rant and thanks a lot for your help, I really appreciate it.
>
> Philippe
>
> On Fri, Sep 13, 2019 at 3:13 AM Armin Novak via FreeRDP-devel <
> freerdp-devel@lists.sourceforge.net> wrote:
>
>> * ubuntu does not compile against ffmpeg (wich is in universe) so you
>> only have /gfx:rfx
>>
>> * you could give some information on where you are using the stuff ;)
>> 'incredibly glitchy' could be as simple as too slow hardware...
>>
>>   freerdp currently does all frame decoding in software, so be sure your
>> CPU is fast enought for that (and your graphics drivers can handle
>> bitmap updates well, there are some that are known to be slow)
>>
>>
>> regards
>>
>> Arminnn
>>
>> On 9/13/19 1:18 AM, Philippe Noël via FreeRDP-devel wrote:
>> > Hi,
>> >
>> > I tried downloading freeRDP2 on Ubuntu 18.04 with apt-get (
>> > https://packages.ubuntu.com/bionic/x11/) but it doesn't work quite
>> well. I
>> > can't enable /gfx:avc444 and the video frames are incredibly glitchy,
>> any
>> > advices?
>> >
>> > Cheers,
>> >
>> > Philippe
>> >
>> > _______________________________________________
>> > FreeRDP-devel mailing list
>> > FreeRDP-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/freerdp-devel
>>
>>
>> _______________________________________________
>> FreeRDP-devel mailing list
>> FreeRDP-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/freerdp-devel
>>
>

_______________________________________________
FreeRDP-devel mailing list
FreeRDP-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freerdp-devel

Reply via email to