Closed david-beal closed 7 years ago
ENV.generateData(true)
will keep all generated object identities, it is useful with framework like Angular that checks object identity to trigger repaint.
ENV.generateData(false)
regenerate everything each round.
Hi ! Forgive me for asking this simple question ~ I read the source code, but still confused.
I saw the projects that some use
ENV.generateData(true)
or can useENV.generateData(false)
, so what is the mainly difference between passingtrue
andfalse
?It seems that use
false
repaint is faster than usetrue
generateData ? And is usingtrue
will take up more memory ?