The map is redrawn only when tiles in the map change, not when the camera moves about.
Before panning/zooming would eat up ~25-30% CPU, now it’s at 3-4%.
babsland.com
#gamedev #buildinpublic
The map is redrawn only when tiles in the map change, not when the camera moves about.
Before panning/zooming would eat up ~25-30% CPU, now it’s at 3-4%.
babsland.com
#gamedev #buildinpublic
Google Chrome DevTools did a great job helping me to debug it.
babsland.com #gamedev #buildinpublic
Google Chrome DevTools did a great job helping me to debug it.
babsland.com #gamedev #buildinpublic