PROTOKOLL Studio
PROTOKOLL Studio

Reputation: 163

Unity 3D : Simple model make lag on mobile

I have checked Google or the Unity Community but no answers to my specific question.

Description of the problem

I am creating a simple game for Android in Low Poly Style and I want to optimize it for this platform. All of my models are made with Blender and there working fine.

I also created a simple house, made of cube with Blender but when the player is near the house, the game lag ! So I decided to make this house with some cube in Unity 3D, to see if it is lagging:

Image

Blue = the player, Red AND yellow = the direction where the player looks

And surprise, the game lag too! And really. I don't know why. As you can see, this is a very simple house. When the player is front of the door and can see the inside house (yellow arrow), the game lag but when the player rotate the camera to see other part of the environment (red arrow), no lag.

Attempt of resolution

My question

What is wrong with Blender/Unity ? What can I do ?

EDIT

Here is a video of my problem. As you can see, when the player see the house, it is lagging but when the house is not visible in the camera player, pfuit, no lag: Link

Profiler

Here is the profile when I play the game on mobile:

enter image description here

Red part -> Player see the environnement, Yellow part -> Player look at the house. I can see in the overview screen the "Graphics.PresentAndSync" increase of 10-15% when the player sees the house. I will check that in detail.

Upvotes: 3

Views: 1010

Answers (2)

halfer
halfer

Reputation: 20467

(Posted on behalf of the OP).

I have made the update of Unity 3D to the last version 5.5.2f1 and that solve my problem. I will check if others solutions can be found to this problem and give you a feedback asap but this update make clearly the difference.

Many thanks to all of you :)

Upvotes: 1

zwcloud
zwcloud

Reputation: 4889

To find the real cause of the lag, you should profile your app on Android. See Android part of Profiler window for more details.

Upvotes: 1

Related Questions