Calculating a layout for a node or a sub-tree in the scene graph can be a computationally intensive task. In general, any movement in any node of, for example, a Grid Layout node, causes recalculation of the layout, which in turn slows down framebuffer updating.
To optimize the rendering of layouts you have to reduce the number of calls to the kzuObjectNodeInvalidateLayout
, which causes the recalculation of the layout for the next frame:
To view the animation and layout performance of your application:
onConfigure()
function: configuration.previewProperties.animationVisualizationEnabled = KZ_TRUE;
Because render transformations do not recalculate a layout, use render transformations instead of other transformations.
To use render transformations:
or
Setting nodes for efficient rendering
Preventing overdraw with the Sorting Filter
Measuring the performance of your application