- Home /
When more than two cameras my screen lags.
I made a mini map with a little help of a video. It involved a camera over my head projecting a mini map on my game view. The mini map works fine but when I play my screen lags. I thought it was because the two cameras were rendering at the same time. If anyone has any idea what is going on please tell me what and if you can please tell how to fix this.
$$anonymous$$ost comercial (even some of the Unity Demos) use two or three cameras to render different things. The only thing I can think of is if your scene is to big for your PC to handle. If this is your problem and you have Unity Pro, Unity's occlusion culling works wonders.
That $$anonymous$$imap camera sounds like it might be super expensive if it can see a lot. Best make it render only certain layers rather than everything.
Answer by fifthknotch · Mar 06, 2014 at 04:55 AM
The cheapest thing to do would be to make a texture of your map layout, set this on a plain, define the plane on a certain layer, and make your camera only render that layer. Then the minimap camera will only render the texture and ignore all the polygons in your scene.
If this answered your question please mark it as answered
Your answer
Follow this Question
Related Questions
Make portion of mini map camera transparent 1 Answer
Strange Hierarchy Lag 1 Answer
Rendering when 'moving a character controller through a "portal"' 2 Answers
Different camera aspect ratios/resolutions? 1 Answer
Unity render lag questions 1 Answer