|
|
|
|
|
by mojuba
2167 days ago
|
|
Interesting. Something suggests a loop that does entities.forEach { $0.think(delta_t) }
is essentially cooperative multitasking, whose efficiency is questionable in general and especially on multicore hardware - but I don't know about games. Let alone programming think(delta_t) adds complexity and introduces more states within each entity, compared to real threads with their own stacks. |
|