vnc performance improvements
PATCH v3 1/1 vnc performance improvements
Hi all,
this small patch series introduces few important performance improvements in the vnc server:
- the first patch is 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 fourth 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 made few significant performance improvements to CopyRect in patch #3.
Cheers,
Stefano Stabellini