remance / Masendor

Open source educational and historical battle action game, All helps accepted
MIT License
142 stars 31 forks source link

more optimize draw map (cut of 0.75 seconds by just one line of code) #40

Closed coppermouse closed 1 year ago

coppermouse commented 1 year ago

But to be fair, not tested this code. Perhaps you want to test it?

I think map_array only affect get_height()

OLD: Loading map images... DONE (2.628779888153076s)

NEW: Loading images... DONE (1.8457841873168945s)