call execute() under single threaded mode (#9738)

This commit is contained in:
Doris Wu
2026-02-23 14:22:56 -08:00
committed by Powei Feng
parent b118ded3fa
commit 551add7519
+6
View File
@@ -798,6 +798,12 @@ void FEngine::submitFrame() {
void FEngine::flush() {
// flush the command buffer
flushCommandBuffer(mCommandBufferQueue);
// In single-threaded mode, we have to call execute() to drain the command
// buffer to really free up space
if constexpr (!UTILS_HAS_THREADING) {
execute();
}
}
void FEngine::flushAndWait() {