These are chat archives for pixijs/pixi.js

23rd
Jan 2016
Bar Ziony
@bartzy
Jan 23 2016 13:10
How do I know that something is "dirty"? i.e. I need to render
setting a global dirty flag every time I update anything in any object, seems a bit excessive
and error prone
Ivan Popelyshev
@ivanpopelyshev
Jan 23 2016 13:22
that PR is about dirty transforms, not rendering stuff
some users are paranoid about performance and want transforms to be updated only if something was changed
that's optional classes for them
I personally dont believe in that optimization, but I made PR because i see obvious errors in it.
Micheal Winger
@mordof
Jan 23 2016 16:08
@ivanpopelyshev when you say you don't believe in that optimization, is that because it doesn't accomplish very much? or are there better ways of doing things that make it not necessary?
Bar Ziony
@bartzy
Jan 23 2016 17:32
@ivanpopelyshev I was talking in general, not specifically about this PR
How do I know if I need to render() or not. Wanted to know the different options to implement this
Ivan Popelyshev
@ivanpopelyshev
Jan 23 2016 17:33
@mordof its not a bottleneck in my projects
it will accomplish something only in specific tests
@Bartzy yeah, that's a problem. I solve it in each project differently
Bar Ziony
@bartzy
Jan 23 2016 17:39
@ivanpopelyshev Can you give me some different approaches?
Ivan Popelyshev
@ivanpopelyshev
Jan 23 2016 17:40
In most cases, I'm using multiple canvases, and render() some of them only if scrolling has happened
Bar Ziony
@bartzy
Jan 23 2016 18:18
so you don't track individual PIXI objects in the graph?
Ivan Popelyshev
@ivanpopelyshev
Jan 23 2016 18:51
no
Bar Ziony
@bartzy
Jan 23 2016 20:01
:|
I'm trying to find a nice way of doing that
Ivan Popelyshev
@ivanpopelyshev
Jan 23 2016 21:27
there's no nice ways for that
old-gen engines were abble to do that