When i play my games my FPS goes down to 17!?
How are we supposed to know how you scripted your game? You can bring framerate to 0 with a single loop.
Look into profiling if you want to identify the culprit: