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

Burst compile sprite placement #3

Closed Johan-S closed 4 years ago

Johan-S commented 4 years ago

Burst compiling these parts removes them as a performance bottleneck.

You'd have to test this before merging, just opening this to start a conversation.

Johan-S commented 4 years ago

Note that this roughly halves map generation time.

Johan-S commented 4 years ago

With these changes average generation time goes from around 15 seconds to around 6 seconds for a 9 player map. Also they are pure functions, so it is a lot easier to break out and see what happens.