Skip to content

Commit 86bad6d

Browse files
authored
Merge pull request #5467 from decentraland/hotfix/ab-system-ordering
hotfix: Asset Bundle System Ordering
2 parents 50efe8e + e35d2a1 commit 86bad6d

15 files changed

Lines changed: 36 additions & 32 deletions

Explorer/Assets/DCL/AvatarRendering/Wearables/Systems/Load/LoadWearablesByParamSystem.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@
1111
using DCL.Diagnostics;
1212
using DCL.WebRequests;
1313
using ECS;
14+
using ECS.Groups;
1415
using ECS.StreamableLoading.Cache;
1516
using System;
1617
using System.Collections.Generic;
1718

1819
namespace DCL.AvatarRendering.Wearables.Systems.Load
1920
{
20-
[UpdateInGroup(typeof(PresentationSystemGroup))]
21+
[UpdateInGroup(typeof(LoadGlobalSystemGroup))]
2122
[LogCategory(ReportCategory.WEARABLE)]
2223
public partial class LoadWearablesByParamSystem : LoadElementsByIntentionSystem<WearablesResponse, GetWearableByParamIntention, IWearable, WearableDTO>
2324
{

Explorer/Assets/DCL/AvatarRendering/Wearables/Systems/Load/LoadWearablesDTOByPointersSystem.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
using DCL.AvatarRendering.Wearables.Helpers;
88
using DCL.Diagnostics;
99
using DCL.WebRequests;
10+
using ECS.Groups;
1011
using ECS.StreamableLoading.Cache;
1112

1213
namespace DCL.AvatarRendering.Wearables.Systems.Load
1314
{
14-
[UpdateInGroup(typeof(PresentationSystemGroup))]
15+
[UpdateInGroup(typeof(LoadGlobalSystemGroup))]
1516
[LogCategory(ReportCategory.WEARABLE)]
1617
public partial class LoadWearablesDTOByPointersSystem : LoadElementsByPointersSystem<WearablesDTOList, GetWearableDTOByPointersIntention, WearableDTO>
1718
{

Explorer/Assets/DCL/ECS/GlobalPartitioning/GlobalDeferredLoadingSystem.cs

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,18 @@
55
using DCL.AvatarRendering.Wearables.Components;
66
using DCL.AvatarRendering.Wearables.Components.Intentions;
77
using DCL.AvatarRendering.Wearables.Helpers;
8-
using DCL.CharacterMotion.Components;
98
using DCL.Ipfs;
109
using DCL.Optimization.PerformanceBudgeting;
10+
using ECS.Groups;
1111
using ECS.SceneLifeCycle;
1212
using ECS.SceneLifeCycle.Components;
1313
using ECS.SceneLifeCycle.SceneDefinition;
14-
using ECS.SceneLifeCycle.Systems;
1514
using ECS.StreamableLoading.AssetBundles;
1615
using ECS.StreamableLoading.AudioClips;
1716
using ECS.StreamableLoading.DeferredLoading;
1817
using ECS.StreamableLoading.GLTF;
1918
using ECS.StreamableLoading.Textures;
2019
using SceneRunner.Scene;
21-
using UnityEngine;
22-
using LoadWearablesByParamSystem = DCL.AvatarRendering.Wearables.Systems.Load.LoadWearablesByParamSystem;
23-
using LoadWearablesDTOByPointersSystem = DCL.AvatarRendering.Wearables.Systems.Load.LoadWearablesDTOByPointersSystem;
2420

2521
namespace DCL.GlobalPartitioning
2622
{
@@ -29,13 +25,7 @@ namespace DCL.GlobalPartitioning
2925
/// </summary>
3026
[UpdateInGroup(typeof(PresentationSystemGroup))]
3127
[UpdateAfter(typeof(PrepareGlobalAssetBundleLoadingParametersSystem))]
32-
[UpdateBefore(typeof(LoadSceneDefinitionListSystem))]
33-
[UpdateBefore(typeof(LoadSceneSystem))]
34-
[UpdateBefore(typeof(LoadSceneDefinitionSystem))]
35-
[UpdateBefore(typeof(LoadAssetBundleManifestSystem))]
36-
[UpdateBefore(typeof(LoadGlobalAssetBundleSystem))]
37-
[UpdateBefore(typeof(LoadWearablesDTOByPointersSystem))]
38-
[UpdateBefore(typeof(LoadWearablesByParamSystem))]
28+
[UpdateBefore(typeof(LoadGlobalSystemGroup))]
3929
public partial class GlobalDeferredLoadingSystem : DeferredLoadingSystem
4030
{
4131
private static readonly QueryDescription[] COMPONENT_HANDLERS_SCENES_ASSETS;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using Arch.SystemGroups;
2+
using Arch.SystemGroups.DefaultSystemGroups;
3+
4+
namespace ECS.Groups
5+
{
6+
[UpdateInGroup(typeof(PresentationSystemGroup))]
7+
public partial class LoadGlobalSystemGroup { }
8+
}

Explorer/Assets/DCL/Infrastructure/ECS/Groups/LoadGlobalSystemGroup.cs.meta

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Explorer/Assets/DCL/Infrastructure/ECS/SceneLifeCycle/Debug/Systems/AbortSceneLoadingDebugSystem.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,17 @@
66
using DCL.DebugUtilities.UIBindings;
77
using DCL.Diagnostics;
88
using ECS.Abstract;
9+
using ECS.Groups;
910
using ECS.SceneLifeCycle.Components;
10-
using ECS.SceneLifeCycle.Systems;
1111
using ECS.StreamableLoading.Common.Components;
1212
using SceneRunner.Scene;
1313
using System;
14-
using System.Linq;
1514
using UnityEngine;
1615

1716
namespace ECS.SceneLifeCycle.Debug
1817
{
1918
[UpdateInGroup(typeof(PresentationSystemGroup))]
20-
[UpdateBefore(typeof(LoadSceneSystem))]
19+
[UpdateBefore(typeof(LoadGlobalSystemGroup))]
2120
[LogCategory(ReportCategory.DEBUG)]
2221
public partial class AbortSceneLoadingDebugSystem : BaseUnityLoopSystem
2322
{

Explorer/Assets/DCL/Infrastructure/ECS/SceneLifeCycle/SceneDefinition/Systems/LoadSceneDefinitionListSystem.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using DCL.Ipfs;
88
using DCL.Utilities;
99
using DCL.WebRequests;
10+
using ECS.Groups;
1011
using ECS.Prioritization.Components;
1112
using ECS.StreamableLoading.AssetBundles;
1213
using ECS.StreamableLoading.Cache;
@@ -31,7 +32,7 @@ namespace ECS.SceneLifeCycle.SceneDefinition
3132
/// <summary>
3233
/// Loads a scene list originated from pointers
3334
/// </summary>
34-
[UpdateInGroup(typeof(PresentationSystemGroup))]
35+
[UpdateInGroup(typeof(LoadGlobalSystemGroup))]
3536
[LogCategory(ReportCategory.SCENE_LOADING)]
3637
public partial class LoadSceneDefinitionListSystem : LoadSystemBase<SceneDefinitions, GetSceneDefinitionList>
3738
{

Explorer/Assets/DCL/Infrastructure/ECS/SceneLifeCycle/SceneDefinition/Systems/LoadSceneDefinitionSystem.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using DCL.Diagnostics;
77
using DCL.Ipfs;
88
using DCL.WebRequests;
9+
using ECS.Groups;
910
using ECS.Prioritization.Components;
1011
using ECS.StreamableLoading.AssetBundles;
1112
using ECS.StreamableLoading.Cache;
@@ -18,7 +19,7 @@ namespace ECS.SceneLifeCycle.SceneDefinition
1819
/// <summary>
1920
/// Loads a single scene definition from URN
2021
/// </summary>
21-
[UpdateInGroup(typeof(PresentationSystemGroup))]
22+
[UpdateInGroup(typeof(LoadGlobalSystemGroup))]
2223
[LogCategory(ReportCategory.SCENE_LOADING)]
2324
public partial class LoadSceneDefinitionSystem : LoadSystemBase<SceneEntityDefinition, GetSceneDefinition>
2425
{

Explorer/Assets/DCL/Infrastructure/ECS/SceneLifeCycle/SceneFacade/Systems/LoadSceneSystem.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using Cysharp.Threading.Tasks;
55
using DCL.Diagnostics;
66
using DCL.Optimization.PerformanceBudgeting;
7+
using ECS.Groups;
78
using ECS.Prioritization.Components;
89
using ECS.SceneLifeCycle.Components;
910
using ECS.StreamableLoading.Cache;
@@ -18,7 +19,7 @@ namespace ECS.SceneLifeCycle.Systems
1819
/// <summary>
1920
/// Loads a scene from scene and realm definitions
2021
/// </summary>
21-
[UpdateInGroup(typeof(PresentationSystemGroup))]
22+
[UpdateInGroup(typeof(LoadGlobalSystemGroup))]
2223
[LogCategory(ReportCategory.SCENE_LOADING)]
2324
public partial class LoadSceneSystem : LoadSystemBase<ISceneFacade, GetSceneFacadeIntention>
2425
{

Explorer/Assets/DCL/Infrastructure/ECS/StreamableLoading/AssetBundles/LoadAssetBundleManifestSystem.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
using DCL.Optimization.Pools;
77
using DCL.Platforms;
88
using DCL.WebRequests;
9+
using ECS.Groups;
910
using ECS.Prioritization.Components;
1011
using ECS.StreamableLoading.Cache;
1112
using ECS.StreamableLoading.Common.Components;
@@ -18,7 +19,7 @@
1819

1920
namespace ECS.StreamableLoading.AssetBundles
2021
{
21-
[UpdateInGroup(typeof(StreamableLoadingGroup))]
22+
[UpdateInGroup(typeof(LoadGlobalSystemGroup))]
2223
[LogCategory(ReportCategory.ASSET_BUNDLES)]
2324
public partial class LoadAssetBundleManifestSystem : LoadSystemBase<SceneAssetBundleManifest, GetAssetBundleManifestIntention>
2425
{

0 commit comments

Comments
 (0)