A simple demo of using lecs-swift in an app

lecs-swift-demo

A simple demo of using lecs-swift in an app

7500 entities at 60 fps

Apply random velocity changes to 7500 entities.

10,000 entities at 50 fps(need to optimize render pipeline)

Apply random velocity changes to 10000 entities.

200 entities at 60fps

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 ?.

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.

GitHub

View Github