HMI-Studios / CivCloneJS

3 stars 1 forks source link

Try to avoid rendering the map if not required #162

Open kjniemela opened 1 year ago

kjniemela commented 1 year ago

Currently, the map is always rendered at the full framerate (60 FPS by default) no matter what. This really isn't needed when the camera isn't moving and the map isn't updating. Try to only render the map when something actually changes.

Side note: all of this will obviously be moot if we decide to add animations... at that point, maybe we need to find a way to let only certain tiles be rendered, and not the whole screen at once?