Skip to content

Commit 1338e2f

Browse files
committed
Optimize to prevent unnecessarily redundant writes over the IPC service.
1 parent eca5359 commit 1338e2f

3 files changed

Lines changed: 246 additions & 179 deletions

File tree

DataProviderService/DataProviderService.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,7 @@ private List<StarSystem> DeserializeSqlStarSystems ( List<DatabaseStarSystem> db
390390

391391
return results;
392392

393-
394-
bool HasKeyFields ( DatabaseStarSystem dbStarSystem )
393+
static bool HasKeyFields ( DatabaseStarSystem dbStarSystem )
395394
{
396395
return dbStarSystem.systemAddress > 0 &&
397396
dbStarSystem.x != null &&

Tests/VoiceAttackPluginTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ public void Start()
280280
MakeSafe();
281281
ResetVaProxy();
282282
_runtimeEvents.Clear();
283+
VoiceAttackVariables.ClearDispatchCache();
283284
_runtimeEventDispatcherRegistration = RuntimeEventDispatcher.RegisterDispatcher( ( eventData, _ ) =>
284285
{
285286
_runtimeEvents.Add( eventData );

0 commit comments

Comments
 (0)