ID:2756497
 
mob/Move(NEWLOC)
if(NEWLOC)
for(var/o in NEWLOC:contents)
if(o:density){Bump(o);return FALSE}
loc = NEWLOC
return TRUE
return ..()


Using this skips the overhead called from Moving on the map. Decreased CPU usage by 50%, had 5000 mobs all moving at 25% cpu, while using the default Move() used 50% cpu moving each tick at 60fps

Depending on the project and what you're trying to achieve this could help.

It's tile-based btw :P


12491 mobs all moving at once, no slow-down visible in-game even tho CPU usage says 106%