วันพุธที่ 9 พฤษภาคม พ.ศ. 2555

Optimizing Performance for Windows Phone Emulator

Optimizing Performance for Windows Phone Emulator

Several factors affect the performance of Windows Phone Emulator, such as the presence of a graphics processing unit (GPU) and whether hardware-assisted virtualization is enabled.
You cannot precisely simulate the performance of a Windows Phone device, because the performance of the emulator depends partly on factors that do not affect performance on a distinct physical device, such as the current operating system, the CPU, and the available system memory. However, you can achieve compatible performance in most applications by using GPU emulation, and, in some cases, hardware-assisted virtualization.
Important noteImportant Note:
Verify that your development computer meets hardware and available memory requirements. For more information, see Setup and System Requirements for Windows Phone Emulator. The Windows Experience Index in the Control Panel also provides data about computer performance.
GPU emulation is required for the following applications:
  • Game applications that are based on the XNA Framework.
  • Silverlight applications.
  • Applications that use the MultiScaleImage control.
Important noteImportant Note:
Silverlight applications may run without GPU emulation on Windows Phone Emulator, but this scenario is not supported.
Some Silverlight animations such as perspective transforms are processed by the GPU. In these scenarios, the CPU will draw and compose the scene if GPU emulation is not available. For detailed information, see Graphics on Windows Phone.
NoteNote:
GPU emulation requires DirectX. For the required version of DirectX and the WDDM driver, see Setup and System Requirements for Windows Phone Emulator.
You can check whether GPU emulation is available by including the following code in your application:
System.Windows.Interop.Settings.EnableFrameRateCounter = true;
If you set EnableFrameRateCounter to true, and the framerate counter appears as an overlay on the top of the running application, the emulator has GPU access.
To determine whether the computer running the emulator is GPU-enabled, you can check the emulator when it starts. If the arrow to open the application list points to the left, the computer is not GPU-enabled. If the arrow to open the application list points to the right, the computer is GPU-enabled. The following illustration shows an example of the emulator running on a computer that is not GPU-enabled.
Icon that indicates computer is not GPU enabled
The following illustration shows an example of the emulator running on a computer that is GPU-enabled.
Icon that indicates computer is GPU enabled
Hardware-assisted virtualization improves the overall performance of the emulator. If your processor supports hardware-assisted virtualization, you can often improve the performance of tasks that require the CPU, including startup time, by enabling this feature in the BIOS.
If the GPU is not available to process Deep Zoom compositions and Silverlight animations such as perspective transforms, you can improve the performance of these tasks on the CPU by enabling hardware-assisted virtualization. For additional information about animations and GPU caching, see Graphics on Windows Phone.
To determine whether your processor supports hardware-assisted virtualization, run the Hardware-Assisted Virtualization Detection Tool.
For information about configuring hardware-assisted virtualization, see Configure BIOS for Hardware Assisted Virtualization (HAV) PCs.

ไม่มีความคิดเห็น:

แสดงความคิดเห็น