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
0
Question by PolCPP · Aug 28, 2012 at 10:24 AM · performancewebplayeroptimization

Stuttering web player

I was trying the webplayer and found there's some stutering every now and then, so to check up, i made a minimal scene with a scrolling camera and limited the webplayer to 60 fps as you can see here.

Basically the camera code is this. and the fps counter from the wiki.

     void Awake ()
     {
         Application.targetFrameRate = 60;
         SetPixelResolution ();
     }
     
     void LateUpdate ()
     {        
         if (transform.position.x < 300) {
             direction = 1;
         } else if (transform.position.x > 1300) {
             direction = -1;
         }
         transform.Translate(direction * 100 * Time.deltaTime,0,0);         
     }
 

Am i missing something? It runs like butter on all standalone versions.

Comment
Add comment · Show 7
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 Kryptos · Aug 28, 2012 at 11:13 AM 0
Share

Using dropbox is very bad for performance. This system is not intended to perform like a web server.

avatar image PolCPP · Aug 28, 2012 at 01:35 PM 0
Share

It may be bad if you stream the assets but for that they're already loaded + it does the same on localhost. Anyway a copy on my server: http://soft10.es/wp-content/test3/test3.html

avatar image Velketor · Aug 28, 2012 at 05:16 PM 0
Share

dropbox does not affect performance what so ever. also i saw no lag at all and received 75fps the entire time.

avatar image PolCPP · Aug 28, 2012 at 07:07 PM 0
Share

@shawnkilian That's strange, it's limited to 60 fps O_o

avatar image Velketor · Aug 28, 2012 at 07:08 PM 0
Share

ya that's what i thought you said in the original post. quite odd.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Kryptos · Aug 28, 2012 at 01:42 PM

Looks like some loading issue (it does not lag after the first translation). Do you use Resources.Load anywhere in your scripts?

It is better to load everything at the start of the level, to prevent loading lag.


edit: in fact it happens along with the display of Unity watermark. Try to wait for 1 or 2 seconds before starting the translation (the amount of time needed to mask the watermark).

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 PolCPP · Aug 28, 2012 at 08:08 PM 0
Share

Nah i try to be as garbage collector friendly as possible, plus that thing only has the guitext, mesh and camera with at script ( well theres that set pixel size but thats just to setup the ortho cam on start)

To give a bit of background this was the original project where i found it stuttering http://dl.dropbox.com/u/69084784/foney/pixeltalk/pixeltalk.html , it keeps doing it constantly ( i get it constantly on the $$anonymous$$i demo too), and since i wasnt sure what was causing it i made a clean project with just the map.

The strange thing is that if i run it in fullscreen except from some vsync issues it moves smoothly. All i can think its some kind of issue with the player+browser

Update Fixed the link. (Stupid ipad dropbox)

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

10 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

Related Questions

Are there any performance differences between a timer and using Invoke? 1 Answer

Reasonable heap alloc. per second and total ? 0 Answers

Sprite Alpha Performance 0 Answers

Performance difference between webPlayer and Flash? 0 Answers

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 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