You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The Start/Finish calls are in the wrong order, and this results in the render thread to be in a blocked state rather than an idle state between frames being rendered. This severely limits how much work can be done on the render thread when a frame is not being actively rendered. In some cases (such as Android), the render thread is the same as the main UI thread. The net result is that UI can be laggy and unresponsive while an EngineView is active (since the thread spends much of its time in a blocked state).
This ordering should be swapped. In the past, there were some problems with this, but maybe those issues have since been fixed.
To Reproduce
Profile while Babylon Native is rendering and observe that the render thread is in a blocked state for a significant amount of time during app execution.
Expected behavior
The render thread should be idle between frames and other work should be able to happen on the render thread.
Screenshots
I haven't profiled this in a while so I don't have screenshots or other evidence available.
Other
Platform: [Definitely Android, maybe other platforms too.]
The text was updated successfully, but these errors were encountered:
Describe the bug
The Start/Finish calls are in the wrong order, and this results in the render thread to be in a blocked state rather than an idle state between frames being rendered. This severely limits how much work can be done on the render thread when a frame is not being actively rendered. In some cases (such as Android), the render thread is the same as the main UI thread. The net result is that UI can be laggy and unresponsive while an EngineView is active (since the thread spends much of its time in a blocked state).
From BabylonNative.cpp:
This ordering should be swapped. In the past, there were some problems with this, but maybe those issues have since been fixed.
To Reproduce
Profile while Babylon Native is rendering and observe that the render thread is in a blocked state for a significant amount of time during app execution.
Expected behavior
The render thread should be idle between frames and other work should be able to happen on the render thread.
Screenshots
I haven't profiled this in a while so I don't have screenshots or other evidence available.
Other
The text was updated successfully, but these errors were encountered: