Desktop Effects Performance/ca: Difference between revisions

From KDE UserBase Wiki
(Created page with "{|class="vertical-centered wikitable"; width="650" ! colspan="2" | Visió general de com es representen les miniatures amb les diferents opcions |- ! Remarcat: | [[File:kwin_cri...")
(Created page with "Per omissió s'utilitza Acurat. Sobre maquinari Intel acurat no s'utilitza mai i no es pot habilitat llevat que la variable d'entorn ''KWIN_FORCE_LANCZOS'' estigui establerta a '...")
Line 73: Line 73:
|}
|}


By default Accurate is used. On Intel hardware Accurate is never used and cannot be enabled unless the environment variable ''KWIN_FORCE_LANCZOS'' is set to ''1''.
Per omissió s'utilitza Acurat. Sobre maquinari Intel acurat no s'utilitza mai i no es pot habilitat llevat que la variable d'entorn ''KWIN_FORCE_LANCZOS'' estigui establerta a ''1''.


Switching from Accurate to Smooth can significantly improve the performance of effects like Present Windows.
Switching from Accurate to Smooth can significantly improve the performance of effects like Present Windows.

Revision as of 11:55, 11 December 2011

Rendiment dels efectes d'escriptori

El rendiment dels Efectes d'escriptori en els espais de treball Plasma del KDE està principalment determinat per la interacció del maquinari de gràfics (GPU), el controlador i el compositor (KWin). El compositor mira de triar la millor configuració per a la vostra GPU mitjançant la consulta al controlador del que suporta el maquinari. De vegades ajudar al KWin sobre què suporta el maquinari pot millorar el rendiment.

Seleccionar el controlador correcte

Determinar el controlador utilitzat

És important tenir instal·lat i en ús el controlador correcte. Si no hi ha cap controlador o aquest utilitza malament els efectes d'escriptori feu servir un dorsal sense acceleració (XRender).

La informació sobre el controlador utilitzat està disponible a través de KInfoCenter. Feu clic a Informació gràfica -> OpenGL i estudieu la informació proporcionada. La informació rellevant es troba a la secció Controladors, en particular de Fabricant, Renderitzat i Versió de l'OpenGL/ES. La informació és proporcionada pel controlador i pot ser difícil d'analitzar.

Informació d'OpenGL a KInfoCenter
Si el Renderitzador diu «Software Rasterizer» és que no hi ha cap controlador instal·lat. Per a tots els altres controladors, comproveu si s'utilitza el correcte.

Controladors disponibles

AMD/ATI

Per al maquinari AMD/ATI hi ha disponibles dos controladors: el propietari fglrx o Catalyst i el lliure Mesa (conegut com radeon, r300, r600). Amb el controlador fglrx no està disponible tota la funcionalitat i el rendiment en general sembla ser millor amb els controladors de Mesa. La recomanació és utilitzar sempre els controladors de Mesa amb els efectes d'escriptori. Si trobeu la informació «Mesa» en la versió d'OpenGL/ES, llavors és que esteu utilitzant els controladors lliures i no heu de fer res.

Els controladors de Mesa existeixen en una versió més antiga i més recent. Us haureu d'assegurar que esteu utilitzant la versió més recent que podreu identificar per la paraula «Gallium» a la cadena Renderitzador.

Intel

El maquinari Intel utilitza els controladors lliures de Mesa. No hi ha alternatives disponibles.

NVIDIA

Per al maquinari NVIDIA hi ha disponibles dos controladors: el controlador propietari de NVIDIA i el lliure de Mesa (conegut com nouveau). El controlador lliure encara està sota desenvolupament i no està disponible a totes les distribucions i per a tot el maquinari. En general, es recomana utilitzar els controladors propietaris. Estareu utilitzant els controladors propietaris si diu NVIDIA a la cadena Versió de l'OpenGL/ES.

Instal·lar el controlador

