question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adapt loader to output blob for createImageBitmap

See original GitHub issue

Setup: Pixi: v5 next #cb75b1d, Browser: Chrome 64.0.3282 OS: macOs 10.12.06

What happens:
I am trying to offload image decoding from the main thread to avoid bumps in framerate. Using the current version of Pixi.js next the ResourceLoader provides an HTMLImageElement to createImageBitmap which seems to block the main thread as opposed to createImageBitmap(Blob) which spans a separate thread.

Code to replicate: I uploaded my test code to github which you can find here.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
m9dfukccommented, Jan 16, 2018

I’m slowly digging through all the source code but still missing the whole picture. I’ll submit a pull request whenever I am ready.

0reactions
lock[bot]commented, Feb 25, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Adapt loader to output blob for createImageBitmap · Issue #4611
What happens: I am trying to offload image decoding from the main thread to avoid bumps in framerate. Using the current version of...
Read more >
Developers - Adapt loader to output blob for createImageBitmap -
Adapt loader to output blob for createImageBitmap · Setup: Pixi: v5 next #cb75b1d, Browser: Chrome 64.0.3282 · What happens: I am trying to...
Read more >
580202 - createImageBitmap should perform decoding on a ...
Make decoding of createImageBitmap(Blob) work on a background thread ... It is possible that the dev-tools instrumentation needs to adapt to this change....
Read more >
createImageBitmap() - Web APIs | MDN
The createImageBitmap() method creates a bitmap from a given source, optionally cropped to contain only a portion of that source.
Read more >
third_party/blink/web_tests/TestExpectations - chromium/src
An extra line ("linear_memory_inspector") appears in the output in some cases. ... color-space/canvas-createImageBitmap-e_srgb.html [ Pass Failure Timeout ].
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found