Compartilhar via


Configurações do Registro para Renderização Gráfica

This topic provides an overview of the WPF graphics rendering registry settings that affect WPF applications.

Este tópico contém as seguintes seções.

When to Use Graphics Rendering Registry Settings

These registry settings are provided for troubleshooting, debugging, and product support purposes. Because changes to the registry affect all WPF applications, your application should never alter these registry keys automatically, or during installation.

What are XPDM and WDDM?

Some of the graphics rendering registry settings have different default values, depending on whether your video card uses an XPDM or WDDM driver. XPDM and WDDM are driver modes used by Microsoft Windows XP and Windows Vista.

  • XPDM: The Microsoft Windows XP Exibir o modelo de driver.

  • WDDM: The Windows Vista Exibir o modelo de driver.

The WDDM video driver model is only available on machines running Windows Vista. The XPDM driver model is available for Windows Vista, Microsoft Windows XP and Microsoft Windows Server 2003.

Registry Settings

WPF fornece quatro configurações do registro para controlar a renderização do WPF:

Configuração

Descrição

Opção Disable Hardware Acceleration

Especifica se a aceleração por hardware deve ser habilitada.

Valor Maximum Multisample

Especifica o grau de várias exemplos para conteúdo de suavização 3-D.

Configuração Required Video Driver Date

Especifica se o sistema desabilita aceleração gráfica para drivers lançados antes de novembro de 2004.

Opção Use Reference Rasterizer

Especifica se o WPF deve utilizar o rasterizador de referência.

Essas configurações podem ser acessadas de qualquer utilitário externo de configuração que saiba como referenciar as configurações do registro do WPF. Essas configurações também podem ser criadas ou modificadas acessando os valores diretamente utilizando o Editor de Registro do Windows.

Opção Disable Hardware Acceleration

Registry key

Tipos de valor

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\DisableHWAcceleration

DWORD

The disable hardware acceleration option enables you to turn off hardware acceleration for debugging and test purposes. When you see rendering artifacts in an application, try turning off hardware acceleration. If the artifact disappears, the problem might be with your video driver.

The desabilitar a opção de aceleração de hardware é um valor DWORD é 0 ou 1. O valor 1 desativa a aceleração de hardware. A value of 0 enables hardware acceleration, provided the system meets hardware acceleration requirements; for more information, see Níveis de Renderização Gráfica.

Valor Maximum Multisample

Registry key

Tipos de valor

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\MaxMultisampleType

DWORD

The maximum multisample value enables you to adjust the maximum amount of anti-aliasing of 3-D content. Use this level to disable 3-D anti-aliasing in Windows Vista or enable it in Microsoft Windows XP.

The valor máximo multisample é um valor DWORD que varia de 0 a 16. O valor 0 Especifica que multisample suavização de conteúdo 3D deve ser desabilitado e um valor de 16 tentará usar até 16 x multisample suavização, se houver suporte para a placa de vídeo. Beware that setting this registry key value on machines using XPDM drivers will cause applications to use a large amount of additional video memory, decrease the performance of 3-D rendering, and has the potential to introduce rendering errors and stability problems.

When this registry key is not set, WPF defaults to 0 for XPDM drivers and 4 for WDDM drivers.

Configuração Required Video Driver Date

Registry key

Tipos de valor

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\RequiredVideoDriverDate

String

In November, 2004, Microsoft released a new version of the driver testing guidelines; the drivers written after this date offer better stability. By default, WPF will use the hardware acceleration pipeline for these drivers and will fall back to software rendering for XPDM drivers published before this date.

The required video driver date setting enables you to specify an alternate minimum date for XPDM drivers. You should only specify a date earlier than November, 2004 if you are confident that your video driver is stable enough to support WPF.

The required video driver setting takes a string of the following format:

AAAA/MM/DD

Where YYYY is the four-digit year, MM is the two-digit month, and DD is the two digit day. When this value is unset, WPF uses November, 2004 as its required video driver date.

Opção Use Reference Rasterizer

Registry key

Tipos de valor

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\UseReferenceRasterizer

DWORD

The Use a opção do rasterizador de referência permite forçar WPF em um modo de renderização de hardware simulado para depuração: WPF entra no modo de hardware, mas usa o Microsoft Direct3D varredura de software de referência, d3dref9.dll, em vez de um dispositivo de hardware real.

The reference rasterizer is very slow, but bypasses your video driver to avoid any rendering issues caused by driver problems. For this reason, you can use the reference rasterizer to determine if rendering issues are caused by the video driver. The d3dref9.dll file must be in a location where the application can access it, such as in any location in the system path or in the local directory of the application.

The use reference rasterizer option takes a DWORD value. A value of 0 indicates that the reference rasterizer is not used. Any other non-zero value forces WPF to use the reference rasterizer.

Consulte também

Conceitos

Níveis de Renderização Gráfica

Visão Geral sobre Renderização de Gráficos do Windows Presentation Foundation