- Home /
Optimization of the game and Viking Village asset
I am new quite new to Unity ( started like month or 2 ago ) and I'm doing a RPG game like Skyrim. I found an asset pack called Viking Village (official Unity asset, the free one) and I started building a small village. I have around 22 buildings and some other props near them. My problem is optimization of this place. FPS count drops really fast, number of branches is around 1500-3000 at max at the gate and number of tris is around 3-12M. I changed the grapihic setting to medium and some terrain options, but it still isnt enought for me, current size of the city is around 2/3 of what i planned and I am afraid it will be unplayable when I will finish this. Any advice how to optimaze it ? Again, I am quite new so please try to explain this as simple as possible. Also i changed all objects to be static and tweeked some terrain settings. How can i make gameobjects dissapear when i'm too far from them ? I know how to do it with tress but i have no idea how to do it with Objects.
Answer by saml_baker · Apr 09, 2018 at 03:45 AM
Have you built the game yet? Your game will probably be more optimized once you build it compared to when its in the editor. Also try lowering the distance the camera is rendering (I can't remember the specific term for it but it should be a setting in the inspector.)
Answer by Bip901 · Apr 10, 2018 at 11:43 AM
1# Make sure the occlusion culling setting on your main camera is enabled. It renders only what you're looking at.
2# If you want gameobjects to change to low quality when you are far from them, use LOD. Here's a great video explaining how to use them in Unity - (click here).
3# If you know how to do it, edit the models you've downloaded to have less tris.
4# Lower the texture resolution in the Quality settings.