I would suggest to use Zeriab's anti lag script. It's really powerfull and boosted my game's performance by an insane amount. Even my 600x600 map with around 10.000 events doesn't cause any lag.
https://www.save-point.org/thread-2483.h...s+anti+lag
https://www.save-point.org/thread-2483.h...s+anti+lag