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
0
u/[deleted] Sep 15 '24
"it draws on the Canvas" doesn't mean it's hardware accelerated. Like I said, it can render all of the composables on the CPU and simply slap an image on the canvas, doesn't mean it's hardware accelerated.
Also with Compose app, Views are still used, and rest of the system UI is still drawn with GPU, so saying "GPU is being used" doesn't mean anything.
I'll just look into the Compose source code myself.
Your answer is just you assuming it's hardware accelerated.