Skip to contentSkip to conversation

vnc performance improvements v2

PATCH Superseded Stefano Stabellini 1 participant 1 message Jul 30, 2009

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vnc performance improvements v2

Hi all,
this small patch series introduces few important performance improvements in the vnc server:

- the first patch is now the copyrect fix by Gerd;

- the second patch adds a single timer to refresh the screen and update all the vnc clients, this way we call vga_hw_update only once in the timer handler instead of once per client connected;

- the third patch removes the malloc'ed server surface from VncState and moves it to VncDisplay: this way we don't allocate a secondary surface per client connected but only one for all the possible clients; each vnc client still maintains its own dirty bitmap;

- the forth patch introduces variable update intervals for the timer so that if there is small activity in the guest, or few framebuffer updates are requested by clients, we can slow down the refresh rate in the server and save precious resources.

Compared to the previous version I added Gerd's CopyRect fix at the beginning of the series, and I updated the "single vnc server surface" patch to better handle CopyRect as well.
My tests show that CopyRect is working now, but please let me know if you keep having problems.

Cheers,

Stefano Stabellini