On Thu, Aug 6, 2020 at 8:57 AM Andras Sali <[email protected]> wrote:

> Hi,
>
> Has the use of a lossless version of WebP encoding been investigated
> instead of PNG?
>
> According to the below benchmark (not sure how up-to-date), with a fairly
> low compression setting (q=0, m=1) webp still needs on average less bytes /
> pixel than PNG reference (Table 1), whilst being x2 faster for encoding
> (Table 2):
>
> https://developers.google.com/speed/webp/docs/webp_lossless_alpha_study
>
> In general Guacamole performance is quite good, but when starting to scroll
> it can lag substantially more than a direct RDP connection (even if the RDP
> server is on the same host as guacamole server) - before the lossy WebP
> kicks in. I would be curious if trying to use WebP consistently (also for
> lossless, not just for high-framerate lossy setup) might improve somewhat
> the responsiveness.
>
> Has anyone investigated this, or does this sound like a bad idea?
>
>
So, first, guacamole-server (guacd) already supports the use of WebP if the
correct libraries are installed at compile time.  Beyond this, guacd uses a
variety of metrics to determine the best image format to use for sending
images to the remote system, based on the available libraries on the system
running guacd as well as the available image format support sent by the
client.  Once the list of supported formats is negotiated between client
and server, guacd makes decisions on which format to use based on how much
of the screen is being updated, resource utilization on the server, and
network link characteristics.

There is no support for setting the image format to a specific format for
the guacd instance.  The only way to accomplish this would be to tweak the
the client such that it only sends a certain image format as its supported
format, which would require tweaking the client-side code.

-Nick

Reply via email to