mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
I thought about changing this API so that it blocks on compilation, but I think that isn't necesasary as the workload can happen while the UI thread is building. Plus, even blocking on shader completion does not guarantee that we won't need to compile a variant anyway. While I was at it I moved the descriptor sets computation to the runtime effect constructor. With this change the pipleine variant used during the frame is produced much faster than the initial 12ms compilation.  Fixes https://github.com/flutter/flutter/issues/113719 Fixes https://github.com/flutter/flutter/issues/141222