简体   繁体   中英

createImagebitmap on main thread?

I have problem with lags while replacing textures so I decided to use createImagebitmap(it did not help). As far as I know, it should work on separated threads, not on the main one. While using dev-tools performance sections it is displayed as it is working on the main thread. Is that correct? (I'm using angular+pixi.js on Chrome)

主线程

Javascript is a single threaded language. This means it has one call stack and one memory heap. As expected, it executes code in order and must finish executing a piece code before moving onto the next. Please see: https://dev.to/steelvoltage/if-javascript-is-single-threaded-how-is-it-asynchronous-56gd

HTML5 and CSS3 are multithreaded, but javascript is not.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM