Skip to content

Increase load on the CanvasDrawing test#5624

Open
Andrei Salavei (ASalavei) wants to merge 3 commits into
masterfrom
andrei.salavei/tests-improvements
Open

Increase load on the CanvasDrawing test#5624
Andrei Salavei (ASalavei) wants to merge 3 commits into
masterfrom
andrei.salavei/tests-improvements

Conversation

@ASalavei

Copy link
Copy Markdown
Contributor

CanvasDrawing became too easy for 60 FPS devices and became less useful.
The MR increase number of draw calls during this tests to provide more versatile data.

Also, enable Always On screen on iOS to eliminate screen deeming issues during the tests.

Release Notes

N/A

)

repeat(200) { i ->
repeat(300) { i ->

@pjBooms Nikita Lipsky (pjBooms) Jun 22, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have a history for CanvasDrawing on the benchmark server. So I would suggest to introduce parameters for the benchmark and register two benchmarks: with old values and new ones (say CanvasDrawingHeavy). See also similar thing for LazyGrid or MultipleComponents.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. I checked a solution how to tweak params to increase complexity, but at the end - we have to tweak too much, so I added a new list cell here.


@Composable
private fun CanvasDrawingItem(index: Int) {
private fun EasyCanvasDrawingItem(index: Int) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Easy and Medium Items have many things in common. I would de-duplicate them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants