Lecs-swift-demo
A simple demo of using lecs-swift in an app
Apply random velocity changes to 7500 entities.
Apply random velocity changes to 10000 entities.
With this number of entities it's easiest to see the difference in timing between using only arrays and using lecs-swift. Arrays are about 40 microseconds faster than lecs-swift. That's not a bad price to pay for being able to select the arrays to process :smile:.
Instruments report for the time it took run the code surrounding the system used to process the arrays.
Instruments report for the time it took to run the code surrounding the system used to process the entities.
Author: prufrock
Source Code: https://github.com/prufrock/lecs-swift-demo
License: MIT license