Unity lags when I 'scope in' with our sniper.

Please help, we are relatively new to Unity and a serious issue has arisen. Whenever you ‘zoom in’ with the ‘sniper scope’ there is considerable drop in the FPS rate. it makes the game practically unplayable. I get the distinct feeling that its something to do mesh rendering the trees or whatever but I’m pretty much stumped. As soon as you zoom in there is a “lag spaz” which lasts for a second or two then it returns to normal??
Thanks in advance,
Geo

OK how are you implementing the sniper scope, and zoom feature, screenshots with profiler graphs would also help resolve the issue?

Tell you what, you tell me what color my tshirt is, and ill tell you why it lags :wink:

My point is there is no magic pill that will fix your problem without knowing a whole bunch more… ‘most’ likely cause is your code.

Orange? :smile:

Sorry mate I know its a stupid question but I just thought it would be better to ask advice than start cussing and flip a table.
I spose im asking for a way to change somthing and bugger around with somthing else until it will only show the trees and bushes and wotnot as ‘sprites’.
Does that sound sort of like it make sence? :slight_smile:
I might be able to wright a script but theres about as much chance of that happening as there is of Watford FC winning the league. (I don’t know squat)
Thanks

yes, but without us knowing how you implemented this or the scene it is tested in we can’t provide any assistance.

  1. Have you tried it in an empty scene?
  2. Code?

Okay so in a terrain scene with trees and bushes and wotnot it lags for a few seconds whn scoping in, in a flat empty terrain its fine, also if we aim at the sky it dosent lag at all. Being new to scripting we dont relly get whats happening or how to fix it. Currently we are using OMA’s fps kit as a place holder for our own which is on its way but its a problem thats sure to arise again.