Avoiding black screen before first render with alpha: false #1046
Unanswered
dangrabcad
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In my application I need to create the canvas with
alpha: false
so it's not being composited onto the background all the time. But when I do this, the canvas is black for a fraction of a second while the renderer starts up, until it draws its first GL frame. This happens every time the canvas is shown again after being hidden.To avoid the ugly black screen, I'd like to have it show up the same colour as my application's background (which I'm also setting the GL clear colour to in
onCreated
), or not visible at all, until the first frame is drawn. But not visible at all seems like a problem because the black render comes back every time the canvas is hidden.What's a good way to get the performance benefit of
alpha: false
without flashing black every time the canvas is shown?Beta Was this translation helpful? Give feedback.
All reactions