We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f91237d commit 0a36221Copy full SHA for 0a36221
1 file changed
examples/src/main/java/com/github/elebras1/flecs/examples/BulkExample.java
@@ -20,8 +20,8 @@ public static void main(String[] args) {
20
21
long startCreate = System.nanoTime();
22
23
- for (int i = 0; i < totalEntities; i++) {
24
- long entityId = world.entity();
+ EcsLongList entityIds = world.entityBulk(totalEntities);
+ for (long entityId : entityIds) {
25
Entity entity = world.obtainEntity(entityId);
26
entity.set(new Position(entityId % 100, entityId % 100));
27
entity.set(new Velocity(1, 1));
0 commit comments