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 Grimmy · Dec 08, 2010 at 08:42 PM · texturewwwstreamingmovie

Is WWW.movie supposed to be this slow?

I am streaming an ogg video from the server and when I do so my gmae slows from around 60-70fps to around 20-30fps.(even with the movie not actually displayed but just playing.. eg myMovieTexture.isPlaying)

There are no additional lines of code being run during the video so its just the streaming and playing thats making the game take such a hit.

Does this sound correct? Also my movie is set to looping so surely if unity were sensible it would only download it once and then keep playing the downloaded data right??

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 Statement · Dec 08, 2010 at 09:50 PM 0
Share

Is this run through the editor, a standalone, web build, or something other?

avatar image Grimmy · Dec 08, 2010 at 10:03 PM 0
Share

This is through a webplayer and I am strea$$anonymous$$g the video from a http:// online source. BTW I looked in the profiler and the 'overhead' is eating 60-70% of the cpu with a single call. What's the 'overhead'?

avatar image Grimmy · Dec 08, 2010 at 10:04 PM 0
Share

Oh also, I am testing this in the editor..but the video source is still from online.

2 Replies

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

Answer by jonas-echterhoff · Dec 09, 2010 at 04:44 PM

As long as a Movie as playing, it will use CPU cycles, whether it is visible or not. Otherwise, the movie playback would have to jump to different positions when it becomes visible again, which our movie class cannot currently do (and also it requires decoding all the frames from the last keyframe in the movie to the current position, so it could cause jerkiness whenever a movie becomes visible).

However, you could try making the movie resolution smaller to reduce the impact of movie playback, or experiment with the compression settings. Maybe you will find a setup which is satisfactory for your use.

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 Grimmy · Dec 10, 2010 at 10:57 AM 0
Share

Yeah the end I've compressed the movie right down..(resolution & quality) and this way I still have the movie play without it affecting the gameplay (too much)

avatar image
0

Answer by Grimmy · Dec 08, 2010 at 10:19 PM

I just read in the Movie.play help...

Note that a running MovieTexture will use a lot of CPU power, and it will continue running until it is manually stopped or a new level is loaded.

So I'm guessing I can do nothing about the rubbish frame rate then... :(

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 Grimmy · Dec 08, 2010 at 10:20 PM 0
Share

BTW the original idea was to have a picture in picture movie running alongside the gameplay, but if the gameplay is affected this badly then thats a no go.

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

No one has followed this question yet.

Related Questions

Streaming large texture through WWW or otherwise. (multiple passes) 1 Answer

Unity for showing a html stream 0 Answers

Getting a youtube vid , applying it as a texture to a gameobject and playing it with sound 3 Answers

unity and databases 1 Answer

Wait for texture to be loaded before starting game 0 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