Optimisation, GPU visualizer help

I’m trying to optimise the game but I can’t figure out what’s slowing it down. So to start with, the profiler claims a frame takes 5ms to render, which would be 177fps, but the editor actually takes 38ms. When I play the game standalone (outside of the editor) it’s about twice as fast, giving me ~50 fps. How can the number be so low in the profiler but then in reality be so bad?

Thanks for any help!

Btw, the CPU (game) is much lower in the editor, so that shouldn’t be slowing things down:

You’re CPU-bound. Rendering takes 5ms on GPU but then it waits >30ms for CPU to complete the frame. Profile CPU instead.