Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by trs9556 · May 27, 2013 at 12:14 AM · cameraprofilerrenderdrawingefficient

What does "clear" mean under Camera.Render -> Drawing in the profiler

Hello,

I'm developing an android game and I've noticed a bad frame rate on my lower end device (kind of obvious). I decided to see what it was all about I have found that every second to every 2 seconds I get a spike which is causing my low frame rate. The spike is from "Camera.Render -> Drawing -> Clear". It spikes to 70% - 95% of my total CPU and takes anywhere from 50ms - 65ms.

Everything else looks reasonable, but I don't understand what clear is. Is this something I can make more efficient?

Any information on what this "clear" is would be great.

Thanks

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Benproductions1 · May 27, 2013 at 11:57 PM 0
Share

This is just a guess, but it might be GC on the GPU???

avatar image trs9556 · May 28, 2013 at 12:26 AM 0
Share

Yeah I kinda thought maybe it was the Garbage collector as well. Nothing I can really do about it though.

avatar image Benproductions1 · May 28, 2013 at 12:28 AM 0
Share

Well maybe someone can confirm it :)

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by trs9556 · Jun 15, 2013 at 07:36 PM

I was told that it is the same as the clearing flag in the Camera inspector settings. The reason why it takes super long on my specific device is unknown, other then poor specs.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by JonasNorberg · May 21, 2015 at 11:19 PM

Make sure that your first camera clears using solidcolor. On tiled renderers not clearing at the start of the screen requires the chip to load back colors from the framebuffer to the tile-memory. This is not fast.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Mirk_Andy · Nov 02, 2016 at 06:09 AM 0
Share

@JonasNorberg

I am experiencing the same issue, however changing the Camera Clear Flags to Color did not have any impact on the amount of time that clearing took on the GPU (if anything it increased it by a few ms).

I am new to Unity and so was wondering if you were aware of anything else that could be causing a camera clearing issue? (batch calls are at 41, triangles 77k, verts 149.5k, setpass calls 36)

Any insight you may provide is much appreciated!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

17 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

A bit more texture detail in Vertex Lit 1 Answer

OpenGLES error 0x0502 when TextureFormat.BGRA32 is used 0 Answers

Is there a way to limit the range of colors that can render in the scene? 1 Answer

Performance issue: Camera.Renderer - Drawing - ... - Clear needs 50% CPU ??? 2 Answers

what does Camera.targetTexture do? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges