Aracılığıyla paylaş


Grafik İşleme Katmanları

A rendering tier defines a level of graphics hardware capability and performance for a device that runs a WPF application.

Bu konu aşağıdaki bölümleri içerir.

  • Graphics Hardware
  • Rendering Tier Definitions
  • Other Resources
  • İlgili Konular

Graphics Hardware

The features of the graphics hardware that most impact the rendering tier levels are:

  • Video RAM The amount of video memory on the graphics hardware determines the size and number of buffers that can be used for compositing graphics.

  • Pixel Shader A pixel shader is a graphics processing function that calculates effects on a per-pixel basis. Depending on the resolution of the displayed graphics, there could be several million pixels that need to be processed for each display frame.

  • Vertex Shader A vertex shader is a graphics processing function that performs mathematical operations on the vertex data of the object.

  • Multitexture Support Multitexture support refers to the ability to apply two or more distinct textures during a blending operation on a 3D graphics object. The degree of multitexture support is determined by the number of multitexture units on the graphics hardware.

Rendering Tier Definitions

The features of the graphics hardware determine the rendering capability of a WPF application. The WPF system defines three rendering tiers:

  • Rendering Tier 0 No graphics hardware acceleration. All graphics features use software acceleration. The DirectX version level is less than version 9.0.

  • Rendering Tier 1 Some graphics features use graphics hardware acceleration. The DirectX version level is greater than or equal to version 9.0.

  • Rendering Tier 2 Most graphics features use graphics hardware acceleration. The DirectX version level is greater than or equal to version 9.0.

RenderCapability.Tier Özelliği oluşturma Bağlayıcı uygulama çalıştırma at almak olanak tanırZamanı. Aygıtın belirli donanım tarafından Hızlandırılmış Grafik özelliklerini destekleyip desteklemediğini belirlemek için görüntü oluşturma katman kullanın. Your application can then take different code paths at run time depending on the rendering tier supported by the device.

Rendering Tier 0

A rendering tier value of 0 means that there is no graphics hardware acceleration available for the application on the device. Bu katman düzeyinde tüm grafik hiçbir donanım ivmesi ile yazılım tarafından işlenecek varsaymalıdır. This tier's functionality corresponds to a DirectX version that is less than 9.0.

Rendering tier 1 ve Tier 2 oluşturma

NotNot

Başlangıç.net Framework 4, işleme tier 1 yeniden yalnızca destekleyen grafik donanımı dahil etmek DirectX 9.0 veya üstü.Destekleyen grafik donanımı DirectX 7 veya 8 şimdi tanımlanmış işleme katmanda 0.

İşleme bağlayıcı değeri 1 veya 2 grafik özelliklerinin çoğunun anlamına gelir WPF gerekli sistem kaynakları tükendi verilmemiş ve kullanılabilir donanım ivmesini kullanır. This corresponds to a DirectX version that is greater than or equal to 9.0.

Aşağıdaki tabloda işleme tier 1 ve işleme tier 2 için donanım gereksinimleri grafik arasındaki farklılıklar gösterilmektedir:

Feature

Katman 1

Katman 2

DirectX version

Must be greater than or equal to 9.0.

Must be greater than or equal to 9.0.

Video RAM

Must be greater than or equal to 60MB.

Must be greater than or equal to 120MB.

Pixel shader

Version level must greater than or equal to 2.0.

Version level must greater than or equal to 2.0.

Vertex shader

No requirement.

Version level must greater than or equal to 2.0.

Multitexture units

No requirement.

Number of units must greater than or equal to 4.

Aşağıdaki özellikleri ve yetenekleri oluşturma tier 1 ve işleme tier 2 için hızlandırılmış donanım şunlardır:

Feature

Notes

2B görüntü oluşturma

En 2B görüntü oluşturma desteklenmiyor.

3d rasterleştirme

Çoğu 3d rasterleştirme desteklenir.

3d anisotropic filtreleme

WPF3d içerik işlerken anisotropic filtreleme kullanmayı dener. Anisotropic filtreleme açısından kamera uzakta ve steeply açılı yüzeylere doku görüntü kalitesini geliştirmek için başvurur.

3d MIP eşleme

