Why is Unity 2018.2 WebAssembly loading intervals only 0%, 90%, 100%









up vote
2
down vote

favorite












Ever since switching to Unity 2018 the loader is really chunky and not helpful. On old builds of my product the loader would smoothly climb to 100%. Now with my Unity 2018.2 builds, It skips from 0 to 90 to 100 and finishes. It stays on 90 for pretty much the whole time. My users are thinking my product is broken because it no longer loads smoothly. They think it's stuck. Ive debugged the UnityLoader.js file and have verified that the progress only gets called once and reads .9 before loading all the way:



function UnityProgress(gameInstance, progress) 
console.log("PROGRESS")
console.log(progress)
...



This prints out only 0, 0.9. Then the game loads successfully. No intermediate 0.1, 0.2 etc.. like it used to



Anyone know how to fix this? Is this happening to everyone?



Cheers, Ming



EDIt
This only happens on my project, not an empty project. It seems like it is in the Unity Loading process though, before any of my code is touched, not sure how my code could mess up the loading frequency of Unity's WebGL App progress updates










share|improve this question























  • I am currently using Unity 2018.2.14f1 and don't have the problem with WebAssembly Builds. Did you try a Build with a clean project? Or can you reproduce the problem with your project only? We are working with our project since Unity 2017.2.4 and switched from asm.js to WebAssembly with Unity 2018.2.4
    – dome12b
    yesterday










  • Interesting, it did not happen with a clean project. The loading percent hit other percents besides 0, 90 and 100. Any idea where to start looking into a project specific problem like this? This was not an issue for older versions of Unity on this project
    – MingMan
    yesterday










  • That is really difficult without knowing the project. I don't know much about the loading process, but you can try the following: make a new scene in you project and set it as first scene. In the scene attach a script with SceneManager.LoadSceneAsync(SCENE_TO_LOAD, LoadSceneMode.Additive); to load your real first scene after the empty scene. Perhaps Unity is loading the first scene async while starting the engine and in your case it is blocking the progress?
    – dome12b
    20 hours ago










  • I took that suggestion and no change. Very peculiar.
    – MingMan
    11 hours ago














up vote
2
down vote

favorite












Ever since switching to Unity 2018 the loader is really chunky and not helpful. On old builds of my product the loader would smoothly climb to 100%. Now with my Unity 2018.2 builds, It skips from 0 to 90 to 100 and finishes. It stays on 90 for pretty much the whole time. My users are thinking my product is broken because it no longer loads smoothly. They think it's stuck. Ive debugged the UnityLoader.js file and have verified that the progress only gets called once and reads .9 before loading all the way:



function UnityProgress(gameInstance, progress) 
console.log("PROGRESS")
console.log(progress)
...



This prints out only 0, 0.9. Then the game loads successfully. No intermediate 0.1, 0.2 etc.. like it used to



Anyone know how to fix this? Is this happening to everyone?



Cheers, Ming



EDIt
This only happens on my project, not an empty project. It seems like it is in the Unity Loading process though, before any of my code is touched, not sure how my code could mess up the loading frequency of Unity's WebGL App progress updates










share|improve this question























  • I am currently using Unity 2018.2.14f1 and don't have the problem with WebAssembly Builds. Did you try a Build with a clean project? Or can you reproduce the problem with your project only? We are working with our project since Unity 2017.2.4 and switched from asm.js to WebAssembly with Unity 2018.2.4
    – dome12b
    yesterday










  • Interesting, it did not happen with a clean project. The loading percent hit other percents besides 0, 90 and 100. Any idea where to start looking into a project specific problem like this? This was not an issue for older versions of Unity on this project
    – MingMan
    yesterday










  • That is really difficult without knowing the project. I don't know much about the loading process, but you can try the following: make a new scene in you project and set it as first scene. In the scene attach a script with SceneManager.LoadSceneAsync(SCENE_TO_LOAD, LoadSceneMode.Additive); to load your real first scene after the empty scene. Perhaps Unity is loading the first scene async while starting the engine and in your case it is blocking the progress?
    – dome12b
    20 hours ago










  • I took that suggestion and no change. Very peculiar.
    – MingMan
    11 hours ago












up vote
2
down vote

favorite









up vote
2
down vote

favorite











Ever since switching to Unity 2018 the loader is really chunky and not helpful. On old builds of my product the loader would smoothly climb to 100%. Now with my Unity 2018.2 builds, It skips from 0 to 90 to 100 and finishes. It stays on 90 for pretty much the whole time. My users are thinking my product is broken because it no longer loads smoothly. They think it's stuck. Ive debugged the UnityLoader.js file and have verified that the progress only gets called once and reads .9 before loading all the way:



function UnityProgress(gameInstance, progress) 
console.log("PROGRESS")
console.log(progress)
...



This prints out only 0, 0.9. Then the game loads successfully. No intermediate 0.1, 0.2 etc.. like it used to



Anyone know how to fix this? Is this happening to everyone?



Cheers, Ming



EDIt
This only happens on my project, not an empty project. It seems like it is in the Unity Loading process though, before any of my code is touched, not sure how my code could mess up the loading frequency of Unity's WebGL App progress updates










share|improve this question















