mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-26 14:41:25 +00:00
display-channel: Limit number of surfaces to 1024
Qemu never used more than this number and today surfaces are not much used so there's no reason to keep this limit so high. This reduces quite a lot some internal structure (DisplayChannelPrivate and DisplayChannelClientPrivate). Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
7362882993
commit
4458cc372b
@ -68,7 +68,7 @@ display_channel_set_property(GObject *object,
|
||||
switch (property_id)
|
||||
{
|
||||
case PROP_N_SURFACES:
|
||||
self->priv->n_surfaces = g_value_get_uint(value);
|
||||
self->priv->n_surfaces = MIN(g_value_get_uint(value), NUM_SURFACES);
|
||||
break;
|
||||
case PROP_VIDEO_CODECS:
|
||||
display_channel_set_video_codecs(self, g_value_get_boxed(value));
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
#define DISPLAY_LIMITS_H_
|
||||
|
||||
/** Maximum number of surfaces a guest can create */
|
||||
#define NUM_SURFACES 10000
|
||||
#define NUM_SURFACES 1024
|
||||
|
||||
/** Maximum number of streams created by spice-server */
|
||||
#define NUM_STREAMS 50
|
||||
|
||||
Loading…
Reference in New Issue
Block a user