Share via


Optimize OS Components for Graphics Performance (Compact 2013)

3/26/2014

To improve graphics performance, you can optimize components in the Windows Embedded Compact operating system that affect UI load time and animation frame rate.

Add Support for Hardware Acceleration to the OS

Hardware acceleration for XAML for Windows Embedded caches rendered UI elements in graphics memory, which consumes more memory but results in better graphics performance.

Hardware acceleration is required for supporting the OpenGL ES or DirectDraw graphics renderer, and for supporting bitmap caching. When you implement hardware acceleration, you can help improve both load time and animation frame rate.

For more information about how to implement hardware acceleration, see Implement Hardware Acceleration for Graphics in XAML for Windows Embedded.

Customize the Implementation of the Graphics Renderer (Optional)

By using cached composition and hardware-accelerated graphics, you can improve graphics processing speed, which helps improve graphics performance. When you add support for hardware acceleration to an OS, you must add a graphics renderer, either OpenGL or DirectDraw, to the OS image.

You can optionally customize the graphics renderer source code to optimize graphics performance for your device hardware.

For example, you can remove specific graphics operations from the code that occur at a specific stage in the graphics pipeline, and then test the UI to determine whether the performance metrics improve.

For steps on how to customize the graphics renderer, see step 2 through step 4 in Implement Hardware Acceleration for Graphics in XAML for Windows Embedded.

After you rebuild the C++ code for the graphics renderer and rebuild the OS image, you can rerun the XAML for Windows Embedded performance tests and determine whether the performance metrics have improved.

For more information about how to tune graphics performance in OpenGL code, see Tuning Your OpenGL Application.

See Also

Concepts

Graphics and Performance in XAML for Windows Embedded