Megafunk / MassSample

My understanding of Unreal Engine 5's experimental ECS plugin with a small sample project.
MIT License
681 stars 112 forks source link

ExecuteBefore and ExecuteAfter #46

Closed LukasFratzl closed 1 year ago

LukasFratzl commented 1 year ago

Hey, I try to get 3 Processors Update in Order

When I add ExecutionOrder.ExecuteAfter.Add( FName("PreviousProcessorName") ); in the 2nd and 3rd Processor, I'm getting a strange order where Processor 1 always updates at last, like this:

LogTemp: Warning: 2
LogTemp: Warning: 3
LogTemp: Warning: 1
LogTemp: Warning: -> END OF FRAME
LogTemp: Warning: 2
LogTemp: Warning: 3
LogTemp: Warning: 1
LogTemp: Warning: -> END OF FRAME

What's the best way to handle this case, would be great to explain this in the Docs or in this Issue I'm having to give other people the info :D

LukasFratzl commented 1 year ago

EDIT: It was a Caching error of the Compiler xP

Deleating the binaries and rebuilding the project solved it.

LogTemp: Warning: 1
LogTemp: Warning: 2
LogTemp: Warning: 3
LogTemp: Warning: -> END OF POST PHYSICS
LogTemp: Warning: -> END OF FRAME
LogTemp: Warning: 1
LogTemp: Warning: 2
LogTemp: Warning: 3
LogTemp: Warning: -> END OF POST PHYSICS
LogTemp: Warning: -> END OF FRAME