ForumsProgramming Forum[LAG] 10 Enemies Collisions with 33 Blocks

6 5929
Solenix
offline
Solenix
6 posts
Nomad

I'm making a room with 10 enemies. The room consists of 33 blocks. I'm checking every block for every enemy on a single enterframe. That's 10 x 33 = 330 collisions being checked in one enterframe.

This causes a lot of frame lag!

What are some good alternate methods to handle this and make it not laggy?

  • 6 Replies
Showing 91-90 of 6