Windows Vista Forums
Vista Forums Home Join Vista Forums Webcasts Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

How do you intentionally LOWER the framerate?

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 07-07-2006   #1 (permalink)
Lorin Thwaits
Guest


 

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
Guest


 

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]
Guest


 

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
Guest


 

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]
Guest


 

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
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sudden framerate drops nomis101uk Vista Games 1 11-05-2007 12:45 PM
Sudden framerate drops nomis101uk Vista General 4 10-29-2007 03:06 PM
Sudden framerate drops nomis101uk Vista performance & maintenance 0 10-28-2007 09:23 PM
Vista DWM Framerate Arnfinn Haraldsen Vista General 0 08-22-2007 11:09 AM
old deleted revisited-intentionally the same as old post Jeff Vista mail 9 12-12-2006 09:04 AM


Vistax64.com 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 2005-2008

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 47 48 49 50 51