android/nowinandroid

[Bug]: Significant amount of overdraw throughout the app

開放

#514 建立於 2022年12月29日

 (3 則留言) (0 個反應) (0 位負責人)Kotlin (4,404 個分叉)batch import
bughelp wantedp1

倉庫指標

星標
 (21,223 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Is there an existing issue for this?

  • I have searched the existing issues

Is there a StackOverflow question about this issue?

  • I have searched StackOverflow

What happened?

If you enable "Debug GPU overdraw" in the Developer options, you'll see most of the app is pink (3 levels of overdraw) or red (4+ levels of overdraw). A big chunk of this is coming from the backgrounds. For example, NiaBackground creates a Surface, then NiaGradientBackground creates another Surface and also potentially draws on top, then Scaffold creates another Surface (though it looks transparent), and then the content is drawn on top of that.

Relevant logcat output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

貢獻者指南