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 Seantron · Nov 16, 2009 at 08:59 PM · webplayeroptimization

Optimization Techniques?

So, I've got less than 5 lights, a terrain, 3 animated models with less than 3000 tris a mesh, a few low poly buildings, and a skybox.

Why is this stuttering really badly in the Web Player? We're in Firefox 3.5 on a Macbook Pro. Anyone know of anything I could be doing terribly wrong?

I've watched the Optimization video from Unite 2007, but I feel that might be a bit out dated.

Thanks

Comment
Add comment
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

2 Replies

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

Answer by duck · Nov 16, 2009 at 10:13 PM

First, how many bones in your animated models? (in case you have a crazy number!)

Second, there are a number of settings in the Terrain engine which can affect performance. To improve performance you can:

  • Increase the pixel error. This results in more significant height-popping of terrain subsections.
  • Increase the detail distance (the distance that grass and detail meshes are visible)
  • Decrease the tree distance (the distance beyond which trees aren't drawn at all)
  • Decrease the billboard start (the distance at which tree meshes are replaced with billboards)
  • Reduce the Max Mesh Trees (the maximum number of trees which are displayed as meshes at any one time - any others will be displayed as billboards regardless of their proximity)

A screenshot or more detailed description of what your terrain is like might help solve the problem. Eg, how many splatmaps / grass textures / detail meshes etc are you using? How densely distributed are your trees?

There's a chance the above settings could solve your problem, if you have previously adjusted all these settings for maximum visual effect, and you have a lot of detailed tree meshes.

I also notice that you haven't mentioned any scripting in your post - are you using any custom written scripts, or just using built-in scripts from Unity's standard assets?

Comment
Add comment · Show 2 · 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 Seantron · Nov 16, 2009 at 10:41 PM 0
Share

$$anonymous$$uch Appreciated. I'm using a few custom scripts that are in JavaScript, but I am porting over to C# for maximum speed. As for the Terrain, I have no trees, no grass. I'm going to mess with those Terrain settings, and get back.

Thanks again.

avatar image duck ♦♦ · Nov 17, 2009 at 09:40 AM 1
Share

Porting to c# won't necessarily give you better performance (depending on how your JS was coded in the first place). It certainly wouldn't make the difference between "stuttering really badly" and good performance. What those scripts are actually doing (whether in c# or JS) could be the key though.

avatar image
0

Answer by YetAnotherKen · Aug 24, 2019 at 07:48 PM

Use the profiling tool to see what is causing the lag then optimize there first, repeat until done.

I have found using Coroutines and threading where possible really helps reduce the framerate drop I get when I put in a new cpu or resource heavy framework. The Unity team is pushing their new ECS system that is supposed to help give major performance boosts too.

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

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

1 Person is following this question.

avatar image

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

WebPlayer memory usage 0 Answers

How can I receive UDP packets into Unity Webplayer? 1 Answer

What's a faster method to sort data than iterating through an array? 2 Answers

API Compatibility Level 2 Answers


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