![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | 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 Specs![]() |
| | #2 (permalink) |
| | 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 Specs![]() |
| | #3 (permalink) |
| | 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 Specs![]() |
| | #4 (permalink) |
| | 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 Specs![]() |
| | #5 (permalink) |
| | 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 Specs![]() |
| 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 | |||