- Home /
Using 2 cameras on a mobile game: performance hit?
I need to set up 2 cameras: one for the focused objects, one for the blurred ones (background and foreground). The reason why I don't want to use pre-blurred textures is that they cost memory on the long run (or, if small in size, small pre-blurred textures look disgusting).
I'd like to ask about the performance (mainly memory) hit the 2 cameras may casue? Do 2 cams increase the memory used by that much?
Answer by tanoshimi · Jul 16, 2017 at 09:41 AM
The performance impact should be negligible. Rendering cost is determined by the number of elements drawn to the screen, not by the number of cameras used to draw those elements. So long as you set the culling masks on each camera in order to minimise overdraw, there's no reason this wouldn't work on mobile.
But, why guess? It's trivial to use the profiler to find out for certain: https://unity3d.com/learn/tutorials/topics/interface-essentials/introduction-profiler
Thanks for the answers. I'm messing around in a separate object, not the real one as I fear I would break something (and I don't want to copy paste all around). However, indeed using 2 cams in an almost empty scene didn't cost more.
By the way I was asking abour the memory used by the application, not the rendering performance. So what I wanted to know was basically --how much memory a camera takes up in the scene--.
Your answer
Follow this Question
Related Questions
How do off-camera gameobjects affect performance? 1 Answer
Performance impact of camera that has 'nothing' culling mask and doesn't clear anything? 1 Answer
ManagedHeap.ReservedUnusedSize 0 Answers
Why does Convert.ToDecimal use Double.ToString internally? 1 Answer
UI.Text: Lerping scores in Update -- excessive String allocation? 0 Answers