Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - How do you intentionally LOWER the framerate?

 
 
Old 07-07-2006   #1 (permalink)
Lorin Thwaits


 
 

How do you intentionally LOWER the framerate?

If you are animating something that's inherently very slow-moving, such
as the minute and hour hand on an analog clock, how can you
intentionally make it update every 10 seconds or so instead of 60 times
a second? I just want to limit the drain on my processor! Here's an
example XAML DoubleAnimation element:

.... in a TransformGroup...
<RotateTransform x:Name="MinuteHandTransform" Angle="0" />

.... in a Storyboard ...
<DoubleAnimation
Storyboard.TargetName="MinuteHandTransform"
Storyboard.TargetProperty="Angle"
From="0" To="360" Duration="1:00:00" RepeatBehavior="Forever" />


I find no "Framerate" property on a Storyboard, Transform, or
Animation. Flash can set Framerate. Aren't we doing lots of similar
things as to what Flash can do? Wouldn't it be nice to limit the CPU
cycles spent on some parts of an animation so other parts can get more
emphasis?


My System SpecsSystem Spec
Old 07-07-2006   #2 (permalink)
Laurent Bugnion


 
 

Re: How do you intentionally LOWER the framerate?

Hi,

Lorin Thwaits wrote:

[snip]

> I find no "Framerate" property on a Storyboard, Transform, or
> Animation. Flash can set Framerate. Aren't we doing lots of similar
> things as to what Flash can do? Wouldn't it be nice to limit the CPU
> cycles spent on some parts of an animation so other parts can get more
> emphasis?


http://blogs.msdn.com/henryh/archive...25/607503.aspx

Apparently, there is a StoryBoard.DesiredFrameRate property since Beta2
(May CTP).

HTH,
Laurent
--
Laurent Bugnion, GalaSoft
Software engineering: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch
My System SpecsSystem Spec
Old 07-07-2006   #3 (permalink)
Ed Maia [MSFT]


 
 

Re: How do you intentionally LOWER the framerate?

Yes, DesiredFrameRate is the way to go. This property can be assigned to
any root timelines (in XAML, the parent Storyboard).

"Laurent Bugnion" <galasoft-lb@bluewin.ch> wrote in message
news:eK%23DQ3ZoGHA.4504@TK2MSFTNGP04.phx.gbl...
> Hi,
>
> Lorin Thwaits wrote:
>
> [snip]
>
>> I find no "Framerate" property on a Storyboard, Transform, or
>> Animation. Flash can set Framerate. Aren't we doing lots of similar
>> things as to what Flash can do? Wouldn't it be nice to limit the CPU
>> cycles spent on some parts of an animation so other parts can get more
>> emphasis?

>
> http://blogs.msdn.com/henryh/archive...25/607503.aspx
>
> Apparently, there is a StoryBoard.DesiredFrameRate property since Beta2
> (May CTP).
>
> HTH,
> Laurent
> --
> Laurent Bugnion, GalaSoft
> Software engineering: http://www.galasoft-LB.ch
> Private/Malaysia: http://mypage.bluewin.ch/lbugnion
> Support children in Calcutta: http://www.calcutta-espoir.ch



My System SpecsSystem Spec
Old 07-07-2006   #4 (permalink)
Lorin Thwaits


 
 

Re: Here's how to intentionally LOWER the framerate for better perf!

Laurent,

Sure enough, that did the trick! My processor utilization went from
around 60% down to an average 6.5%. Wonderful for anyone doing widget
development for the Sidebar.

Thanks again.

-Lorin


Laurent Bugnion wrote:
> Hi,
>
> Lorin Thwaits wrote:
>
> > I find no "Framerate" property on a Storyboard, Transform, or
> > Animation. Wouldn't it be nice to limit the CPU
> > cycles spent on some parts of an animation so other parts can get more
> > emphasis?

>
> http://blogs.msdn.com/henryh/archive...25/607503.aspx
>
> Apparently, there is a StoryBoard.DesiredFrameRate property since Beta2
> (May CTP).
>
> HTH,
> Laurent
> --
> Laurent Bugnion, GalaSoft
> Software engineering: http://www.galasoft-LB.ch
> Private/Malaysia: http://mypage.bluewin.ch/lbugnion
> Support children in Calcutta: http://www.calcutta-espoir.ch


My System SpecsSystem Spec
Old 07-13-2006   #5 (permalink)
Michael Jacobs [MSFT]


 
 

Re: Here's how to intentionally LOWER the framerate for better perf!

Btw, there's an example located at
http://windowssdk.msdn.microsoft.com...framerate.aspx.




"Lorin Thwaits" <lorint@gmail.com> wrote in message
news:1152300423.569013.261740@p79g2000cwp.googlegroups.com...
> Laurent,
>
> Sure enough, that did the trick! My processor utilization went from
> around 60% down to an average 6.5%. Wonderful for anyone doing widget
> development for the Sidebar.
>
> Thanks again.
>
> -Lorin
>
>
> Laurent Bugnion wrote:
>> Hi,
>>
>> Lorin Thwaits wrote:
>>
>> > I find no "Framerate" property on a Storyboard, Transform, or
>> > Animation. Wouldn't it be nice to limit the CPU
>> > cycles spent on some parts of an animation so other parts can get more
>> > emphasis?

>>
>> http://blogs.msdn.com/henryh/archive...25/607503.aspx
>>
>> Apparently, there is a StoryBoard.DesiredFrameRate property since Beta2
>> (May CTP).
>>
>> HTH,
>> Laurent
>> --
>> Laurent Bugnion, GalaSoft
>> Software engineering: http://www.galasoft-LB.ch
>> Private/Malaysia: http://mypage.bluewin.ch/lbugnion
>> Support children in Calcutta: http://www.calcutta-espoir.ch

>



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Sudden framerate drops Vista Games
Sudden framerate drops Vista General
Sudden framerate drops Vista performance & maintenance
Vista DWM Framerate Vista General
old deleted revisited-intentionally the same as old post Vista mail


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46