Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Texts are rendered even when they or parents have alpha 0 #181

Open
pecoram opened this issue Feb 23, 2024 · 5 comments
Open

Texts are rendered even when they or parents have alpha 0 #181

pecoram opened this issue Feb 23, 2024 · 5 comments
Labels
bug Something isn't working
Milestone

Comments

@pecoram
Copy link
Contributor

pecoram commented Feb 23, 2024

Where text elements are rendered even when their parent container has an alpha value of 0. This slow down the main stage rendering.

Expected Behavior:
When the parent container's alpha value is set to 0, all of its child elements, including text, should not be rendered.

Actual Behavior:
Despite setting the alpha value of the parent container to 0, text elements within it are still rendered.

@wouterlucas wouterlucas added the bug Something isn't working label Feb 23, 2024
@wouterlucas wouterlucas moved this to Todo in Lightning 3.0 Feb 23, 2024
@wouterlucas wouterlucas added this to the Release Candidate 1 milestone Feb 23, 2024
@chiefcll
Copy link
Contributor

Do you have an example:

https://playground.solidjs.com/anonymous/554e0cbd-d435-4118-80e0-10e0e1898450

For me alpha 0 on a parent is hiding the text as well. LMK how to reproduce - Make sure you're updated to latest renderer + solid release

@pecoram
Copy link
Contributor Author

pecoram commented Feb 23, 2024

Take a look to the console -> pageDrawTime

the text triggers a pageDraw even if alpha is 0. This does't happen if you replace the text with a View image

@chiefcll
Copy link
Contributor

Ah ok - so the text isn't visible then? But it's still taking render cycles?

@chiefcll
Copy link
Contributor

I've tested the SDF renderer and this isn't happening - I think only the canvas renderer has this issue

@pecoram
Copy link
Contributor Author

pecoram commented Mar 4, 2024

I confirm, only canvas renderer has this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
No open projects
Status: Todo
Development

No branches or pull requests

3 participants