Share via


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

Este tópico fornece uma visão geral sobre o WPF que afetam as configurações de registro de processamento de elementos gráficos WPF aplicativos.

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

  • When to Use Graphics Rendering Registry Settings
  • What are XPDM and WDDM?
  • Registry Settings
  • Disable Hardware Acceleration Option
  • Maximum Multisample Value
  • Required Video Driver Date Setting
  • Use Reference Rasterizer Option
  • Tópicos relacionados

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 é o Microsoft Windows XP Display Driver Model e o WDDM é o modelo de Driver de vídeo do Windows. O WDDM está disponível em computadores que executam Windows Vista e Windows 7. XPDM está disponível em computadores que executam Windows Vista, Microsoft Windows XP, e Microsoft Windows Server 2003. Para obter mais informações sobre o WDDM, consulte Guia de Design de modelo do Windows Vista Display Driver.

Registry Settings

WPF provides four registry settings for controlling WPF rendering:

Setting

Description

Disable Hardware Acceleration Option

Specifies whether hardware acceleration should be enabled.

Maximum Multisample Value

Specifies the degree of multisampling for antialiasing 3-D content.

Required Video Driver Date Setting

Specifies whether the system disables hardware acceleration for drivers released before November 2004.

Use Reference Rasterizer Option

Specifies whether WPF should use the reference rasterizer.

These settings can be accessed by any external configuration utility that knows how to reference the WPF registry settings. These settings can also be created or modified by accessing the values directly by using the Windows Registry Editor.

Disable Hardware Acceleration Option

Registry key

Value type

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.

O desativar 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.

Maximum Multisample Value

Registry key

Value type

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\MaxMultisampleType

DWORD

O valor máximo de multisample permite que você ajuste a quantidade máxima de suavização de 3-D conteúdo. Use esse nível para desativar 3-D antialiasing em Windows Vista ou ativá-lo em Microsoft Windows XP.

O valor máximo de multisample é um valor DWORD varia de 0 a 16. Um valor igual a 0 Especifica que deve ser desativado antialiasing multisample de conteúdo 3D e um valor de 16 tentará usar 16 x antialiasing multisample, se a placa de vídeo com suporte. Lembre-se de que esse valor de chave de registro de configuração em computadores que usam drivers XPDM fará com que aplicativos para usar uma grande quantidade de memória de vídeo adicional, diminuir o desempenho de 3-D de processamento, e tem o potencial de apresentar erros de processamento e problemas de estabilidade.

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

Required Video Driver Date Setting

Registry key

Value type

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.

Use Reference Rasterizer Option

Registry key

Value type

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Avalon.Graphics\UseReferenceRasterizer

DWORD

O usar a opção do rasterizador de referência permite que você force WPF em um modo de renderização de hardware simulado para depuração: WPFentra no modo de hardware, mas usa a Microsoft Direct3D rasterizador 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

WPF Graphics Rendering Overview