Fix error
This commit is contained in:
@@ -8,47 +8,26 @@ internal class EngineEntryAttribute : Attribute
|
||||
{
|
||||
}
|
||||
|
||||
internal partial class EngineCoreImpl : IDisposable
|
||||
[EngineEntry]
|
||||
public partial class EngineCore
|
||||
{
|
||||
internal readonly JobScheduler _jobScheduler;
|
||||
private readonly JobScheduler _jobScheduler;
|
||||
|
||||
internal EngineCoreImpl()
|
||||
public JobScheduler JobScheduler => _jobScheduler;
|
||||
|
||||
internal EngineCore()
|
||||
{
|
||||
_jobScheduler = new JobScheduler(Environment.ProcessorCount - 2); // We -2 here, one for main thread, one for render thread
|
||||
}
|
||||
|
||||
internal void IncrementCPUFenceValue()
|
||||
{
|
||||
//GraphicsPipeline.SignalCPUReady();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
_jobScheduler.Dispose();
|
||||
JobScheduler.ReleaseTempAllocator();
|
||||
}
|
||||
}
|
||||
|
||||
[EngineEntry]
|
||||
public static partial class EngineCore
|
||||
{
|
||||
internal static readonly EngineCoreImpl s_impl;
|
||||
|
||||
public static JobScheduler JobScheduler => s_impl._jobScheduler;
|
||||
|
||||
static EngineCore()
|
||||
{
|
||||
s_impl = new EngineCoreImpl();
|
||||
|
||||
ComponentRegistry.GetOrRegisterComponentID<ManagedEntityRef>();
|
||||
}
|
||||
|
||||
internal static void Init()
|
||||
internal void Init()
|
||||
{
|
||||
}
|
||||
|
||||
internal static void Dispose()
|
||||
internal void Dispose()
|
||||
{
|
||||
s_impl.Dispose();
|
||||
_jobScheduler.Dispose();
|
||||
}
|
||||
}
|
||||
@@ -17,6 +17,12 @@
|
||||
<IsTrimmable>True</IsTrimmable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Remove="Services\**" />
|
||||
<EmbeddedResource Remove="Services\**" />
|
||||
<None Remove="Services\**" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Ghost.Core\Ghost.Core.csproj" />
|
||||
<ProjectReference Include="..\Ghost.Entities\Ghost.Entities.csproj" />
|
||||
@@ -24,10 +30,6 @@
|
||||
<ProjectReference Include="..\Ghost.Graphics\Ghost.Graphics.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Services\" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="MemoryPack" Version="1.21.4" />
|
||||
</ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user