If you include default.c, then you can press F11 and a Panel show you what make your fps down. It shows up the time that different things need (Functions, Entities, Panels, Particle, Script, Physic and so on)