• 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 ISlandFace · Apr 21, 2015 at 02:30 PM · optimizationwebglrendererprofileropaque

Why does "Clear" under Render.OpaqueGeometry spike every few frames in WebGL?

Can someone tell me what Clear under Render.OpaqueGeometry is and how can I optimize for it in WebGL? I have a terrain, some animated characters, 2-3 small particle systems, and a stationary camera. Every couple of frames Clear takes from 200-400ms to complete! This causes my game to be unplayable. Ive tried turning off the terrain and other things but I just cant figure out what Clear actually is.

Comment
Add comment · Show 1
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 05:36 AM 0
Share

@ISlandFace

I am also experiencing this issue now on Android, however mine only causes spikes of approx. 18-25ms, but this is problematic.

Did you ever find out what was causing Clear to consume so much, or a potential method of optimisation? Any insight you may be able to offer would be greatly appreciated!

0 Replies

· Add your reply
  • Sort: 

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

How do I get my game to run faster? 4 Answers

Profiler got 2 Texture2D fields ? 0 Answers

Animator.Update has high CPU usage 2 Answers

Profiler shows Object.ElementAddr_3_8() called over a million times. What is it? How do I reduce this? 1 Answer

EditorOverhead High CPU Usage in Unity Profiler 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges