|
楼主 |
发表于 2015-3-25 11:26:41
|
显示全部楼层
费德勒 发表于 2015-3-25 10:12
应该不是解的问题,而是如何拿到这个数据,然后显示的问题。
这个是spice 里面的关于加速的一段话,好像没说明具体方法
Hardware Acceleration
The basic Spice client rendering is performed using Cairo, which is a cross-platform, deviceindependent
library. Cairo provides vector graphics primitives for 2-dimensional drawing.
Hardware acceleration is an additional rendering mode in which the rendering is performed on
hardware by the client GPU and not by software, using the client CPU. Hardware acceleration is
implemented using OpenGL (experimental) in Linux, and GDI in Windows. . Hardware
acceleration advantages are:
● High performance rendering - using OpenGL the Spice client is able to render much faster
than before. Heavy software operations such as stretching (used by video streaming) are
much faster when preformed by hardware than by software. Therefore, Spice achieves a
much smoother user experience.
● Reducing client CPU usage - the client enjoys more CPU time, which can be used for other
tasks like audio.
Unlike Cairo, which is an independent software library, OpenGL is a hardware library that depends
on the driver and hardware implementation. As a result, Spice might suffer from incorrect
rendering, heavy CPU usage, or client or host crash in the worst case. In addition, although
OpenGL is a global standard, the implementation of hardware and drivers changes dramatically
between vendors. Thus, on different GPUs, Spice might display different rendering output, and
different performance might be detected. In addition, there are devices which do not support
OpenGL at all.
The server also uses OpenGL for hardware acceleration, sharing the same code as the Linux client. |
|