chris-horner
09/14/2021, 5:10 AMLayout { }
invoked every frame? Especially with lots of temporary collections being created with lines like
val placeables = measurables.map { it.measure(constraints) }
Zach Klippenstein (he/him) [MOD]
09/14/2021, 5:49 AMchris-horner
09/14/2021, 5:52 AMLayout
to Box2D and have composables bounce off each other 😅
Ideally with an API that looks something like
Physics {
Button()
Text()
}
Zach Klippenstein (he/him) [MOD]
09/14/2021, 5:54 AMZach Klippenstein (he/him) [MOD]
09/14/2021, 5:55 AMchris-horner
09/14/2021, 5:56 AMZach Klippenstein (he/him) [MOD]
09/14/2021, 5:57 AMchris-horner
09/14/2021, 6:09 AMgraphicsLayer { }
is the place to start! Thanks for the help yet againchris-horner
09/14/2021, 6:11 AMAlbert Chang
09/14/2021, 6:41 AMfastForEach
, fastMap
) from ui-util
module can at least reduce the number of temporary objects.Adam Powell
09/14/2021, 1:55 PMLayout
is the way to go. In the placement block you can do placeable.placeWithLayer
which is identical to giving that child a graphicsLayer
to add whatever additional effects you like.Zach Klippenstein (he/him) [MOD]
09/14/2021, 2:20 PMchris-horner
09/15/2021, 5:20 AMplaceable.placeWithLayer
experiments are promising 😄Zach Klippenstein (he/him) [MOD]
09/15/2021, 2:58 PMZach Klippenstein (he/him) [MOD]
09/15/2021, 3:14 PMAdam Powell
09/15/2021, 3:27 PMStylianos Gakis
08/17/2022, 1:52 PM