Author Topic: Lag Problems with Collisions  (Read 4365 times)

0 Members and 1 Guest are viewing this topic.

Offline The VFX Wizard

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 9
  • Rating: +0/-0
    • View Profile
Lag Problems with Collisions
« on: March 22, 2018, 09:04:24 am »
I have been re-creating Space Invaders in Axe and it was going smoothly until I ran into some lag problems. Every enemy has to check for a collision with each bullet and the player every tick. When I added player collision the whole game started going extremely slow. Is there an optimization trick I'm missing? Thanks.
5 Things I hate the most: lists, irony, lists, repitition, typos, and the Oxford comma

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Lag Problems with Collisions
« Reply #1 on: March 22, 2018, 09:20:50 am »
Could you post the code you are currently using?
In assembly, I would draw to a "collision buffer" and test with that, but I don't think that is efficient in Axe code.