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