Skip to content

Commit

Permalink
Version 0.11.2 Release [Bugfix]
Browse files Browse the repository at this point in the history
Bugfix release
  • Loading branch information
Dreaming381 committed Oct 13, 2024
1 parent b34647b commit da9372e
Show file tree
Hide file tree
Showing 8 changed files with 75 additions and 16 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ You can find changelogs for the individual modules in the [official Latios
Framework Documentation
repository](https://github.com/Dreaming381/Latios-Framework-Documentation).

## [0.11.2] – 2024-10-13

Officially supports Entities [1.3.2]

### Changed

- Updated Kinemation to v0.11.2

## [0.11.1] – 2024-10-5

Officially supports Entities [1.3.2]
Expand Down
4 changes: 2 additions & 2 deletions Kinemation/Systems/Culling/CopyDeformWithCullingSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public void OnUpdate(ref SystemState state)
var skinCopier = new SkinCopier
{
#if !UNITY_6000_0_OR_NEWER
deformClassificationMap = latiosWorld.worldBlackboardEntity.GetCollectionComponent<DeformClassificationMap>().deformClassificationMap,
deformClassificationMap = latiosWorld.worldBlackboardEntity.GetCollectionComponent<DeformClassificationMap>(true).deformClassificationMap,
materialMaskHandle = GetComponentTypeHandle<ChunkMaterialPropertyDirtyMask>(false),
materialPropertyTypeLookup = GetBufferLookup<MaterialPropertyComponentType>(true),
worldBlackboardEntity = latiosWorld.worldBlackboardEntity,
Expand Down Expand Up @@ -352,7 +352,7 @@ public void OnUpdate(ref SystemState state)

var skinCopier = new SkinCopier
{
deformClassificationMap = latiosWorld.worldBlackboardEntity.GetCollectionComponent<DeformClassificationMap>().deformClassificationMap,
deformClassificationMap = latiosWorld.worldBlackboardEntity.GetCollectionComponent<DeformClassificationMap>(true).deformClassificationMap,
materialMaskHandle = GetComponentTypeHandle<ChunkMaterialPropertyDirtyMask>(false),
materialPropertyTypeLookup = GetBufferLookup<MaterialPropertyComponentType>(true),
worldBlackboardEntity = latiosWorld.worldBlackboardEntity,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ public void OnUpdate(ref SystemState state)
ComponentType.ReadWrite<LocalTransform>(),
ComponentType.ReadWrite<ParentToWorldTransform>()));
#elif !LATIOS_TRANSFORMS_UNCACHED_QVVS && LATIOS_TRANSFORMS_UNITY
state.EntityManager.RemoveComponent<CopyLocalToParentFromBone>(m_newMeshesQuery);
state.EntityManager.RemoveComponent<CopyLocalToParentFromBone>(m_newSkinnedMeshesQuery);
#endif
var skinnedMeshAddTypes = new FixedList128Bytes<ComponentType>();
skinnedMeshAddTypes.Add(ComponentType.ReadWrite<BoundMesh>());
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
using Latios.Transforms.Systems;
using Unity.Burst;
using Unity.Entities;

namespace Latios.Kinemation.Systems
{
[RequireMatchingQueriesForUpdate]
[WorldSystemFilter(WorldSystemFilterFlags.Default | WorldSystemFilterFlags.Editor)]
[UpdateInGroup(typeof(PreTransformSuperSystem))]
[UpdateBefore(typeof(CopyTransformFromBoneSystem))]
[DisableAutoCreation]
[BurstCompile]
public partial struct ForceInitializeUninitializedOptimizedSkeletonsSystem : ISystem
{
EntityQuery m_query;

[BurstCompile]
public void OnCreate(ref SystemState state)
{
m_query = state.Fluent().WithAspect<OptimizedSkeletonAspect>().Without<OptimizedSkeletonTag>().Build();
}

[BurstCompile]
public void OnUpdate(ref SystemState state)
{
state.Dependency = new Job().ScheduleParallel(m_query, state.Dependency);
}

[BurstCompile]
partial struct Job : IJobEntity
{
public void Execute(OptimizedSkeletonAspect skeleton)
{
skeleton.ForceInitialize();
}
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 12 additions & 11 deletions Kinemation/Utilities/KinemationBootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,18 +41,19 @@ public static void InstallKinemation(World world)
if (unityUpdateBounds != null)
unityUpdateBounds.Enabled = false;

BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<UpdateGraphicsBufferBrokerSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<KinemationRenderUpdateSuperSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<KinemationRenderSyncPointSuperSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<KinemationFrameSyncPointSuperSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<LatiosEntitiesGraphicsSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<KinemationPostRenderSuperSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<LatiosUpdateEntitiesGraphicsChunkStructureSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<LatiosLightProbeUpdateSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<UpdateGraphicsBufferBrokerSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<KinemationRenderUpdateSuperSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<KinemationRenderSyncPointSuperSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<KinemationFrameSyncPointSuperSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<LatiosEntitiesGraphicsSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<KinemationPostRenderSuperSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<LatiosUpdateEntitiesGraphicsChunkStructureSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<LatiosLightProbeUpdateSystem>(), world);

BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<CopyTransformFromBoneSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<RotateAnimatedBuffersSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<UpdateMatrixPreviousSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<ForceInitializeUninitializedOptimizedSkeletonsSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<CopyTransformFromBoneSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<RotateAnimatedBuffersSystem>(), world);
BootstrapTools.InjectSystem(TypeManager.GetSystemTypeIndex<UpdateMatrixPreviousSystem>(), world);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![](https://github.com/Dreaming381/Latios-Framework-Documentation/blob/554a583e217bfe5bf38ece0ed65b22c33711afc6/media/bf2cb606139bb3ca01fe1c4c9f92cdf7.png)

# Latios Framework for Unity ECS – [0.11.1]
# Latios Framework for Unity ECS – [0.11.2]

The Latios Framework is a powerful suite of high-performance low-level APIs and
feature-sets for Unity’s ECS which aims to give you back control over your
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.latios.latiosframework",
"displayName": "Latios Framework for ECS",
"version": "0.11.1",
"version": "0.11.2",
"unity": "2022.3",
"description": "Latios Framework for ECS is a collection of tools, algorithms, and API extensions developed by a hardcore hobbyist game developer.\n\nThis package includes all of the following modules:\n\u25aa Core\n\u25aa QVVS Transforms\n\u25aa Psyshock Physics\n\u25aa Myri Audio\n\u25aa Kinemation Animation and Rendering\n\u25aa Caligraphics\n\u25aa Mimic\n\nExamples: \n\u25aa Latios Space Shooter Sample - https://github.com/Dreaming381/lsss-wip \n\u25aa Mini Demos - https://github.com/Dreaming381/LatiosFrameworkMiniDemos \n\u25aa Free Parking - https://github.com/Dreaming381/Free-Parking",
"documentationURL": "https://github.com/Dreaming381/Latios-Framework-Documentation",
Expand Down

0 comments on commit da9372e

Please sign in to comment.