WPF3d içerik işlerken MIP eşlemesi kullanmayı dener. MIP eşleme doku bir küçük görüş alanı içinde kapladığı zaman doku oluşturma kalitesini artıran bir Viewport3D.

Radial gradients

While supported, avoid the use of RadialGradientBrush on large objects.

3D lighting calculations

WPF performs per-vertex lighting, which means that a light intensity must be calculated at each vertex for each material applied to a mesh.

Text rendering

Sub-pixel font rendering uses available pixel shaders on the graphics hardware.

Yalnızca işleme tier 2 için hızlandırılmış donanım aşağıdaki özellikleri ve özellikleri şunlardır:

Feature

Notes

3D anti-aliasing

3d kenar yumuşatma yalnızca işletim destekleyen Windows görüntü sürücüsü modeli (wddm) gibi sistemlerde desteklenen Windows Vista ve Windows 7.

Aşağıdaki özellikleri ve yetenekleri değil hızlandırılmış donanım:

Feature

Notes

Printed content

All printed content is rendered using the WPF software pipeline.

Rasterized content that uses RenderTargetBitmap

Any content rendered by using the Render method of RenderTargetBitmap.

Tiled content that uses TileBrush

Any tiled content in which the TileMode property of the TileBrush is set to Tile.

Surfaces that exceed the maximum texture size of the graphics hardware

For most graphics hardware, large surfaces are 2048x2048 or 4096x4096 pixels in size.

Any operation whose video RAM requirement exceeds the memory of the graphics hardware

Uygulama video ram kullanımı dahil Perforator aracını kullanarak izleyebilirsiniz WPFPerf.exe (Performance Profiling Tools for WPF) Windows sdk.

Layered windows

Layered windows allow WPF applications to render content to the screen in a non-rectangular window. İşletim sistemlerinde Windows görüntü sürücüsü modeli (wddm) gibi destek Windows Vista ve Windows 7, katmanlı hızlandırılmış donanım pencerelerdir. On other systems, such as Windows XP, layered windows are rendered by software with no hardware acceleration.

You can enable layered windows in WPF by setting the following Window properties:

Other Resources

The following resources can help you analyze the performance characteristics of your WPF application.

Graphics Rendering 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. For more information, see Grafik İşleme Kayıt Ayarları.

WPF Performance Profiling Tools

WPF provides a suite of performance profiling tools that allow you to analyze the run-time behavior of your application and determine the types of performance optimizations you can apply. The following table lists the performance profiling tools that are included in the Windows SDK tool, WPF Performance Suite:

Tool

Description

Perforator

Use for analyzing rendering behavior.

Visual Profiler

Kullanımını profiling için kullanmak WPF , gibi hizmetler düzeni ve olay işleyerek, öğeleri görsel bir ağaç.

The WPF Performance Suite provides a rich, graphical view of performance data. wpf performans araçları hakkında daha fazla bilgi için bkz: WPFPerf.exe (Performance Profiling Tools for WPF).

DirectX Diagnostic Tool

The DirectX Diagnostic Tool, Dxdiag.exe, is designed to help you troubleshoot DirectX-related issues. The default installation folder for the DirectX Diagnostic Tool is:

~\Windows\System32

When you run the DirectX Diagnostic Tool, the main window contains a set of tabs that allow you to display and diagnose DirectX-related information. For example, the System tab provides system information about your computer and specifies the version of DirectX that is installed on your computer.

DirectX Diagnostic Tool main window

Screenhot: DirectX Tanılama Aracı

Ayrıca bkz.

Başvuru

RenderCapability

RenderOptions

Kavramlar

WPF Uygulama Başarımını En İyi Duruma Getirme

WPFPerf.exe (Performance Profiling Tools for WPF)

Grafik İşleme Kayıt Ayarları

Animasyon İpuçları ve Püf Noktaları

Değişiklik Geçmişi

Date

History

Reason

Ekim 2010

Güncelleştirilmiş bilgiler için.net Framework 4 ve işleme tier 2.

Müşteri geribildirimi.

Eylül 2010

wpf performans araçları profil oluşturma ile ilgili bilgiler eklendi.

Bilgi geliştirme.