elidupree/Lasercake — Issue #3: Optimize water by caching group surfaces.
Author: elidupree
Created: 2011-12-30 23:21:23+00:00
State: open

Right now, we recompute the surface of each group with an active tile in it every frame.

It is possible to cache all the tiles that border on non-group tiles, and also separately cache all the tiles that only border on open (non-rock, I guess) non-group tiles. Only the latter need to be computed every frame (the former are necessary for updating if rock disappears.)

This may not be applicable if we rewrite the water rules in some fancier way.