use flush() instead of directly calling executeRenderThread (wasm) or flushAndWait (native)
This commit is contained in:
@@ -558,13 +558,7 @@ class FFIFilamentApp extends FilamentApp<Pointer> {
|
|||||||
Renderer_endFrameRenderThread(renderer, requestId, cb);
|
Renderer_endFrameRenderThread(renderer, requestId, cb);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (FILAMENT_SINGLE_THREADED) {
|
await flush();
|
||||||
await withVoidCallback(
|
|
||||||
(requestId, cb) => Engine_executeRenderThread(engine, requestId, cb));
|
|
||||||
} else {
|
|
||||||
await withVoidCallback((requestId, cb) =>
|
|
||||||
Engine_flushAndWaitRenderThread(engine, requestId, cb));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
|||||||
Reference in New Issue
Block a user