Files
UnrealEngineUWP/Engine/Source/Runtime/VectorVM
mihnea balta 6c7931e56b Fixed stale entries in the ID to index buffers for CPU emitters.
The code used to update the output ID to index table, but that left stale entries in the input buffer set. When particles died, one of the buffers had -1 for the dead IDs, but the other still had the old execution indexes. This could lead to direct reads returning bogus data, instead of reporting that the ID is no longer in use. The solution is to clear the ID table at the beginning of the tick, and let the UpdateID() function fill in the IDs which are still in use.

This problem didn't occur on GPU, where the tables were already being cleared.

#rb none


#ROBOMERGE-SOURCE: CL 11292467 via CL 11292468
#ROBOMERGE-BOT: (v647-11244347)

[CL 11293007 by mihnea balta in Main branch]
2020-02-07 13:07:57 -05:00
..
2020-01-29 15:31:45 -05:00