- Home /
The question is answered, right answer was accepted
Make game run faster . how ??
i have a game which is 800 > mb after building
but when i ply the game it moves soo slow , is there a way to make the levels process faster .
http://docs.unity3d.com/Documentation/Components/class-Time$$anonymous$$anager.html $$anonymous$$aybe the answer is easier than what we thought... Look for "Time Scale".
but Time Scale will only change the gameplay speed and not the actual processing speed . which means it may look nice and "fast-ish" on my computer but on a faster computer some other aspects will be too fast
Obviously there is no way to speedup code without optimizing or disabling, but he wrote "the game it moves soo slow", so maybe he just wanted to make it go faster, and not to higher FPS rate.
it moves slowly because of the excessive amount of verts and gameobjects in a level. changing the time scale to something faster would only cause more problems . so , deactivating the gameobjects and its children unitll the level loads is the best way to fix this , correct ?
$$anonymous$$aybe you are right, but still I think that the engine doesn't make the simulation "move soo slow", it does lower FPS ins$$anonymous$$d, but simulation time should stay about the same.
Answer by RazorCut · Jan 06, 2013 at 04:07 AM
Unfortunately this is an extremely difficult question to answer because it could be a result of so many possible different things. A great starting point is here: http://docs.unity3d.com/Documentation/Manual/OptimizingGraphicsPerformance.html
Answer by Owen-Reynolds · Jan 06, 2013 at 05:46 AM
Ideally, you'd have tested it as you went. At some point you'd see a large slowdown and more-or-less know that the thing you just did is causing the problem.
You can also do that in reverse. One at time (and maybe reset each when done) drop the texture sizes, drastically reduce number of enemies, turn off the AI, comment out OnTriggerEnter, .... . Sometimes it can help to do big things. Like make 0 enemies -- if it still runs slow, you know they aren't the problem, so won't waste time checking each enemy part.
and spawning when necessary ins$$anonymous$$d of leaving the gameobjects idle in the game . i sure did find out the problem .. it occurs in an area where i had written and placed a 16,000 line JavaScript but i cannot afford to change it so i will remove some game objects and spawn them when i need them
$$anonymous$$aybe there's a more efficient way to do things than a 16000 line script. Why not try looking into arrays, for loops and callable functions?
In my game I have objects falling down. Just simple color objects (no textures). However they dont fall very smoothly. Any way to fix this? Changing framerate somehow? Any other possibilites to make the object fall smoothly. Right now they aren't falling smoothly ( don't know how to explain exactly) its like the objects are skipping frames (this is what I mean! yes!). Not a lot of skipping but a little bit. It's for an android device. Running on Nexus 4 (not a phone that should worry about performance a lot) Any ideas? Thanks!
@gurinderhans Please start a new question, and include more detail. Have you used Time.deltaTime to make your game framerate-independent?