Skip to content

Perf/schedulable service object array#70

Merged
bm01 merged 7 commits intoOpenDAoC:masterfrom
bm01:perf/schedulable-service-object-array
Mar 18, 2026
Merged

Perf/schedulable service object array#70
bm01 merged 7 commits intoOpenDAoC:masterfrom
bm01:perf/schedulable-service-object-array

Conversation

@bm01
Copy link
Copy Markdown
Member

@bm01 bm01 commented Mar 18, 2026

No description provided.

bm01 added 7 commits March 18, 2026 11:18
Takes an array of start indices, and processes lists of lists as if they were a single contiguous list.
Changed method signatures to take IReadOnlyList to allow arrays and make it clearer that they aren't modified. I would have preferred ReadOnlySpan but it isn't compatible with WorkProcessor.
Changed signature of ExecuteForEach to take IReadOnlyList.
* See comment in ServiceObjectStore.
* Changed how items are returned. UpdateAndGetAll is now UpdateAndGetView and returns a ServiceObjectView. This readonly struct is a bridge between the two fundamentally different ShardedServiceObjectArray and ServiceObjectArray. The ExecuteForEach helper method dispatches to the correct one in GameLoop.
* Updated ABrain to replace ServiceObjectId.IsPendingRemoval usage.
* Updated GameNPC to replace ServiceObjectId.IsSet usage.
* Updated every game loop service to accomodate for this change (keeping track oflastValidIndex for example is no longer needed).
* Added Schedule.
* Made NextThinkTick setter private.
* Updated StandardMobBrain, CrowdControlECSEffect, NpcService, StandardMobState_IDLE to call Schedule.
* Updated ServiceObjectStore to process ABrain type via ShardedServiceObjectArray.
* Updated ServiceObjectStore to process ECSGameTimer type via ShardedServiceObjectArray.
* Added GetNextTick.
* Updated ECSGameAbilityEffect and ECSGameSpellEffect to override GetNextTick.
* Updated EffectService and EffectListComponent to call Schedule.
* Updated ServiceObjectStore to process ECSGameEffect type via ShardedServiceObjectArray.
@bm01 bm01 merged commit a8c06b0 into OpenDAoC:master Mar 18, 2026
1 check passed
@bm01 bm01 deleted the perf/schedulable-service-object-array branch March 18, 2026 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant