Browse Source

Release SECS 3.1

pull/57/head
sebas77 3 years ago
parent
commit
4e15fb1fc2
10 changed files with 15 additions and 55 deletions
  1. +1
    -1
      Svelto.Common
  2. +1
    -1
      Svelto.ECS/Extensions/Unity/DOTS/Jobs/DisposeJob.cs
  3. +5
    -2
      Svelto.ECS/Extensions/Unity/DOTS/Jobs/IJobifiedEngine.cs
  4. +1
    -1
      Svelto.ECS/Extensions/Unity/DOTS/Jobs/JobifiedEnginesGroup.cs
  5. +1
    -1
      Svelto.ECS/Extensions/Unity/DOTS/Jobs/SortedJobifiedEnginesGroup.cs
  6. +1
    -25
      Svelto.ECS/Extensions/Unity/DOTS/Jobs/UnityJobExtensions.cs
  7. +2
    -7
      Svelto.ECS/Svelto.ECS.asmdef
  8. +3
    -0
      Svelto.ECS/version.json
  9. +0
    -14
      package.json
  10. +0
    -3
      version.json

+ 1
- 1
Svelto.Common

@@ -1 +1 @@
Subproject commit d0e08231b4464226b04c81b6a9aaaf5250200e36
Subproject commit 3f4ca8771ed0698e9e573f97fdbf9cb00b4531d3

+ 1
- 1
Svelto.ECS/Extensions/Unity/DOTS/Jobs/DisposeJob.cs View File

@@ -1,4 +1,4 @@
#if UNITY_2019_2_OR_NEWER
#if UNITY_JOBS
using System;
using Unity.Jobs;



+ 5
- 2
Svelto.ECS/Extensions/Unity/DOTS/Jobs/IJobifiedEngine.cs View File

@@ -1,4 +1,5 @@
using Unity.Jobs;
#if UNITY_JOBS
using Unity.Jobs;

namespace Svelto.ECS.Extensions.Unity
{
@@ -15,4 +16,6 @@ namespace Svelto.ECS.Extensions.Unity

string name { get; }
}
}
}

#endif

+ 1
- 1
Svelto.ECS/Extensions/Unity/DOTS/Jobs/JobifiedEnginesGroup.cs View File

@@ -1,4 +1,4 @@
#if UNITY_2019_2_OR_NEWER
#if UNITY_JOBS
using Svelto.Common;
using Svelto.DataStructures;
using Unity.Jobs;


+ 1
- 1
Svelto.ECS/Extensions/Unity/DOTS/Jobs/SortedJobifiedEnginesGroup.cs View File

@@ -1,4 +1,4 @@
#if UNITY_2019_1_OR_NEWER
#if UNITY_JOBS
using Svelto.DataStructures;
using Unity.Jobs;
using Svelto.Common;


+ 1
- 25
Svelto.ECS/Extensions/Unity/DOTS/Jobs/UnityJobExtensions.cs View File

@@ -1,34 +1,10 @@
#if UNITY_NATIVE
#if UNITY_JOBS
using System;
using Svelto.ECS.Extensions.Unity;
using Unity.Jobs;

namespace Svelto.ECS
{
#if UNITY_JOBS
public static class UnityJobExtensions
{
public static JobHandle ScheduleParallel
<JOB>(this JOB job, uint iterations, JobHandle inputDeps) where JOB: struct, IJobParallelForBatch
{
if (iterations == 0)
return inputDeps;
var innerloopBatchCount = ProcessorCount.BatchSize((uint) iterations);
return job.ScheduleBatch((int)iterations, innerloopBatchCount, inputDeps);
}
public static JobHandle ScheduleParallel
<JOB>(this JOB job, int iterations, JobHandle inputDeps) where JOB: struct, IJobParallelForBatch
{
if (iterations <= 0)
return inputDeps;
var innerloopBatchCount = ProcessorCount.BatchSize((uint) iterations);
return job.ScheduleBatch((int)iterations, innerloopBatchCount, inputDeps);
}
}
#endif
public static class UnityJobExtensions2
{
public static JobHandle ScheduleDispose


+ 2
- 7
Svelto.ECS/Svelto.ECS.asmdef View File

@@ -49,14 +49,9 @@
"define": "UNITY_NATIVE"
},
{
"name": "com.unity.jobs",
"expression": "",
"name": "Unity",
"expression": "2019.3.0",
"define": "UNITY_JOBS"
},
{
"name": "com.unity.jobs",
"expression": "",
"define": "UNITY_NATIVE"
}
],
"noEngineReferences": false

+ 3
- 0
Svelto.ECS/version.json View File

@@ -0,0 +1,3 @@
{
"version": "3.1.0"
}

+ 0
- 14
package.json View File

@@ -1,14 +0,0 @@
{
"displayName": "Svelto ECS",
"category": "Svelto",
"description": "Svelto ECS C# Lightweight Data Oriented Entity Component System Framework",
"dependencies": {
"com.sebaslab.svelto.common": "3.0.2"
},
"keywords": [
"svelto"
],
"name": "com.sebaslab.svelto.ecs",
"version": "3.0.3",
"type": "framework"
}

+ 0
- 3
version.json View File

@@ -1,3 +0,0 @@
{
"version": "3.0.3"
}

Loading…
Cancel
Save