ikbensiep / game1

Race Game
2 stars 0 forks source link

Fixes/gfx perf update #1

Closed ikbensiep closed 2 years ago

ikbensiep commented 2 years ago

Thanks to a big performance update in js/game2.js I can now draw a second world layer, adding some depth to the environment (car will drive underneath pedestrian bridges) without dropping frames.

In an ideal world the svg would be loaded, and certain layers/groups be disabled but for now we'll make do with an extras -bridges.svg file for every track.

Performance still does take a hit with large gradient / blur areas (see hotel section in Abu Dhabi / Yas Marina.