fix issue where components would not be readable by renderers if they were not updated the previous frame

pull/5/head
Evan Hemsley 2019-12-05 17:50:05 -08:00
parent 8a676b3e4b
commit ec191c69d8
3 changed files with 5 additions and 2 deletions

View File

@ -22,7 +22,6 @@ namespace Encompass
componentStore.ClearAll();
existingComponentStore.ClearAll();
pendingComponentStore.ClearAll();
upToDateComponentStore.ClearAll();
foreach (var dictionary in typeToEntityToPendingComponentPriority.Values)
{

View File

@ -1,5 +1,4 @@
using System;
using System.Reflection;
using System.Collections.Generic;
namespace Encompass

View File

@ -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)));