-
Notifications
You must be signed in to change notification settings - Fork 64
Closed as not planned
Milestone
Description
See
BabylonReactNative/Modules/@babylonjs/react-native/shared/BabylonNative.cpp
Lines 116 to 119 in b3716d9
g_graphics->StartRenderingCurrentFrame(); | |
g_update->Start(); | |
g_update->Finish(); | |
g_graphics->FinishRenderingCurrentFrame(); |
The code is currently calling FinishRenderingCurrentFrame
immediately following StartRenderingCurrentFrame
. FinishedRenderingCurrentFrame
will immediately block waiting for the JS thread to finish doing its part. Ideally, these calls should be backwards. StartRenderingCurrentFrame
should be called as soon as possible and FinishRenderingCurrentFrame
should be called as late as possible. There should be a small gap between FinishRenderingCurrentFrame
and the next StartRenderingCurrentFrame
.
Metadata
Metadata
Assignees
Labels
No labels