Construct 3 r470

You're viewing a single comment in a conversation. View all the comments
  • 1 Comments

  • Order by
  • Right now I'm optimizing dynamic asset loading in my asset-heavy game, using replaceCurrentAnimationFrame and figured out from testing that fetching+decoding of the images can noticeably affect performance on low-end devices (especially if you do more than 1 at a time, which is very beneficial to speedup the loading). I figured out that you can put this logic in a worker to improve performance. And yes, I did with the fetch and it works, but the problem is that image decoding is forced to happen inside C3's code (with createImageBitmap as I understand it), as you need to you can only pass undecoded Blob to the aforementioned function. So I figured that, if possible, it would be nice to have alternative function that takes the result of createImageBitmap instead of Blob, so we can have more control on image loading and optimize it? Or I misunderstood how it works and it wont help? Thanks in advance!