in the end, in order to get around a slow getImageData() that, even though I only needed a 1x1 pixel from the center, still had to generate a full sized image, I found a way to scale down the path calculations layer, speeding up the process immensely.
this means that there's now a lower res image to calculate on track, off track, in pits and laptimes on, we get so much time back to do other cool stuff inside a frame.
YEA BOIII
in the end, in order to get around a slow
getImageData()
that, even though I only needed a 1x1 pixel from the center, still had to generate a full sized image, I found a way to scale down thepath
calculations layer, speeding up the process immensely.this means that there's now a lower res image to calculate
on track
,off track
,in pits
and laptimes on, we get so much time back to do other cool stuff inside a frame.closes #6