[Android][AcrylicBlur] Performance Degradation when ThrowStopExceptionOnDraw set to True
See original GitHub issuePlatform (please complete the following information):
- OS: Android
- Device: Android Emulator/Pixel 2 XL
- Sdk vervion: Android SDK 28
- Xamarin.Forms: [4.6.0.847]
Describe the bug
I have noticed that when you set the ThrowStopExceptionOnDraw to True on Android, if you navigate around a few pages that have the MaterialFrames with the following settings:
- MaterialBlurStyle=“Light”
- MaterialTheme=“AcrylicBlur”
The app starts to get slower and slower as you use it and starts to stutter. If you turn ThrowStopExceptionOnDraw to False everything works smoothly.
To Reproduce I have attached a sample project, as well as the GIF below. In the sample, I have a few MaterialFrames with the settings specified above and I’m just navigating to that page and back. You will see that the content gets slower to load and even the back arrow animation in the top left starts to stutter.
Screenshots (if applicable)
Issue Analytics
- State:
- Created 3 years ago
- Comments:18 (12 by maintainers)
Top Results From Across the Web
MaterialFrame leveled up with a Blur theme!
ThrowStopExceptionOnDraw => If set to true , the rendering result could be better (clearer blur not mixing front elements).
Read more >Window blurs
Window blurs, or cross-window blurs, are used to blur the screen behind the given window. There are two types of window blurs, which...
Read more >Real-time blurring on Android vs. iOS : r/androiddev
I've been experimenting with various blurring libraries for real-time blurring of Android views, and whenever I try to blur a substantial ...
Read more >REQUEST: Support for blur effect in Compose [166927547]
At the moment achieving blur effect on Android is relatively hard and the performance is very inconsistent depending on the device. Since blurring...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

should be fixed by https://github.com/roubachof/Sharpnado.MaterialFrame/releases/tag/v1.1.3 AND vs 2019 studio 16.8.
Next version should be published next week