Start by logging the runtime of different sections of your loop. Frame rate drops happen if you're doing too much per frame. Move non-essential stuff to like, a separate thread or cut down on what you're calculating every tick. If you're using physics, make sure you're not recalculating stuff that …