ikbensiep / game1

Race Game
2 stars 0 forks source link

Fixes/trackrework #7

Closed ikbensiep closed 2 years ago

ikbensiep commented 2 years ago

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 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.

closes #6