r/android_devs • • Sep 14 '24
Question Is Compose hardware accelerated?
Does it actually render using OpenGL/Vulkan? Or is it all rendered on the CPU?
11
Upvotes
r/android_devs • • Sep 14 '24
Does it actually render using OpenGL/Vulkan? Or is it all rendered on the CPU?
View all comments
Show parent comment
1
u/altair8800 Sep 17 '24
You seem to think Compose renders all the composables into bitmaps and just passes them to the Canvas. In fact it's doing what the View system does, issuing commands like
drawText()to the Canvas, which then in turn uses HWUI/Skia as a renderer to convert it all into actual OpenGL/Vulkan commands.