iOS Rotate animation is very choppy due to LOTS of unneceesary measure cycles and makes application unusably slow #11891
Labels
area-animation
Animation, Transitions, Transforms
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
platform/iOS 🍎
t/bug
Something isn't working
t/perf
The issue affects performance (runtime speed, memory usage, startup time, etc.) (sub: perf)
Milestone
Description
In the sample attached below you can see that the robot image rotation is very choppy. This is particularly evident on an iOS simulator where things run a bit slower than a high end phone. On my test machine I am getting perhaps 5-10fps.
On Windows and Android this animation runs smoothly and Measure() and MeasureOverride() are not called on the animated control or other controls.
On iOS, Measure() and MeasureOverride() are called all the time. They are even called on neighboring controls (making the animation even slower). In the sample you can see they are called for the label even though the animation has nothing to do with the label.
This is a major regression from XF and prevents us from shipping an application ported to MAUI. In XF, animations did not cause all the unnecessary measure cycles and the animation also ran smoothly on iOS.
MauiApp4_rotatebug.zip
Steps to Reproduce
Link to public reproduction project repository
see atttached sample
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 15,16
Did you find any workaround?
no
Relevant log output
No response
The text was updated successfully, but these errors were encountered: