Hello guys!I am having some trouble with my Unity Editor with no aparent reason…It all just happened a couple days ago when i opened my Unity and made a new project.I was working on some shaders when i noticed that it just runs an empty scene at below 100 FPS (When it normally runs at 800 FPS).I spent the last days trying to fix it…i completly reinstalled Unity (I deleted everything,including the HKEYs),and still nothing…It was today when i read on another post,that an user suggested to a guy having a similar problem to check if VSync is on.So was mine…it somehow got set to ON by default.I turned that off,and it magically went back to 800FPS.
However i instantly noticed something weird…Simple Rendering is very expensive…I made new scene,and i created a plane,then i removed the colider and multiplied it a few times…At around 50 copies,it all runs fine at 800 FPS with 1ms or so,but AS soon as i get at around 80 copies of that plane (or 80 draw calls),it instantly drops to around 70 FPS and 15ms!Why is this happening?Please help me!Why did the VSync thing happened anyways?
I can post pictures of the profiler if needed.It didn’t happen before!
Do you do anything special with them like add an expensive shader, use some post fx in general or put them straight in front of the cam where you cause a major fillrate spike when they are using a transparent material?
Long time ago something similar happened to me, and then I realize that the problem was the Unity player; I was playing a demo (Unity) in Firefox, and that was the cause of my barely 24 fps.
Look at the profiler! Planes have a mesh collider by default, which takes far more CPU than any other collider. The planes also have quite a bit of triangles in Unity.
Basically, static object collisions are calculated when your scene starts, so you’ll see a massive performance drop which will die down after a few seconds. That’s why Physics.Simulate takes 50% CPU.
So unless you’re deforming the planes, you can replace the mesh colliders with box colliders and performance will go up.
Thanks for the input but I thought of that too…i removed the colider when i took the pictures :[
As you can see the big chunk is actually the rendering,Psyhics are keeping constant.
Aw,yay!!I finally got it…I had to disable Dynamic Batching,as dreamora sugested in his posts (but i think he edited it),just that i didn’t know where to search…i just randomly found where to tweak that : Edit → ProjectSetings → Player
Thank you guys for all your help and kindness (^ . ^)
I am so glad i can use Unity again :>
P.S.: I have pretty old stuff…i use a NVIDIA GeForce 8600 GT