Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Zeko_Aliraqi2012 · Oct 25, 2015 at 12:26 AM · terrainrenderingfpsqualitylod

Low FPS any ideas ?

Hey i have very low fps in my game, it's quite big !! but i did LOD's for all objects and also occlusion culling and visualization !
I think its the terrain causing that, or maybe it's just my Pc ?
So what do you think ?
see this photo of the game stats
http://cdn.top4top.co/i_4419566d4d1.jpg
Thanks,

Comment
Add comment · Show 11
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Zionmoose · Oct 25, 2015 at 02:12 AM 0
Share

You need to provide more information than you have. Have you tried using the profiler?

avatar image Zeko_Aliraqi2012 Zionmoose · Oct 25, 2015 at 04:05 PM 0
Share

Here you go : @Zionmoose http://cdn.top4top.co/i_28ac6155541.jpg

avatar image The-Little-Guy Zeko_Aliraqi2012 · Oct 26, 2015 at 05:34 PM 0
Share

You should Click on "Deep Profile", it will give you a deeper insight as to where your problem exists, from Scripts to $$anonymous$$aterials to Sprites and everything in between.

avatar image tanoshimi · Oct 25, 2015 at 03:13 PM 2
Share

2,700 shadow casters?! You might want to consider baking your lights...

avatar image Zeko_Aliraqi2012 tanoshimi · Oct 25, 2015 at 03:58 PM 0
Share

Well i'm using a day/night cycle ! is that possible ? to bake ?

avatar image tanoshimi Zeko_Aliraqi2012 · Oct 25, 2015 at 11:19 PM 1
Share

You can clearly see from your profiler that your biggest lag is in rendering your scene. I'd normally put no more than a handful of realtime shadows in a scene; 2,700 is insane. For day/night, bake the scene lights twice and then blend between the two lightmaps in a shader.

Show more comments
avatar image whaleinthesea · Oct 26, 2015 at 02:12 PM 0
Share

Do you have marked all objects that will not change as Static?

avatar image Zeko_Aliraqi2012 whaleinthesea · Oct 26, 2015 at 02:38 PM 0
Share

Yes i did, @matyboy02

avatar image starikcetin · Oct 27, 2015 at 10:39 PM 0
Share

Off-topic: I liked your desing.

avatar image Zeko_Aliraqi2012 starikcetin · Oct 28, 2015 at 06:14 PM 0
Share

@s.ta.c. thanks bro :)

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by Whiteleaf · Oct 26, 2015 at 06:26 PM

As Tanoshimi said, it's probably the shadow casting. 2.7k is insane and overkill! 1 thing you could try to do is disable shadow casting on less important objects, such as small props, medium props, etc. You could also disable shadow casting on certain objects when the player is a certain distance away. Another thing is that if you have image effects that might be another major part in it. Your cpu/gpu is completely overwhelmed by the things that the camera has to render.

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Zeko_Aliraqi2012 · Oct 27, 2015 at 07:04 PM 0
Share

How can i disable shadow casting for certain objects ? By script ??

avatar image Whiteleaf · Oct 29, 2015 at 06:24 PM 0
Share

each object should have a "$$anonymous$$esh Renderer" component, and a little dropdown menu for casting shadows. If you put it to "Off" then it won't cast shadows.

avatar image Zeko_Aliraqi2012 Whiteleaf · Oct 29, 2015 at 08:12 PM 0
Share

Oh ok thanks man, Another question how many shadow cast i should have to make my game run at 50-60fps ? @whiteleaf

avatar image Statement Zeko_Aliraqi2012 · Oct 29, 2015 at 09:58 PM 0
Share

It depends on several factors. For example, one cluster of factors is your hardware. It'll vary depending on the system. In your current case, your CPU can't handle rendering. So getting a better graphics card wouldn't help (unless your CPU is waiting for the GPU). If the issue is memory heavy, perhaps getting faster memory sticks, faster bus, faster CPU or bigger cache can help.

Now of course I am not telling you the solution is to upgrade your PC. But you can't expect anyone to be able to give an answer how many shadow casters are needed for 50-60 fps because there isn't any target system to compare it with! 60 fps on a old $$anonymous$$$$anonymous$$X? 60 fps on the latest monster machine? The number of shadow casters will vary :)

But looking at your profiling graph, even if you nuked rendering completely (just rendering a skybox), your "scripts", "physics" and "other" already add up to > 16 ms which is the 60 fps benchmark. There isn't much wiggle room on your system for any kind of graphics at all to maintain 50-60 fps.

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

9 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Parts of terrain going invisible after building the game and changing ingame resolution 0 Answers

Unity terrain trees dispear in front of me way to fast 1 Answer

Unity terrain grass extremely weird 0 Answers

Custom terrain mesh - loss of LOD worth it if trees are occluded with occlusion culling? 0 Answers

Character doesn't collide with trees in terrain 4 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges