Closed skal65535 closed 1 year ago
First, update the velocity with fixed position. Second, finalize the positions.
This produces different pattern than updating both velocity/position in random order within the same loop.
Not sure which ones are more interesting, but this version seems more correct. But we could keep both variant and make it a param, too...
Small FPS drop here on Mac M1 (51FPS -> 47FPS), because of cache locality i guess.
First, update the velocity with fixed position. Second, finalize the positions.
This produces different pattern than updating both velocity/position in random order within the same loop.
Not sure which ones are more interesting, but this version seems more correct. But we could keep both variant and make it a param, too...
Small FPS drop here on Mac M1 (51FPS -> 47FPS), because of cache locality i guess.