richelbilderbeek / djog_unos_2018

Project by the Uno's at DJOG 2018-2019: Nature Zen
GNU General Public License v3.0
6 stars 2 forks source link

Try to make tile::get_corner constexpr #628

Closed richelbilderbeek closed 5 years ago

richelbilderbeek commented 5 years ago

Is your feature request related to a problem? Please describe.

I see that tile::get_corner takes up 15% of all run-time. Taking a closer look at the function, it appears it can be made constexpr.

Describe the solution you'd like

Describe alternatives you've considered

None.

Additional context

None.

robkruger commented 5 years ago

It cannot be done I think because it is variable, it changes when the tile gets rotated