- Home /
Camera taking a long time to clear (but drawing is fast!)
I'm not sure what's happening, but my cameras seem to take a long time to clear.
Normal rendering is fine when I don't move my main camera, but when I do then the Vectrosity camera and occasionally the NGUI cameras report that they are taking a very long time to clear in the profiler. If I set cameras to not clear then the problem just moves to a different one. Very occasionally it is the main camera itself that reports 15ms to clear.
Profiler pictures attached (in the second one I managed to get it to repeat without having to move the camera):
What is your hardware configuration?
I've ran into **some issues** with ATI cards in the past.
That was running on a 27" i$$anonymous$$ac - will check on the specs when I get to the office.
Per your point on the other thread - I wouldn't be at all surprised if its the profiler (which is totally random about the amount of memory you allocate too).
Answer by sparkzbarca · Jan 24, 2013 at 09:52 PM
per
http://docs.unity3d.com/Documentation/Manual/Profiler.html
the very last line
Please note that on the Mac, GPU profiling is only available under OSX 10.7 Lion and later versions.
your gpu line is spiking like crazy, are you sure you have a later OSX. Perhaps its not that your clear is taking forever, its that the profiler can't profile right.
I am using $$anonymous$$ountain Lion 10.8.2 on a variety of $$anonymous$$acs and all are showing the same effect - I'm fairly convinced it isn't profiling properly - but how can I tell?
BTW in the second picture I did manage to get it to spike, as I mentioned in the question, that's rare - it normally just happens if I scroll around the view - so something is causing the spike, in apparently, a clear function.
If I leave the panning of the view alone the frame rate is consistently the lower values.
based on the second view there are 4 cameras
camera $$anonymous$$ain Camera camera Vector Cam
you can tell because you have camera.render selected and those 4 object in the far right panel. those are the 4 cameras.
now my question for you is what is this top object
Camera
which only has 2 drawcalls which takes up 80% of everything.
This camera is clearly viewing, I don't know like something crazy.
I think its this camera. Why do you have a camera with only 2 draw calls.
It is like taking in the entire scene and not having any culling or something?
It's an NGUI camera. (There are 2 NGUI cameras and 1 Vectrosity camera) + the scene camera. When there is no spike, those cameras take no time.
And those cameras are not drawing anything different between spikes, they are continuously displaying the same output.
Your answer
![](https://koobas.hobune.stream/wayback/20220613091146im_/https://answers.unity.com/themes/thub/images/avi.jpg)