ehgoodenough / what

1 stars 0 forks source link

Aliasing of cube when rendering on Firefox. #6

Open kevingranade opened 6 years ago

kevingranade commented 6 years ago

Cube exibits aliasing artifacts on Firefox and rotates fairly slowly.

Possibly related warning from console: Error: WebGL warning: drawElements: This operation requires zeroing texture data. This is slow. index.js:24818:13

"PixiJS 4.5.5 - WebGL - http://www.pixijs.com/" index.js:1073:9

kevingranade commented 6 years ago

Upstream issue: https://github.com/pixijs/pixi.js/issues/3897

ehgoodenough commented 6 years ago

Hm, the upstream issue makes it sound like it relates to our texture buffering. Currently, I'm using a somewhat unorthodox loading scheme via webpack, while most of the Pixi documentation suggests you use their in-library loading system. I suspect it has something to do with that. Investigating.

kevingranade commented 6 years ago

Pixi demo code at http://pixijs.github.io/examples/#/basics/basic.js triggers the same warning, but uses PIXI.Sprite.fromImage()

ehgoodenough commented 6 years ago

Good catch!