Instal·lar el controlador és específic de la distribució utilitzada. Si us plau, consulteu la documentació de la vostra distribució sobre aquest assumpte.

Versió de OpenGL

KWin suporta OpenGL 1.x i OpenGL 2.x. Per omissió KWin utilitza les característiques d'OpenGL 2 si estan disponibles. OpenGL 2 permet utilitzar més efectes, però requereix més un maquinari més poderós. És important conèixer que encara que el controlador només suporti, per exemple OpenGL 1.4 és possible que KWin utilitzi les característiques d'OpenGL 2, les quals estan disponibles a través d'extensions en el controlador.

Podeu trobar la versió d'OpenGL proporcionada pel controlador a la cadena «Versió de l'OpenGL/ES» a KInfoCenter com s'ha descrit anteriorment. La versió és definida pels primers dos o tres dígits, per exemple, 2.1.

No és trivial esbrinar si KWin utiliza OpenGL 1 o 2, ja que està completament determinat en temps d'execució. La millor prova disponible és utilitzar l'efecte Inverteix, que es pot habilitar en Arranjament del sistema -> Efectes d'escriptori -> pestanya Tots els efectes. Després d'habilitar-lo la pantalla haurà d'estar invertida quan utilitzeu la drecera Meta + Ctrl + I. Si s'inverteix és que s'està utilitzant OpenGL 2, si no fa res és que s'utilitza OpenGL 1.

