dealing with very large client screen sizes
|Reported by:||Antoine Martin||Owned by:||Antoine Martin|
We are already hitting the limits of some encoders easily enough (around 4k for most, including nvenc).
In other cases, we exhaust the RAM before we can complete the selftests... (vp9 at 8kx8k).
Some client's opengl drivers are limited to 4k too (#942).
Most of the code already assumes that the screen size is no bigger than 8k in width. By default, the vfb max size is just 8k x 4k:
DUMMY(0): Not using mode "16384x8192" (insufficient memory for mode)
But 4k screens are cheap and becoming commonplace, so sooner or later we will have to deal with 8k screens or bigger!
The next big limit is going to be 32768 because window dimensions are stored as signed shorts in many places... And this one will be very very difficult to overcome.
One way of dealing with this is to just use the
max-size switch (see #263).
I don't think we can deal with sizes bigger than 4k without hardware encoding (at least not when dealing video-like content).
See also #33 (could implement some scaling)