Slow performance of dynamic controls after updating Xamarin Forms

OptimusPrimeOptimusPrime USMember
edited November 2017 in Xamarin.Forms

Hi,

After updating Xamarin.Forms found that the dynamic controls/UI is generated very slowly.
Previously it was working very smoothly without any delay. Now it takes a lot longer for even smaller tasks.

Also sometimes there is a bit of lag which was previously not there.

Can anyone help pinpoint to what might be causing the problem.

Answers

  • seanydaseanyda GBMember ✭✭✭✭✭

    Is this on iOS or Android? There has been a few updates recently to improve performance which are still in there pre-release stages. If the performance issues are on Android add this to your MainActivity.cs to use the Fast Renderers.

    Forms.SetFlags("FastRenderers_Experimental");

    These are the docs:
    https://developer.xamarin.com/guides/xamarin-forms/under-the-hood/fast-renderers/

    Also LayoutCompression is out in the latest pre-release.

  • OptimusPrimeOptimusPrime USMember
    edited November 2017

    Its on android.
    Problems are caused by using the latest xamarin forms nuget packages above 2.3.4.270.

    Will try your suggestion and revert.

Sign In or Register to comment.