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
EGL context cannot be shared between threads #59930
Comments
This is required for #58291 |
We also need to determinate if the raster task queue is running on the platform thread to decide where to dispatch these messages: |
This is blocked as dynamic thread merging isn't ready. From @cyanglaz:
|
#57067 is the issue blocking thread merging |
This was cross referenced from #63585. Can this just be reworded to "Enable dynamic thread merging on Android." to better reflect the action item? Can you comment on the priority? This seems like a blocker to the platform views work. |
@chinmaygarde priority looks good. I will update this issue in a bit as I'm currently debugging this issue. |
This issue is fixed by clearing the context before the context switch. For instance, in the raster thread before it is made current on the platform thread. However, a single context switch appears to cause significant frame drops. I haven’t identified the cause. @cyanglaz I initially thought that resetting the context on every frame was the cause, but I have verified that the slow down occurs after a single reset. So, it might not be related to the context reset. I’m still investigating. |
I haven't tried this yet but: does context switching without thread merging also cause performance issues? |
No |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
If context is current to some other thread, or if either draw or read are bound to contexts in another thread, an
EGL_BAD_ACCESS
error is generated.https://www.khronos.org/registry/EGL/sdk/docs/man/html/eglMakeCurrent.xhtml
This affects hybrid mode because the raster and the platform thread need to be merged. We might need to make a separate EGL context for the platform thread.
The text was updated successfully, but these errors were encountered: