-
public class FilamentHelper
-
-
Method Summary
Modifier and Type Method Description static voidsynchronizePendingFrames(Engine engine)Wait for all pending frames to be processed before returning. -
-
Method Detail
-
synchronizePendingFrames
static void synchronizePendingFrames(Engine engine)
Wait for all pending frames to be processed before returning. This is toavoid a race between the surface being resized before pending frames arerendered into it. This is typically called from onResized, surfaceChanged or onSurfaceTextureSizeChanged.
- Parameters:
engine- Filament engine to synchronize
-
-
-
-