Slow flush calls

45 views
Skip to first unread message

Leon Scroggins

unread,
Dec 22, 2025, 10:31:41 AM12/22/25
to skia-discuss
Hi!

We're using Ganesh on Vulkan on Linux to draw lines and polygons. Sometimes flush is extremely slow. Any suggestions on how to start debugging?

It's been a while ;)

SkiaFlush.png

Noelle Scobie

unread,
Dec 23, 2025, 4:30:59 PM12/23/25
to skia-d...@googlegroups.com
Hi, Leon! :)

Assuming you're the one compiling the copy of Skia in question, https://skia-review.googlesource.com/c/skia/+/1131277 adds an easy way to aggressively trace every API call Skia makes to Vulkan, which may be a helpful start. Also, knowing what the relatively tiny slices at the start and end of that long GrDrawingManager::flush slice are would help guide where else you should add TRACE_EVENT0(...) calls to narrow things down.

Cheers!
-Noelle

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/skia-discuss/aba404c8-daf1-4252-80d9-365ccabda31cn%40googlegroups.com.

Aitor Gomila

unread,
Jan 2, 2026, 10:59:11 AM (10 days ago) Jan 2
to skia-discuss
Hey!
Out of curiosity, what profiler do you use? I'm looking for one!

Leon Scroggins

unread,
Jan 9, 2026, 10:31:37 AM (3 days ago) Jan 9
to skia-d...@googlegroups.com
Thanks! I'm not seeing the same problem right now. I think it was reduced by removing some contention on the GPU.

When I worked on Skia, I typically used Perfetto when working with Skia on Android. But you can also override SkEventTracer to integrate with other systems.

--
You received this message because you are subscribed to the Google Groups "skia-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to skia-discuss...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages