ikbensiep / game1

Race Game
2 stars 0 forks source link

Investigate why major GC (?) happens when you switch between ontrack and offtrack #39

Open ikbensiep opened 1 year ago

ikbensiep commented 1 year ago

This issue appears as a major frame drop when transitioning between ontrack and offtrack surface. It does not happen when you transition from green (track) to blue (pit / paddock area).

However, when you transition between either surface type on to nothing (or black) ie, offtrack or vice versa, there's always a big frame drop. Performance analysis seems to indicate major garbage collection happening.

It's odd that this is happening, perhaps needs looking into the gtImageData routine.