Skip to content

Using scaleX/scaleY instead of alpha/visible to control visibility performs better #466

Open
@hiratariq

Description

@hiratariq

Hi,

In a very complex render tree, I experimented with scaling the components down to nothing instead of hiding their visibility,
link to example

It seems to me that scaleX/scaleY is significantly faster than alpha/visible to mainly hide and show. It makes quite a difference on our slower device as well. I haven't come across any penalty from Lightning that comes with it, that is, patching is faster comparatively, and the drawFrame right after seems to take about the same amount of time.

Is there something I am overlooking, if not, why is scaling faster than visibility?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceIssue is related to a performance problem

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions