These are chat archives for pixijs/pixi.js

25th
Mar 2017
aJamDonut
@aJamDonut
Mar 25 2017 06:40
hey o/
Ivan Popelyshev
@ivanpopelyshev
Mar 25 2017 10:50
@wwepenguin 1. pass { resolution: window.devicePixelRatio } to renderer 2. Dont forget about { autoResize:true }, or you have to set css width/height yourself.
wwepenguin
@wwepenguin
Mar 25 2017 10:51
Ok,I forgot set autorsize
wwepenguin
@wwepenguin
Mar 25 2017 10:57
I run pixi at some android device those device render with webgl but I check with chrome debugger ,it show gpu raster off(device),so fps is low and I check timeline I take long time in composite layers,any solution can fix low fps in those device?
Ivan Popelyshev
@ivanpopelyshev
Mar 25 2017 11:02
whats with background, do you scroll it?
in that case you have to use pixi only for your dynamic elements, and make background separate canvas that will be moved with CSS on scrolling
hm
i dont work if it works for you. actually it utilizes composite layers more than pixi
may be it will be even worse
wwepenguin
@wwepenguin
Mar 25 2017 11:10
not scroll ,but i use webkit transforms to scale canvas ,
Is there a relationship with this?
Ivan Popelyshev
@ivanpopelyshev
Mar 25 2017 11:10
why do you need to scale canvas?
whats native resolution and whats canvas one?
wwepenguin
@wwepenguin
Mar 25 2017 11:12
i set autorize true i can't get correct innerWidth and innerHeight
i need to check this next week , i'm not using my computer haha , thx for your reply
Ivan Popelyshev
@ivanpopelyshev
Mar 25 2017 11:49
:)