https://kotlinlang.org logo
#compose
Title
# compose
b

Ben Trengrove [G]

03/14/2023, 4:03 AM
It's not just laggy in debug is it? You are testing in release mode and r8 enabled?
c

chanjungskim

03/14/2023, 4:06 AM
r8 is default and why do I need to test it in release mode?
b

Ben Trengrove [G]

03/14/2023, 4:07 AM
You can only judge performance in release mode
If you are just running in debug, you will have r8 off as well
c

chanjungskim

03/14/2023, 4:07 AM
I ran it in release mode with minified but still the same.
b

Ben Trengrove [G]

03/14/2023, 4:10 AM
You are changing the actual text so this would be pretty hard to just do in the draw phase
c

chanjungskim

03/14/2023, 4:51 AM
Ah, well, I was confused with some other question. It doesn't visually have any lags but since my method makes the composable function be called again as compose stage whenever the index changes. Just wanted to improve the code run on draw stage.
I will check and try with the link. Thank you.
2 Views