MaterialDesignInXamlToolkit icon indicating copy to clipboard operation
MaterialDesignInXamlToolkit copied to clipboard

Some animations on low end windows 10 tablets are laggy

Open Carl-M opened this issue 11 years ago • 10 comments

Opening and closing a full screen dialog is quite choppy, the last few momments where it grows slightly seem to get extended by a few seconds. Observed on a linx 810 quad core 1.8ghz atom tablet.

Would be good to have an option to downgrade the animation or disable it for certain elements to improve performance.

Carl-M avatar Nov 22 '15 10:11 Carl-M

Hi, I will look at this, but out of curiosity, can you try this on your hardware and report back the results?

Stick this somewhere near startup of your app:

Timeline.DesiredFrameRateProperty.OverrideMetadata(typeof(Timeline), new FrameworkPropertyMetadata { DefaultValue = 30 });

ButchersBoy avatar Nov 23 '15 11:11 ButchersBoy

Hi,

Yes limiting to 30fps seems to have made a little better, with out it I get the occasional laggy dialog opening, with it enable it's not as smooth as the desktop but is consistent. It could well be a hardware or wpf limitation. Have checked the processor loading (stays around 30-40% during dialog opening, memory is fine with 50% free, no other fullscreen apps running.

Carl-M avatar Nov 23 '15 14:11 Carl-M

OK. I will look into adding a zero-animation dialog opening mode, then with the above you can tune to your requirements.

ButchersBoy avatar Nov 23 '15 14:11 ButchersBoy

Maybe we can also auto enable the zero animation dialog when low on battery

SuicSoft avatar Nov 23 '15 14:11 SuicSoft

@SuicSoft please see new contribution guidelines. We won't introduce any "application" logic. That's not the responsibility of this library. I'll help out a bit with the ability to switch this animation off; but the decision on when to do such things is an applications' responsibility.

ButchersBoy avatar Nov 23 '15 14:11 ButchersBoy

Yeah , I think these kinds of things shouldn't be in the library. Anyways how about adding a Contributing.md file to the repo.

SuicSoft avatar Nov 23 '15 14:11 SuicSoft

I've already added a link to it from the main readme.md

ButchersBoy avatar Nov 23 '15 14:11 ButchersBoy

@ButchersBoy If you create a contributing.md , it will show a message at the top whenever you contribute to the repo

SuicSoft avatar Nov 23 '15 14:11 SuicSoft

@SuicSoft OK, I'll do that.

ButchersBoy avatar Nov 23 '15 15:11 ButchersBoy

There is now a new attached property:

materialDesign:TransitionAssist.DisableTransitions="True"

This is an inheritable property, so you could put it at your root (e.g Window or DialogHost) to switch off transitions where supported. Then you could turn them back on at lower lever elements where performance is less than an issue. I'm going to work through the transitions so they are aware of this property:

  • [x] DialogHost
  • [x] Drawer
  • [x] Clock
  • [x] Underline
  • [ ] ???

ButchersBoy avatar Nov 24 '15 22:11 ButchersBoy