How do I reduce lag with a scene full of actors that need collision checking?

merrak

  • *
  • Posts: 2385
You're right, I just misread the screenshot. You can probably find some clever ways to segment the scene and reduce the number of actors to sort, but that, on top of optimizing the sort, seems like an unnecessary complication when you're code's speed is almost up to par.

Either make the sorting part of the routine more efficient, or find a way to segment the scene into smaller pieces and apply the original sorting routine on just that segment. Just one of those two optimizations should be good enough. You probably won't need to do both unless you hit another lag wall.

Fayabella

  • Posts: 163
Alright. Thank you for the amazing help!   :)