These are chat archives for pixijs/pixi.js

15th
Jan 2018
@R_Talon_twitter
Jan 15 2018 08:39
Good morning from spin!!! one fast question.
Is there any way por BlendMode.OVERLAY for PIXI.Graphics()? I need draw a line with overlay.
Thanks!!
from spain*
Ivan Popelyshev
@ivanpopelyshev
Jan 15 2018 09:47
pixi-picture has shader for sprites that emulates custom blend modes, you can alter it to work with Graphics
again, its emulation. It can be slow. You have to understand how it works internally before you use it :)
@R_Talon_twitter
Jan 15 2018 09:48
ok!! thanks Ivan!!
take a look at pixi-picture :D
@R_Talon_twitter
Jan 15 2018 11:08
pixi-picture with Overlay in desktop is perfect!!! but in mobile no run :(
Ivan Popelyshev
@ivanpopelyshev
Jan 15 2018 11:43
its based on readPixels (no alphafilter on stage) and copyTexImage2d (if there's alphafilter on stage)
readpixels is slow everywhere, because its synchronous operation.
copyTexImage2d requires framebuffer manipulation that is slow for mobiles.
@R_Talon_twitter
Jan 15 2018 11:52
year 2018 with fantastic mobiles, CPU with many cores, GPU ultra fast.......y with problem with webgl T_T
I don't understand
ok Ivan!! I will find a solution
Ivan Popelyshev
@ivanpopelyshev
Jan 15 2018 11:52
memory copying operation is slow
and memory speed differs on mobiles and PC's
@R_Talon_twitter
Jan 15 2018 11:53
yes yes, I know
Ivan Popelyshev
@ivanpopelyshev
Jan 15 2018 11:53
its also a problem for integrated videocards that share memory with processor
nvidia and ati >> anything else
@R_Talon_twitter
Jan 15 2018 11:54
yes
I agree you
Ivan Popelyshev
@ivanpopelyshev
Jan 15 2018 11:54
but even for Intel HD copying operation isnt that slow
and fillrate problems can be fixed by using z-buffer
mobiles are at disadvantage.
@R_Talon_twitter
Jan 15 2018 11:55
a huge disadvantage
Ivan Popelyshev
@ivanpopelyshev
Jan 15 2018 11:55
i have an idea how to make pixi faster, but i have no devices to test on
the idea is that we need to gl.clear just after we bind the framebuffer, that way we'll have one less copying operation
but i have nothing to test on and no one wants to help with it.
@R_Talon_twitter
Jan 15 2018 11:56
absolutely yes!! clear de scren
Ivan Popelyshev
@ivanpopelyshev
Jan 15 2018 11:56
not screen, framebuffer
so it doesnt copy its previous state
@R_Talon_twitter
Jan 15 2018 11:57
I will think about it
Ivan Popelyshev
@ivanpopelyshev
Jan 15 2018 11:58
i need someone who has multiple devices
i can modify pixi and then we can gather stats
one device isnt enough, we need different video chips
@R_Talon_twitter
Jan 15 2018 11:59
snapdragon, tegra, mali, etc
yes
Ivan Popelyshev
@ivanpopelyshev
Jan 15 2018 11:59
adreno )
@R_Talon_twitter
Jan 15 2018 11:59
hahahaha yes :)
Ivan Popelyshev
@ivanpopelyshev
Jan 15 2018 12:00
i dont have any experience with mobile devices
@R_Talon_twitter
Jan 15 2018 12:00
no time, no devices, ...
Ivan Popelyshev
@ivanpopelyshev
Jan 15 2018 12:00
i can just change the way pixi behaves
@R_Talon_twitter
Jan 15 2018 13:37
If I find out something shall let you know!
I'm goint to testing my code