I'm building nested layouts using an recursive approach and invoke all composable methods once the tree is build up. I noticed that the first rendering the elements build up quickly after each other instead of one element (probably due to complexity). Is there any way to improve the rendering by using some advanced Composable? Thank you 🙏
z
Zach Klippenstein (he/him) [MOD]
08/02/2024, 4:21 AM
By “build up quickly after each other” do you mean over multiple frames?
f
Fin
08/02/2024, 4:23 AM
Yes, I can visible see that more components are added with each frame.
z
Zach Klippenstein (he/him) [MOD]
08/02/2024, 2:05 PM
That doesn’t sound like an issue with complexity, if the code was too expensive then you’d just see the first few frames skipped.
Zach Klippenstein (he/him) [MOD]
08/02/2024, 2:05 PM
I can’t debug this without seeing some code
f
Fin
08/09/2024, 8:05 AM
Thank you for your help - I was able to improve the code a bit to increase the performance.