Replies: 2 comments 2 replies
-
        
  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
      Answer selected by
        zicklag
-
| 
         Looking at the Bevy Task implementation it actually looks like the asset loading shouldn't block at all. It's not multi-threaded, but it should be  bevy/crates/bevy_tasks/src/single_threaded_task_pool.rs Lines 86 to 96 in ed36c21 I'll have to do more investigation as to waht might be blocking in my case.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I have a couple questions about how asset loading works for Bevy in the browser:
asset_server.load()an asset multiple times, it makes multiple network requests and downloads that asset multiple times. Should the asset server be caching theHandle<MyAsset>so that if Iassset_server.load()the same path it will just give me a clone of the already-created handle? I thought this is what Bevy did, but I don't know where I got that idea so I may have made it up. 😅Beta Was this translation helpful? Give feedback.
All reactions