Skip to content

zszq/pixi_for_worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

To make PIXI work in web worker you need two things:

  • pass events from main thread to web worker (you can see this in index.html)
  • pass these events to pixi event listeners (you can see this in worker.js)

Passing events to pixi requires some trickery, i.e. capturing calls to addEventListener, so you can store them and use for your proxied events. You can see all required hacks in worker.js.

在worker中使用pixi.js,支持渲染纹理和交互事件,其他影响未进行全面测试,期待官方原生支持。

About

pixi for worker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published