mxgmn / WaveFunctionCollapse

Bitmap & tilemap generation from a single example with the help of ideas from quantum mechanics
Other
23.18k stars 1.24k forks source link

optimize OverlappingModel.Graphics() #13

Closed kchapelier closed 7 years ago

kchapelier commented 7 years ago

Avoid the creation of the contributor list, a loop and a bunch of type casting.

Also use marshal copy as implemented in SimpleTiledModel.cs in this PR : https://github.com/mxgmn/WaveFunctionCollapse/pull/10