davidyu / Sonar

Networked multiplayer SHMUP-lite
http://lewenyu.com/sonar
MIT License
0 stars 0 forks source link

Systems process a set amount of sonars at any given time #21

Open davidyu opened 10 years ago

davidyu commented 10 years ago

When I spam sonars, older sonars stop being processed altogether. On first glance, this indicates to me that there is an artificial limit on the number of entities that can be processed by a system. This is potentially an artemis issue that should be addressed.

image

davidyu commented 10 years ago

This is due to tiny traces being created and destroyed all the time. Most CPU time is spent doing collision detection (so that should be made much faster) and garbage collection (so we need to reuse traces as much as possible).