forked from Misaki/GhostEngine
Refactor component registration, update deps, improve JSON
- Updated Misaki.HighPerformance package versions in Core and Graphics projects. - Added IsTrimmable to Ghost.Engine.csproj for trimming support. - Renamed GetOrRegisterComponent to GetOrRegisterComponentID and updated all usages. - Component registration codegen now uses a static class with [ModuleInitializer], no longer requires [EngineEntry]. - Improved JSON serialization: added string support, introduced Utf8JsonObjectScope/ArrayScope, and new extension methods for cleaner JSON writing. - Removed [SkipLocalsInit] from Hierarchy and LocalToWorld. - Fixed Entity.Invalid to use INVALID_ID for both fields. - Minor cleanup: clarified comments, reorganized Ghost.Generator in solution, and disabled component serialization generator.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
using Ghost.Graphics.D3D12;
|
||||
using Ghost.Graphics.RHI;
|
||||
|
||||
namespace Ghost.Graphics;
|
||||
@@ -210,17 +209,17 @@ internal class RenderSystem : IRenderSystem
|
||||
if (waitResult == 0)
|
||||
{
|
||||
_graphicsEngine.RenderFrame();
|
||||
// if (result.IsFailure)
|
||||
// {
|
||||
// // Terminate the render loop on failure
|
||||
// _isRunning = false;
|
||||
//#if DEBUG
|
||||
// throw new InvalidOperationException($"RenderFrame failed: {result.Message}");
|
||||
//#else
|
||||
// Logger.LogError($"RenderFrame failed: {result.Message}");
|
||||
// break;
|
||||
//#endif
|
||||
// }
|
||||
// if (result.IsFailure)
|
||||
// {
|
||||
// // Terminate the render loop on failure
|
||||
// _isRunning = false;
|
||||
//#if DEBUG
|
||||
// throw new InvalidOperationException($"RenderFrame failed: {result.Message}");
|
||||
//#else
|
||||
// Logger.LogError($"RenderFrame failed: {result.Message}");
|
||||
// break;
|
||||
//#endif
|
||||
// }
|
||||
|
||||
_gpuFenceValue++;
|
||||
frameResource.gpuReadyEvent.Set();
|
||||
|
||||
Reference in New Issue
Block a user