fix issue where components would not be readable by renderers if they were not updated the previous frame
parent
8a676b3e4b
commit
ec191c69d8
|
@ -22,7 +22,6 @@ namespace Encompass
|
|||
componentStore.ClearAll();
|
||||
existingComponentStore.ClearAll();
|
||||
pendingComponentStore.ClearAll();
|
||||
upToDateComponentStore.ClearAll();
|
||||
|
||||
foreach (var dictionary in typeToEntityToPendingComponentPriority.Values)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Reflection;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Encompass
|
||||
|
|
|
@ -35,6 +35,9 @@ namespace Tests
|
|||
world.Update(0.01f);
|
||||
world.Draw();
|
||||
|
||||
world.Update(0.01);
|
||||
world.Draw();
|
||||
|
||||
Assert.That(result, Is.EqualTo((aComponent, entity)));
|
||||
}
|
||||
|
||||
|
@ -55,7 +58,9 @@ namespace Tests
|
|||
var world = worldBuilder.Build();
|
||||
|
||||
world.Update(0.01f);
|
||||
world.Draw();
|
||||
|
||||
world.Update(0.01f);
|
||||
world.Draw();
|
||||
|
||||
Assert.That(result, Is.EqualTo((aComponent, entity)).Or.EqualTo((aComponentTwo, entityB)));
|
||||
|
|
Loading…
Reference in New Issue