Jerky Silverlight 4 animations when running an application in OOB

I played with the new Silverlight 4, and to my surprise, when I launch my sample application in OOB, all animations become very jerky when I move the mouse around during the animation, but when I launch my application in a browser animation, it’s smooth even when moving the mouse around.

I tried my application on two different computers, turned on GPU acceleration in the OOB settings and got the same jerky result.

Is this a problem with Silverlight?

I am running WinXP SP3

UPDATE: Tested on three Windows 7 machines - no problems at all (works in OOB and in the browser), additional 5 WinXP SP3 computers are tested - 100% reproducible problem in any Silverlight 4 OOB application

+3
source share
1 answer

Enabling "Enable GPU Acceleration in Out of Browser" is not enough. This parameter works in tandem with the .CacheMode property, which must be set for all elements (or a top-level element) whose rendered raster map will be sent to the GPU.

From there, the GPU can hardware accelerate rotation, scaling, opacity, clipping. If your animation does any of this, you need to set element.CacheMode = "BitmapCache" to the top-level element that you are animating.

Again, you need to enable “enable GPU acceleration” for this to work.

If any step is missing, you cannot speed up the GPU.

:

  • , .
  • HW XP, , NVidia, ATI Intel, 2004 . .

MSDN .

+1

Source: https://habr.com/ru/post/1741438/


All Articles