Slow first draw image with Skia/EGL

47 views
Skip to first unread message

MuseRay

unread,
Aug 6, 2025, 9:29:47 AMAug 6
to skia-discuss

Hi all,

I'm developing a UI framework using Skia for rendering and encountering a specific performance issue: ​The first draw of control images (e.g. button icons) is significantly slower​ than subsequent draws when using EGL backend. even though I've pre-processed the image with SkImages::TextureFromImage.

Profiling shows the bottleneck occurs specifically in ​**GrDirectContext::flush()**​ during the first draw operation. 

I've also tested with the ​WGL GPU backend​ (on Windows) using the ​same​ code flow, and ​did NOT observe the performance drop on the first draw. The initial GrDirectContext::flush() latency was normal (close to the latency of subsequent flushes).

Thanks for any insights!

MuseRay

unread,
Aug 11, 2025, 9:28:04 AMAug 11
to skia-discuss

can somebody help me, plz!!!

Haji Mohammad Samir Azizi

unread,
Aug 14, 2025, 9:32:46 AMAug 14
to skia-d...@googlegroups.com
Yes

--
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/be378461-ba36-47ea-b7d1-abbd4b8afeban%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages