These are chat archives for pixijs/pixi.js

29th
Aug 2018
Sam Stonehouse
@SamStonehouse
Aug 29 2018 10:16
Does anyone know if PIXI works with OffscreenCanvas?
Ivan Popelyshev
@ivanpopelyshev
Aug 29 2018 11:20
no it doesnt
what the point?
Sam Stonehouse
@SamStonehouse
Aug 29 2018 11:43
I just got it to work
Offscreen canvas allows you to move lots of rendering logic off the main thread, hopefully making everything smoother.. eventually
I was reading this: https://developers.google.com/web/updates/2018/08/offscreen-canvas and thought I'd give it a try
But I imagine it will also be useful for generating still images from whatever PIXI application you create at given states, for things like testing or screenshots
Ivan Popelyshev
@ivanpopelyshev
Aug 29 2018 12:03
well, try it!
use some kind of shim like pixi-shim , to avoid calling DOM
call pixi and update your stage in different thread
and in main thread you have to do.. nolthing!
because the best kind of worker is when you manipulate stage in main thread and rendering in other, or vise versa
and you have to synchronize the stage.. which is a big problem
its not possible to make into an engine. Mozilla tried (shumway project) and it leaked seriously
Sam Stonehouse
@SamStonehouse
Aug 29 2018 12:55

I've done enough for what I needed for now and I won't be looking at it anymore until OffscreenCanvas is supported outside of flags (will be in Chrome soon).

But one of the ways the offscreen canvas works is to copy the canvas as it's rendered onto a normal canvas in the DOM (which is how I imagine most PIXI use-cases would work). I suppose the main hurdle there would be how the controls would be attached

Ivan Popelyshev
@ivanpopelyshev
Aug 29 2018 13:01
:)
Daniel Sheppard
@danny0i_gitlab
Aug 29 2018 14:23
Why can't I find any pixi exporter folder in TexturePacker?
Ivan Popelyshev
@ivanpopelyshev
Aug 29 2018 14:24
what?
Daniel Sheppard
@danny0i_gitlab
Aug 29 2018 14:25
I'm trying to make my own custom exporter for TexturePacker. It instructed me to copy the folder of the exporter I wanted to extend, but Pixi's folder isn't anywhere in TexturePacker's directory
Ivan Popelyshev
@ivanpopelyshev
Aug 29 2018 14:28
oh
ask @CodeAndWeb i guess
look, he even gave us a patch for new things in texturePacker: pixijs/pixi.js#5011
Daniel Sheppard
@danny0i_gitlab
Aug 29 2018 14:31
All I need to do is add in simple hitbox info
Ivan Popelyshev
@ivanpopelyshev
Aug 29 2018 14:36
I dont have experience with TexturePacker templates
Daniel Sheppard
@danny0i_gitlab
Aug 29 2018 14:55
How would I make modifications to stuff like spritesheetParser.js?