Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMultiple Renderers on the same thread? #2782
Closed
Comments
|
Gecko uses the same thread for all of its renderers, so this should work for you as well. The assertion you pointed to doesn't seem to exist on WebRender's master branch, is there a reason you are referring to Glenn's fork instead of the main repository? |
|
Updating WR to master took care of this for me. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Context
I'm working on porting WebRender to be the underlying graphics renderer for a UI framework I contribute to.
I'm at the point where I need to add support for pop ups (Drop downs, Context Menus, etc). The framework implements these as separate top level Windows.
Problem
The popup windows share the same UI thread as the main window.
What I'm trying to do is spawn a
Rendererfor each Window, but I'm hitting an assertprofiler.borrow().is_nonein thread_profilerThis is because WR calls
register_thread_with_profilerinRenderer::new(..)hereIs it possible to have this assertion relaxed and just bail out if the thread has already been registered?