Search code examples
unity-game-enginemobileblenderlag

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

  • I decreased the number of vertices, faces and edges for all of my Blender models including my house but this house is already lagging.
  • I decrease the side view of the camera player.
  • I checked the occlusion culling but there is nothing to do.
  • I recreated a new Blender file for my house but the problem is always here
  • I also exported my mesh in .obj/.fbx but the lag is always here

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.


Solution

  • (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 :)