dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
21.83k stars 1.67k forks source link

Slow Rendering issue with Custom Control when using Clipping. #22319

Open Ahamed-Ali opened 1 month ago

Ahamed-Ali commented 1 month ago

Description

Main Issue : when navigation the contentview , the control is displayed and then clipping happened. Both should render at same time

I created a custom control with clipping enabled. I placed this custom control in a grid within a ContentView. Then, I changed the translation position of the ContentView and reverted it back to position 0. Upon resetting the translation to 0, I changed the a busy indicator grid and custom control grid enabled. However, there is noticeable performance degradation in rendering, where the control is displayed after that clipping is happened.

We designed this layout based on our control layout. For more detailed information, please refer to the video and repository link provided below.

https://github.com/dotnet/maui/assets/102580874/4a709821-0ce9-4687-b9a8-8d1ac0e3e20d

Steps to Reproduce

Obtain the sample from the below repository Replicate the issue as did like in the above video

Link to public reproduction project repository

https://github.com/Ahamed-Ali/SlowRendering/tree/main

Version with bug

Unknown/Other

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 11

Did you find any workaround?

No

Relevant log output

No response

github-actions[bot] commented 1 month ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

Zhanglirong-Winnie commented 1 month ago

Verified this issue with Visual Studio 17.10 Preview 6.0 (8.0.21&8.0.3). Can repro on android platform with sample project.

Ahamed-Ali commented 1 month ago

Any update on this ?

michalsedlak commented 1 month ago

Any update on this?

PrithisIyyappan commented 4 weeks ago

Is there any update on this?