És possible forzar a KWin per utilitzar OpenGL 1 a través de Arranjament del sistema -> Efectes d'escriptori -> pestanya Avançat i desmarcant Usa els «shaders» de l'OpenGL 2. Això pot millorar el rendiment de maquinari antic. En general, és completament segur utilitzar les ombres de l'OpenGL 2 si el controlador informa d'una versió de 3.x (només disponible amb la tecnologia NVIDIA en el moment d'escriure aquestes línies).

Consell

Per a maquinari modern les ombres de l'OpenGL 2 produeixen un millor rendiment que a l'OpenGL 1. El deshabilitar aquesta opció no és rebut per a un millor rendiment.


Escalar la miniatura

El compositor suporta diferents mètodes d'escala de les miniatures que es representen en la vista prèvia de la barra de tasques o efectes com el de les finestres actuals. Això mira de representar les miniatures amb la major precisió possible el que per descomptat requereix més recursos.

El mètode de l'escala es pot canviar en Arranjament del sistema -> Efectes d'escriptori -> pestanya Avançat -> (llista desplegable) Mètode d'escala. Estan disponibles els següents paràmetres:

* Remarcat
* Suavitzat
* Acurat

La taula proporciona una visió general de com es representen les miniatures amb les diferents opcions.

Visió general de com es representen les miniatures amb les diferents opcions
Remarcat: Remarcat
Suavitzat: Suavitzat
Acurat: Acurat

Per omissió s'utilitza Acurat. Sobre maquinari Intel acurat no s'utilitza mai i no es pot habilitat llevat que la variable d'entorn KWIN_FORCE_LANCZOS estigui establerta a 1.

Switching from Accurate to Smooth can significantly improve the performance of effects like Present Windows.

Velocitat general de les animacions

Animations take some time and the length of an animations is what makes people think that this is a snappy interface or that it lags. This is a very subjective feeling and the difference between too fast and too slow can be milliseconds. It is impossible to have a perfect value for all users.

The global animation duration level can be changed through Systemsettings -> Desktop Effects -> General Tab -> Animation speed selection list. It varies from "Extremely slow" to "Instant" which does not render any animations. By changing from "Normal" to "Fast" many users reported having a more snappy interface.

Sistema gràfic de Qt

Since 4.7 (Released July 2011) the Compositor can use the Qt graphics system raster instead of native (X11). This is only relevant for rendering the window decorations and is not related to the compositing backends (OpenGL/XRender).

Which graphics system is used depends on the distribution defaults. For the Compositor raster is recommended especially if the NVIDIA driver is used.

Decoracions de la finestra

Some Window Decorations perform animations when a window gets activated. This influences the performance of effects if during an animation the active window changes. The performance impact can be reduced by using the graphics system "raster" (see above).

The default window decoration Oxygen provides an option to disable the animations: Systemsettings -> Workspaces Appearance -> Window Decorations -> Configure Decoration... -> General tab Checkbox Enable animations. Disabling the animations can improve the performance.

All window decorations which can be downloaded through the Get New Decorations... dialog use such animations, but it is not possible to disable them. If there is an performance impact due to the theme, it is recommended to use a different one. In general the themed decorations are not optimized and provided to look good and not to be fast.

Another area of window decorations which can impact the performance are shadows. Again the default decoration Oxygen provides a setting to disable them in the same configuration dialog as described above in tab "Shadows" and the themed decorations do not provide an option to disable shadows.

Efecte de difuminat

The Blur Effect is one of the most expensive effects provided by the Compositor. By default it gets enabled for all hardware except Intel hardware. The performance impact of the blur effect depends on the number of open and translucent windows. Especially translucent widget styles (e.g. Oxygen Translucent) and translucent window decorations (e.g. Aurorae Themes) have an impact on the performance. If such a theme is used and the performance is bad it is recommended to either change the theme or disable the Blur effect.

The performance of the Blur effect can be adjusted through Systemsettings -> Desktop Effects -> All Effects tab -> Configuration dialog of Blur effect. Moving the slider for strength to "Light" requires less resources while moving it towards "Strong" requires more resources. Since 4.8 (release January 2012) the intermediate rendering results can be kept (default) which improves the performance even with translucent themes.

Arranjament avançat dels efectes d'escriptori

The Compositor provides some advanced settings under Systemsettings -> Desktop Effects -> Advanced tab. Some of the settings have already been explained. This section focuses on the remaining settings. Changing these settings in general do not improve the performance but make it worse. The Compositor uses the best possible settings.

Tipus de composició

The Compositing type allows choice of the compositing backend, either XRender or OpenGL' By default OpenGL is used which is hardware accelerated. XRender is available even if no OpenGL driver is installed (e.g. virtual machines) and uses mostly the CPU for rendering. Many effects are not available with XRender.

Information

If there is no good reason to change, the default OpenGL is the correct choice. If OpenGL is not available there is an automatic fallback to XRender.


Mantenir les miniatures de la finestra

This has hardly any influence on performance. It is an option to decide how long thumbnails are kept. Best is to not touch this setting.

Suspendre els efectes d'escriptori per a les finestres a pantalla completa

This setting influences the performance of fullscreen windows such as games. The compositor is suspended as long as there is a fullscreen window. The disadvantage is that it causes flickering when a window appears on top of the fullscreen window (e.g. a context menu) and is too generic. As well on some distributions (e.g. Kubuntu 11.04) the Intel driver causes a crash when closing the fullscreen window.

If the compositor should be disabled while a fullscreen application such as games or video is used it is better to disable compositing either through the shortcut Alt + Shift + F12 or since 4.7 (Released July 2011) through a window specific rule for the window.

Mode OpenGL

Warning

The setting is obsolete and has been removed in 4.7 (Released July 2011). Any setting except the default "Texture from Pixmap" is likely to break your desktop.


Habilitar la representació directa

Warning

The setting is obsolete and has been removed in 4.8 (Released January 2012).

The compositor determines by itself whether direct rendering can and has to be used. Changing this setting will most likely break functionality.

Usar VSync

VSync allows you to synchronize the rendering with the screen. Unless there is good reason to change, this setting should be enabled. Even if the setting is disabled the Compositor tries to use the frame rate the screen supports and by default a frame rate of 60 Hz is used.

For multiple screens it is important to know that the rendering can only be synchronized with one screen. In case the screens have a different frame rate it might be valid to disable this option and to set a manual frame rate.