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();
 | 
					            componentStore.ClearAll();
 | 
				
			||||||
            existingComponentStore.ClearAll();
 | 
					            existingComponentStore.ClearAll();
 | 
				
			||||||
            pendingComponentStore.ClearAll();
 | 
					            pendingComponentStore.ClearAll();
 | 
				
			||||||
            upToDateComponentStore.ClearAll();
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
            foreach (var dictionary in typeToEntityToPendingComponentPriority.Values)
 | 
					            foreach (var dictionary in typeToEntityToPendingComponentPriority.Values)
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1,5 +1,4 @@
 | 
				
			||||||
using System;
 | 
					using System;
 | 
				
			||||||
using System.Reflection;
 | 
					 | 
				
			||||||
using System.Collections.Generic;
 | 
					using System.Collections.Generic;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
namespace Encompass
 | 
					namespace Encompass
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -35,6 +35,9 @@ namespace Tests
 | 
				
			||||||
                world.Update(0.01f);
 | 
					                world.Update(0.01f);
 | 
				
			||||||
                world.Draw();
 | 
					                world.Draw();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                world.Update(0.01);
 | 
				
			||||||
 | 
					                world.Draw();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                Assert.That(result, Is.EqualTo((aComponent, entity)));
 | 
					                Assert.That(result, Is.EqualTo((aComponent, entity)));
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -55,7 +58,9 @@ namespace Tests
 | 
				
			||||||
                var world = worldBuilder.Build();
 | 
					                var world = worldBuilder.Build();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                world.Update(0.01f);
 | 
					                world.Update(0.01f);
 | 
				
			||||||
 | 
					                world.Draw();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					                world.Update(0.01f);
 | 
				
			||||||
                world.Draw();
 | 
					                world.Draw();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                Assert.That(result, Is.EqualTo((aComponent, entity)).Or.EqualTo((aComponentTwo, entityB)));
 | 
					                Assert.That(result, Is.EqualTo((aComponent, entity)).Or.EqualTo((aComponentTwo, entityB)));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue