- Home /
game runs faster on bigger screen size?
hi, i have done almost everything but may game still running faster on bigger screen and i know its mater of screen size and not processor because i test small and big screen in unity in my computer so the same processor speed and frame rate is guaranteed and also testing in many android devices . note i have simple moving object and script attached to it and i used : Update function with and without deltatime. FixedUpdate function with and without deltatime. and i got the same result. so i'm i right that bigger screen size increases my game speed because then i can scale may variables depending on screens width .
I'm pretty sure the screen size has nothing to do with it. Have you tried using the profiler to get a better idea of what's happening? http://docs.unity3d.com/$$anonymous$$anual/ProfilerWindow.html
If you are using drag to move the object, then you would have to normalize the movement since a half the screen may represent 300px or 500px and then the movement is proportionally bigger
//fafase , The angular drag applies to rotational movement but this is my script.
private float speed = 10f; void FixedUpdate() { rigidbody2d.velocity = new Vector2`(-speed,rigidbody2d.velocity.y); }
$$anonymous$$eep in $$anonymous$$d that CPU and GPU are two separate things. If you are using the same CPU and GPU for both resolutions, the larger resolution should in theory be slower due to the processing of more pixels on the screen. However, you have not posted any data to help justify your findings. How many ms is the GPU taking each frame? How many ms is the CPU taking each frame? What values are you using to deter$$anonymous$$e that the larger resolution is running faster?
hi Ed unity, i also saying to my self larger resolution should decrease the speed because of more pixels the object should cut but the opposite is happening , and i don't know about cpu & gpu ms, and finally i know its running faster because its clear to the eyes and i made Debug.Log(Time.time) when the object collide with something at the end of the screen and in small and bigger screen returns the same value that's mean in bigger screen the object is running faster so it can collide with the other object at the same time in small screen its logic .
Answer by KayelGee · Oct 24, 2014 at 12:58 PM
The game speed is screen size independent. Unless you're doing some calculations with Screen.width or something along those lines, this will always be true.
The only thing that changes when you change the resolution is the camera view cone.
i don't use screen.width and i don't think camera view cone will change in bigger screen because the view port still the same without showing things are out of the screen in smaller screen unless using unequal aspect ratio but the things that changes is the objects getting bigger, and logically bigger screen size effect the object movement because of the extra pixels i mean in computer world if you want to move a picture by 1 value the picture moves by 1 pixel and in small screen if my object should move 4 pixels to collide with other object in doubled screen size will need 8 pixels and this should make the speed slower but the opposite is happening with me.
This would be correct if your would move in screen space. But you're moving your objects in world space which is independent from the screen size.
if i was wrong what is the solution what is the problem many said its deltatime but i used deltatime in Update & FixedUpdate and its the same. thanks ....