Replies: 1 comment
-
Thanks for pointing out @bogas04 and also for providing a video to explain the issue.
That's true but I would also like to point out that the performance impact of overdraw are not considered a significant problem anymore. Therefore we decided to focus our effort on other initiatives that providing more benefits.
From https://developer.android.com/topic/performance/rendering/overdraw#understanding |
Beta Was this translation helpful? Give feedback.
-
On Android, GPU overdraw issues can cause a lot of performance regression. React Native apps are also plagued by it. Usually the fix is to reduce nesting of layouts, and to remove unnecessary background colors. While this may be possible for a small app, as an app grows it is hard to maintain. I mean it isn't realistic to open GPU debugger on an emulator each time you add a 'backgroundColor' property.
In fact, even the default code in a fresh new react-native app suffers from GPU overdraw. This is mainly due to the transparent ImageBackground and setting backgroundColor twice.
rGPs-UvDs0uGa7rs.mp4
Here you can see how completely legitimate way of ensuring a dark and light mode logic is enough to cause a GPU overdraw.
Beta Was this translation helpful? Give feedback.
All reactions