arx-tools / arx-level-generator

A tool for creating Arx Fatalis maps
MIT License
6 stars 0 forks source link

implement caching slices of polygons #7

Open meszaros-lajos-gyorgy opened 6 months ago

meszaros-lajos-gyorgy commented 6 months ago

loading a piece of an existing map when only a small portion of it is needed is quite wasteful and would be nice if it could be cached in the cache directory.

image

meszaros-lajos-gyorgy commented 4 months ago

The question is: how would the code know that this piece of map data's cached value needs to be invalidated? Two parts make up the caching here: the initial data and the instructions. We can assume that the original level data never changes, but how to store the intructions and compare them to a later version to see if they changed?