Skip to content

Commit 0a36221

Browse files
committed
reset unwanted file commit
1 parent f91237d commit 0a36221

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples/src/main/java/com/github/elebras1/flecs/examples/BulkExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public static void main(String[] args) {
2020

2121
long startCreate = System.nanoTime();
2222

23-
for (int i = 0; i < totalEntities; i++) {
24-
long entityId = world.entity();
23+
EcsLongList entityIds = world.entityBulk(totalEntities);
24+
for (long entityId : entityIds) {
2525
Entity entity = world.obtainEntity(entityId);
2626
entity.set(new Position(entityId % 100, entityId % 100));
2727
entity.set(new Velocity(1, 1));

0 commit comments

Comments
 (0)