ScanuNicco / Boat-Race

A boat racing game
0 stars 0 forks source link

Collision is slow when near collidable objects #9

Closed zorbulator closed 5 years ago

zorbulator commented 5 years ago

The fps is REALLLY bad when near any objects set to collide. The good way to fix this would be to simplify geometry with hitboxes but if that doesn't work me might need to use a coordinate-based system that would be a pain to use and wouldn't work as well.

To reproduce:

  1. Use a version of the game where collision on the bridges is enabled
  2. Go near the bridges
  3. Go away from the bridges
  4. Note the difference in framerate (you won't need a framerate counter, it is obvious)
ScanuNicco commented 5 years ago

I am pretty sure the hitbox fixed this