nuke-haus / mapnuke

An open-source map generator for Dominions 5 and 6
http://map.nuke.haus
GNU General Public License v3.0
25 stars 14 forks source link

Refactor inefficient code usages #5

Closed Johan-S closed 4 years ago

Johan-S commented 4 years ago

The sum of these changes makes map generation go ~250% faster and map export ~1000% faster.

Johan-S commented 4 years ago

Before changes: mapnuke_place_sprites_slow

After changes: mapnuke_medium

(Includes improvements in https://github.com/nuke-makes-games/mapnuke/pull/3)