Ever since switching to Unity 2018 the loader is really chunky and not helpful. On old builds of my product the loader would smoothly climb to 100%. Now with my Unity 2018.2 builds, It skips from 0 to 90 to 100 and finishes. It stays on 90 for pretty much the whole time. My users are thinking my product is broken because it no longer loads smoothly. They think it's stuck. Ive debugged the UnityLoader.js file and have verified that the progress only gets called once and reads .9 before loading all the way:



function UnityProgress(gameInstance, progress) 
console.log("PROGRESS")
console.log(progress)
...



This prints out only 0, 0.9. Then the game loads successfully. No intermediate 0.1, 0.2 etc.. like it used to



Anyone know how to fix this? Is this happening to everyone?



Cheers, Ming



EDIt
This only happens on my project, not an empty project. It seems like it is in the Unity Loading process though, before any of my code is touched, not sure how my code could mess up the loading frequency of Unity's WebGL App progress updates







javascript unity3d loading webassembly unity-webgl






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 11 hours ago

























asked Nov 9 at 20:24









MingMan

7421819




7421819











  • I am currently using Unity 2018.2.14f1 and don't have the problem with WebAssembly Builds. Did you try a Build with a clean project? Or can you reproduce the problem with your project only? We are working with our project since Unity 2017.2.4 and switched from asm.js to WebAssembly with Unity 2018.2.4
    – dome12b
    yesterday










  • Interesting, it did not happen with a clean project. The loading percent hit other percents besides 0, 90 and 100. Any idea where to start looking into a project specific problem like this? This was not an issue for older versions of Unity on this project
    – MingMan
    yesterday










  • That is really difficult without knowing the project. I don't know much about the loading process, but you can try the following: make a new scene in you project and set it as first scene. In the scene attach a script with SceneManager.LoadSceneAsync(SCENE_TO_LOAD, LoadSceneMode.Additive); to load your real first scene after the empty scene. Perhaps Unity is loading the first scene async while starting the engine and in your case it is blocking the progress?
    – dome12b
    20 hours ago










  • I took that suggestion and no change. Very peculiar.
    – MingMan
    11 hours ago
















  • I am currently using Unity 2018.2.14f1 and don't have the problem with WebAssembly Builds. Did you try a Build with a clean project? Or can you reproduce the problem with your project only? We are working with our project since Unity 2017.2.4 and switched from asm.js to WebAssembly with Unity 2018.2.4
    – dome12b
    yesterday










  • Interesting, it did not happen with a clean project. The loading percent hit other percents besides 0, 90 and 100. Any idea where to start looking into a project specific problem like this? This was not an issue for older versions of Unity on this project
    – MingMan
    yesterday










  • That is really difficult without knowing the project. I don't know much about the loading process, but you can try the following: make a new scene in you project and set it as first scene. In the scene attach a script with SceneManager.LoadSceneAsync(SCENE_TO_LOAD, LoadSceneMode.Additive); to load your real first scene after the empty scene. Perhaps Unity is loading the first scene async while starting the engine and in your case it is blocking the progress?
    – dome12b
    20 hours ago










  • I took that suggestion and no change. Very peculiar.
    – MingMan
    11 hours ago















I am currently using Unity 2018.2.14f1 and don't have the problem with WebAssembly Builds. Did you try a Build with a clean project? Or can you reproduce the problem with your project only? We are working with our project since Unity 2017.2.4 and switched from asm.js to WebAssembly with Unity 2018.2.4
– dome12b
yesterday




I am currently using Unity 2018.2.14f1 and don't have the problem with WebAssembly Builds. Did you try a Build with a clean project? Or can you reproduce the problem with your project only? We are working with our project since Unity 2017.2.4 and switched from asm.js to WebAssembly with Unity 2018.2.4
– dome12b
yesterday












Interesting, it did not happen with a clean project. The loading percent hit other percents besides 0, 90 and 100. Any idea where to start looking into a project specific problem like this? This was not an issue for older versions of Unity on this project
– MingMan
yesterday




Interesting, it did not happen with a clean project. The loading percent hit other percents besides 0, 90 and 100. Any idea where to start looking into a project specific problem like this? This was not an issue for older versions of Unity on this project
– MingMan
yesterday












That is really difficult without knowing the project. I don't know much about the loading process, but you can try the following: make a new scene in you project and set it as first scene. In the scene attach a script with SceneManager.LoadSceneAsync(SCENE_TO_LOAD, LoadSceneMode.Additive); to load your real first scene after the empty scene. Perhaps Unity is loading the first scene async while starting the engine and in your case it is blocking the progress?
– dome12b
20 hours ago




That is really difficult without knowing the project. I don't know much about the loading process, but you can try the following: make a new scene in you project and set it as first scene. In the scene attach a script with SceneManager.LoadSceneAsync(SCENE_TO_LOAD, LoadSceneMode.Additive); to load your real first scene after the empty scene. Perhaps Unity is loading the first scene async while starting the engine and in your case it is blocking the progress?
– dome12b
20 hours ago












I took that suggestion and no change. Very peculiar.
– MingMan
11 hours ago




I took that suggestion and no change. Very peculiar.
– MingMan
11 hours ago

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53232812%2fwhy-is-unity-2018-2-webassembly-loading-intervals-only-0-90-100%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53232812%2fwhy-is-unity-2018-2-webassembly-loading-intervals-only-0-90-100%23new-answer', 'question_page');

);

Post as a guest














































































Popular posts from this blog

Top Tejano songwriter Luis Silva dead of heart attack at 64

政党

天津地下鉄3号線