Render only when needed?
Posted: 15 Jun 2015, 20:22
Hello,
I'm evaluating your framework (v1.2.3), and I hope you don't mind me asking for assistance. I don't have much experience with XAML or even WPF.
First of all, I'm using the native library and the C++ API on Windows (compiling my code with VC++ 2013).
I wish to primarily use your framework for desktop applications, so I naturally wish to reduce the amount of wasteful processing and keep rendering of duplicate frames to a minimum. I would like to be notified whenever there's a need to render again, e.g. when a button's visual state changes, when a menu is fading in (which is a default behavior) an animation is running, etc. I have only experimented a little bit with XAML and storyboards so far.
I did see a few events that looked somewhat useful, such as Storyboard/Timeline::Complete; however, I suspect that it wouldn't be enough to only handle these events, and I'm not even sure how that would work if I don't create these objects manually in code or somehow override this in multiple places using XAML.
A simple limiter in my event handler would hopefully eliminate some more wasteful processing.
Finally, is there an easy way to globally disable animations, fading effects, easing functions, etc., so that I can basically just respect the user's visual settings in the operating system? Instant transition would be fine.
Thank you for any assistance you can provide!
I'm evaluating your framework (v1.2.3), and I hope you don't mind me asking for assistance. I don't have much experience with XAML or even WPF.
First of all, I'm using the native library and the C++ API on Windows (compiling my code with VC++ 2013).
I wish to primarily use your framework for desktop applications, so I naturally wish to reduce the amount of wasteful processing and keep rendering of duplicate frames to a minimum. I would like to be notified whenever there's a need to render again, e.g. when a button's visual state changes, when a menu is fading in (which is a default behavior) an animation is running, etc. I have only experimented a little bit with XAML and storyboards so far.
I did see a few events that looked somewhat useful, such as Storyboard/Timeline::Complete; however, I suspect that it wouldn't be enough to only handle these events, and I'm not even sure how that would work if I don't create these objects manually in code or somehow override this in multiple places using XAML.
A simple limiter in my event handler would hopefully eliminate some more wasteful processing.
Finally, is there an easy way to globally disable animations, fading effects, easing functions, etc., so that I can basically just respect the user's visual settings in the operating system? Instant transition would be fine.
Thank you for any assistance you can provide!