This commit is contained in:
DCFApixels 2025-02-28 15:11:34 +08:00
parent 96bfd2b833
commit bc8f2cedf1

View File

@ -103,11 +103,11 @@ namespace DCFApixels
system.updateDelegate -= PreRenderCallback; system.updateDelegate -= PreRenderCallback;
system.updateDelegate += PreRenderCallback; system.updateDelegate += PreRenderCallback;
} }
if (system.type == typeof(TriggerEndOfFrameCallbacks)) //if (system.type == typeof(TriggerEndOfFrameCallbacks))
{ //{
system.updateDelegate -= OnTriggerEndOfFrameCallbacks; // system.updateDelegate -= OnTriggerEndOfFrameCallbacks;
system.updateDelegate += OnTriggerEndOfFrameCallbacks; // system.updateDelegate += OnTriggerEndOfFrameCallbacks;
} //}
} }
curentLoop.subSystemList = systemsList; curentLoop.subSystemList = systemsList;
PlayerLoop.SetPlayerLoop(curentLoop); PlayerLoop.SetPlayerLoop(curentLoop);
@ -275,10 +275,6 @@ namespace DCFApixels
} }
private static void PreRenderCallback() private static void PreRenderCallback()
{ {
foreach (var item in RenderContextController.AllConteollers)
{
item.RunEnd();
}
RenderContextController.ClearCommandBuffers(); RenderContextController.ClearCommandBuffers();
SetCameraContext(); SetCameraContext();
_currentCamera = null; _currentCamera = null;
@ -310,11 +306,8 @@ namespace DCFApixels
RenderContextController.StaicContextController.Render(cbExecutor); RenderContextController.StaicContextController.Render(cbExecutor);
cbExecutor.Submit(); cbExecutor.Submit();
RenderContextController.StaicContextController.PostRender(); RenderContextController.StaicContextController.PostRender();
if (IsSRP)
{
RenderContextController.StaicContextController.RunEnd(); RenderContextController.StaicContextController.RunEnd();
} }
}
if (camera == null) { return; } if (camera == null) { return; }
_currentCamera = camera; _currentCamera = camera;
@ -323,11 +316,8 @@ namespace DCFApixels
contextController.Render(cbExecutor); contextController.Render(cbExecutor);
cbExecutor.Submit(); cbExecutor.Submit();
contextController.PostRender(); contextController.PostRender();
if (IsSRP)
{
contextController.RunEnd(); contextController.RunEnd();
} }
}
#endregion #endregion