Does swiftshader support multi-threaded rendering?

123 views
Skip to first unread message

Kevin Qi

unread,
Feb 24, 2021, 3:54:35 AM2/24/21
to swiftshader
Hello All,

I use swiftshader to provide an OpenGL environment for skia's GPU rendering mode. I found that rendering time is not significantly reduced when multi-threaded rendering. There is a problem of thread waiting when checking stack information with breakpoint debugging , as shown in the figure. Rendering time is reduced when multi-process rendering. It is in line with expectations. Does swiftshader support multi-threaded rendering?

企业微信截图_c33477de-2c42-4446-b552-708bad0869ee.png

企业微信截图_2e35b862-13c8-4b64-ae31-ccff16e74d22.png


Thanks,
Kevin

Nicolas Capens

unread,
Feb 24, 2021, 9:38:42 AM2/24/21
to Kevin Qi, swiftshader
Hi Kevin,

Thanks for your interest in SwiftShader. First things first, I notice that you're using SwiftShader's OpenGL ES build. Please note that this is deprecated and will be removed soon. We are replacing it with "SwANGLE", a combination of the ANGLE project and SwiftShader's new Vulkan implementation. Skia will integrate support for SwANGLE as part of http://crbug.com/skia/10281.

That said, SwiftShader does not currently perform multi-threaded compilation of shaders, but does execute them on multiple threads.

Kind regards,
Nicolas

--
You received this message because you are subscribed to the Google Groups "swiftshader" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swiftshader...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/swiftshader/d15361da-bac6-4567-bb0a-756ba880d06fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages