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 Mogrinnar · Nov 17, 2014 at 07:03 PM · canvaswebplayerfacebookloading

Logo image in Facebook Canvas increases loading time.

I have a game that runs on the WebPlayer platform. The build size is around 27MB. The game is playable on Facebook and it uses the Facebook web canvas and Unity integration. On Mac/Apple, not on Windows, the loading of the un-cached application takes several minutes.

I spent a lot times figuring out why, and I realized that if I removed the image for the Logo Image Url, the loading would come down to a third of what it used to be, sometimes below a minute. The image itself is 707KB, 760x653 pixels.

If you remove the the url for the logo image, the canvas will use the game's icon. If there isn't any, it will use unity's icon. By removed I mean to remove the link in the settings page, leaving it blank. If I modified the image so it was the same size of the game's icon, the loading was almost as fast as loading with the game's icon.

I don't really understand why this image would increase the load times so great since it has nothing to do with the actual game (the .unity3d file) itself. To make sure it was not me going crazy, I did the experiment (loading the game with/without the image, cached & un-cached) several times in front of different people and it behaved like described above every single time.

I am sure other people here have published games on Facebook and used the canvas and it's features, has anyone encountered this issue before ?

Thank you !

Comment
Add comment · Show 6
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 meat5000 ♦ · Nov 17, 2014 at 07:07 PM 0
Share

Is it downloading the image from a webpage?

Is it happening all at once via coroutine? Or is it being inadvertently spam loaded by having repeat calls in Update?

$$anonymous$$ake sure your code isnt structured in such a way as to make unimportant elements cause the rest of the code to wait. Don't use while loops etc.

avatar image Mogrinnar · Nov 17, 2014 at 07:27 PM 0
Share

The image is downloaded from a server. Sorry if I was not clear : the loading of the image is done by the canvas, not the game. The game has nothing to do with the image. It is the Facebook canvas that fetches the image with the given url while the actual app/game is loading.

avatar image meat5000 ♦ · Nov 17, 2014 at 07:29 PM 0
Share

Is there any sort of flag for the completion of this event within the game?

avatar image Mogrinnar · Nov 17, 2014 at 07:43 PM 0
Share

I do not think this so : The Facebook canvas page loads it's assets (the Logo Image URL, the progress bar image Url and the progress bar frame Image Url) first and once that is loaded, starts loading the game and starts filling the loading bar. So even before the game starts to load, the logo image is fully loaded.

The loading of the logo image is very fast, it is the loading of game that is extremely slow if the logo image is large. And it is not even that large at 707$$anonymous$$B and 760x653 pixels.

If I remove the link/url to the logo image in the settings page, the canvas will use the game's icon, which is very small. In that case the game will load very quickly, in about 30 secs to 1 $$anonymous$$ute ins$$anonymous$$d of 3 to 4 $$anonymous$$utes.

The logo image does not interact directly with the game, ever.

avatar image meat5000 ♦ · Nov 17, 2014 at 07:57 PM 0
Share

Compression or Texture format problem?

Show more comments

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.

Follow this Question

Answers Answers and Comments

27 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Facebook Canvas strange behaviors 0 Answers

WWW POST request headers gone on webplayer facebook 1 Answer

How to show an image while waiting for the game to finish loading 0 Answers

Unity Web Player in Facebook: How to set the application name ? 1 Answer

Webplayer not recognized in IE and Facebook 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