mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-04-20 14:28:17 -04:00
All of these SceneCustomObjects should be safe to run on non-main thread
- TextRenderer.TextSceneObject — world text component - DebugTextureSceneObject — debug overlay textures - DebugTextSceneObject — debug overlay text - DebugSphereSceneObject — debug overlay spheres - SceneMapLoader.TextSceneObject — map world text entities - LPVDebugGridObject — light probe debug grid - ClutterBatchSceneObject — clutter instanced rendering These ones are not as simple: - ScenePanelObject - so much UI shit wasn't thread safe before, but should nwo be ... - GizmoInlineSceneObject - SpriteBatchSceneObject - lots of non concurrent dictionaries around here (needs a commandlist approach)
This commit is contained in:
@@ -31,7 +31,7 @@ file class DebugSphereSceneObject : SceneCustomObject
|
||||
|
||||
public DebugSphereSceneObject( SceneWorld sceneWorld ) : base( sceneWorld )
|
||||
{
|
||||
|
||||
managedNative.ExecuteOnMainThread = false;
|
||||
}
|
||||
|
||||
public override void RenderSceneObject()
|
||||
|
||||
Reference in New Issue
Block a user