Camoy/ISO — Issue #13: Map Buffer Issue
Author: Camoy
Created: 2012-01-15 05:02:05+00:00
State: open

The map:generate method creates a buffer instead of a collection (like it used too). This is good for performance, but when the camera is moved, the buffer's limitations cutoff point is seen. A suggested patch would be to rewrite the buffer each time the camera is updated.

This is a fundamental change because the map:generate method and map:initialize would have to store the resources and map information in the object itself for a regeneration method to be written. Perhaps the currently generate method could have an extra two arguments for translation.

One option however, would be to use map:draw to generate a new buffer when the camera translation changes. It would then be necessary to cache the last generated camera translation. The most viable option however, would be to use the height of the dataMap to determine the size of the frameBuffer and write the entire map at once.