mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-07 23:43:19 +02:00
Links: .NET Desktop - framework\wpf (#109)
* Links: .NET Desktop - framework\wpf * Apply suggestions from code review Co-authored-by: Andy De George <[email protected]>
This commit is contained in:
co-authored by
Andy De George
parent
c1d6e1d23e
commit
674b773578
@@ -10,10 +10,13 @@ helpviewer_keywords:
|
||||
ms.assetid: 08dd1606-02a2-4122-9351-c0afd2ec3a70
|
||||
---
|
||||
# Graphics Rendering Tiers
|
||||
|
||||
A rendering tier defines a level of graphics hardware capability and performance for a device that runs a [!INCLUDE[TLA2#tla_winclient](../../../includes/tla2sharptla-winclient-md.md)] application.
|
||||
|
||||
<a name="graphics_hardware"></a>
|
||||
|
||||
## 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.
|
||||
@@ -25,7 +28,9 @@ A rendering tier defines a level of graphics hardware capability and performance
|
||||
- **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.
|
||||
|
||||
<a name="rendering_tier_definitions"></a>
|
||||
|
||||
## Rendering Tier Definitions
|
||||
|
||||
The features of the graphics hardware determine the rendering capability of a [!INCLUDE[TLA2#tla_winclient](../../../includes/tla2sharptla-winclient-md.md)] application. The [!INCLUDE[TLA2#tla_winclient](../../../includes/tla2sharptla-winclient-md.md)] 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.
|
||||
@@ -37,6 +42,7 @@ A rendering tier defines a level of graphics hardware capability and performance
|
||||
The <xref:System.Windows.Media.RenderCapability.Tier%2A?displayProperty=nameWithType> property allows you to retrieve the rendering tier at application run time. You use the rendering tier to determine whether the device supports certain hardware-accelerated graphics features. 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. At this tier level, you should assume that all graphics will be rendered by software with no hardware acceleration. This tier's functionality corresponds to a DirectX version that is less than 9.0.
|
||||
|
||||
### Rendering Tier 1 and Rendering Tier 2
|
||||
@@ -82,14 +88,17 @@ A rendering tier defines a level of graphics hardware capability and performance
|
||||
|Rasterized content that uses <xref:System.Windows.Media.Imaging.RenderTargetBitmap>|Any content rendered by using the <xref:System.Windows.Media.Imaging.RenderTargetBitmap.Render%2A> method of <xref:System.Windows.Media.Imaging.RenderTargetBitmap>.|
|
||||
|Tiled content that uses <xref:System.Windows.Media.TileBrush>|Any tiled content in which the <xref:System.Windows.Media.TileBrush.TileMode%2A> property of the <xref:System.Windows.Media.TileBrush> is set to <xref:System.Windows.Media.TileMode.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|You can monitor application video RAM usage by using the Perforator tool that is included in the [WPF Performance Suite](https://docs.microsoft.com/previous-versions/dotnet/netframework-4.0/aa969767(v=vs.100)) in the Windows SDK.|
|
||||
|Any operation whose video RAM requirement exceeds the memory of the graphics hardware|You can monitor application video RAM usage by using the Perforator tool that is included in the [WPF Performance Suite](/previous-versions/dotnet/netframework-4.0/aa969767(v=vs.100)) in the Windows SDK.|
|
||||
|Layered windows|Layered windows allow [!INCLUDE[TLA2#tla_winclient](../../../includes/tla2sharptla-winclient-md.md)] applications to render content to the screen in a non-rectangular window. On operating systems that support Windows Display Driver Model (WDDM), such as Windows Vista and Windows 7, layered windows are hardware accelerated. On other systems, such as Windows XP, layered windows are rendered by software with no hardware acceleration.<br /><br /> You can enable layered windows in [!INCLUDE[TLA2#tla_winclient](../../../includes/tla2sharptla-winclient-md.md)] by setting the following <xref:System.Windows.Window> properties:<br /><br /> - <xref:System.Windows.Window.WindowStyle%2A> = <xref:System.Windows.WindowStyle.None><br />- <xref:System.Windows.Window.AllowsTransparency%2A> = `true`<br />- <xref:System.Windows.Controls.Control.Background%2A> = <xref:System.Windows.Media.Brushes.Transparent%2A>|
|
||||
|
||||
<a name="other_resources"></a>
|
||||
|
||||
## Other Resources
|
||||
|
||||
The following resources can help you analyze the performance characteristics of your [!INCLUDE[TLA2#tla_winclient](../../../includes/tla2sharptla-winclient-md.md)] application.
|
||||
|
||||
### Graphics Rendering Registry Settings
|
||||
|
||||
[!INCLUDE[TLA2#tla_winclient](../../../includes/tla2sharptla-winclient-md.md)] provides four registry settings for controlling [!INCLUDE[TLA2#tla_winclient](../../../includes/tla2sharptla-winclient-md.md)] rendering:
|
||||
|
||||
|Setting|Description|
|
||||
@@ -102,6 +111,7 @@ A rendering tier defines a level of graphics hardware capability and performance
|
||||
These settings can be accessed by any external configuration utility that knows how to reference the [!INCLUDE[TLA2#tla_winclient](../../../includes/tla2sharptla-winclient-md.md)] 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 [Graphics Rendering Registry Settings](../graphics-multimedia/graphics-rendering-registry-settings.md).
|
||||
|
||||
### WPF Performance Profiling Tools
|
||||
|
||||
[!INCLUDE[TLA2#tla_winclient](../../../includes/tla2sharptla-winclient-md.md)] 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|
|
||||
@@ -109,9 +119,10 @@ A rendering tier defines a level of graphics hardware capability and performance
|
||||
|Perforator|Use for analyzing rendering behavior.|
|
||||
|Visual Profiler|Use for profiling the use of [!INCLUDE[TLA2#tla_winclient](../../../includes/tla2sharptla-winclient-md.md)] services, such as layout and event handling, by elements in the visual tree.|
|
||||
|
||||
The WPF Performance Suite provides a rich, graphical view of performance data. For more information about WPF performance tools, see [WPF Performance Suite](https://docs.microsoft.com/previous-versions/dotnet/netframework-4.0/aa969767(v=vs.100)).
|
||||
The WPF Performance Suite provides a rich, graphical view of performance data. For more information about WPF performance tools, see [WPF Performance Suite](/previous-versions/dotnet/netframework-4.0/aa969767(v=vs.100)).
|
||||
|
||||
### 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`
|
||||
@@ -126,6 +137,6 @@ DirectX Diagnostic Tool main window
|
||||
- <xref:System.Windows.Media.RenderCapability>
|
||||
- <xref:System.Windows.Media.RenderOptions>
|
||||
- [Optimizing WPF Application Performance](optimizing-wpf-application-performance.md)
|
||||
- [WPF Performance Suite](https://docs.microsoft.com/previous-versions/dotnet/netframework-4.0/aa969767(v=vs.100))
|
||||
- [WPF Performance Suite](/previous-versions/dotnet/netframework-4.0/aa969767(v=vs.100))
|
||||
- [Graphics Rendering Registry Settings](../graphics-multimedia/graphics-rendering-registry-settings.md)
|
||||
- [Animation Tips and Tricks](../graphics-multimedia/animation-tips-and-tricks.md)
|
||||
|
||||
Reference in New Issue
Block a user