- Home /
How can my game be so slow?
My game contains 8 cubes and a first person controller and it is taking like 5 minutes per frame. Each cube has a texture. Everything is working well except the game view. It was working very well up until like 3 days ago and now it takes like 15 minutes just to move. What could be going wrong to make it go so slowly?
can you be more specific? show a screenshot at least because no one here is a witch to help you with that little information.
If you have unity pro you could use the profiler. How much rendering and scripting is there?
There is not much scripting. There are only like 3 scripts total right now and they are very short. The game had been working from the beginning and then stopped working one time when I pressed play.
Well I had a similar issue. I found out that my pc was on power saver which gave my game 40 fps. I put it in high performance and I get 160 fps. If this is not the problem, maybe your computer does not meet the program's requirements.
Answer by tanoshimi · Oct 07, 2013 at 06:53 AM
5 minutes per frame is not "slow" - it's catatonic! ;) Have you adjusted Time.timeScale? Do you have any potentially infinite, or near-infinite loops?
Answer by sotirosn · Oct 12, 2013 at 04:17 AM
Make a brand new project with nothing in it, run it and see if it is also slow. If it is not slow add stuff from the slow project to the fast one, one by one, and see if it slows down.
Answer by Kawaburd · Oct 12, 2013 at 04:31 AM
Since there's so little stuff in there, I'd give your game (particularly the scripts) a good run-through with a fine toothed comb, so to speak. Find possible causes, because with this little information I have no clue. On top of infinite loops, if you're using translate to move things, I'd also check to make sure they aren't just being moved at infinitesimal(really really tiny) speeds.