Move remaining SceneObjects off mainthread (#4745)

* Add CommandList.SetBufferData

* SpriteBatchSceneObject use CommandLists + make thread safe

* Make ScenePanelObject threadsafe

* SceneObjects ExecuteOffTheMainThread by default

* Remove ExecuteOnMainThread = false, assignments since it's now default

* Add Data4 entry to CommandLists allows us to store matrix

* Migrate TextRendering to CommandList

* Migrate Gizmos to CommandList

* Migrate LineRendering to CommandList

* ScenePanel uses CommandList

* Clutter uses commandlist

* Debug SceneObjects use commandlist

* Use CommandList.SetBufferData for sprites and lines

* Fix SceneLineObject using wrong attribtutes to draw
This commit is contained in:
Lorenz Junglas
2026-05-04 18:47:12 +01:00
committed by GitHub
parent 482814e78b
commit 972aa9210b
22 changed files with 398 additions and 276 deletions

View File

@@ -31,7 +31,6 @@ file class DebugSphereSceneObject : SceneCustomObject
public DebugSphereSceneObject( SceneWorld sceneWorld ) : base( sceneWorld )
{
managedNative.ExecuteOnMainThread = false;
}
public override void RenderSceneObject()