anton-johansson / 2d-game

Apache License 2.0
0 stars 0 forks source link

Improve algorithm that builds vertices for the tiles #15

Open anton-johansson opened 6 years ago

anton-johansson commented 6 years ago

It's a real bad algorithm, currently. For example, there's a few nasty while-loops that we probably can get rid of.

The calculations alone reduce my FPS on my laptop from ~8500 to ~3500.

anton-johansson commented 6 years ago

Marking this as a bug, because we get some IndexOutOfRangeExceptions from time to time.