kantholtz / norne

A storytelling engine
MIT License
0 stars 0 forks source link

broker.lanes: Smarter cache #7

Open kantholtz opened 10 years ago

kantholtz commented 10 years ago

Currently, when outside values like the worlds depth or angle change, the whole cache must be recalculated. This can be prevented by getting a smaller subset of the original values. A function based on world.map is needed to do this calculation and should have this form:

x = y / (b + ( (100-dist)/100 * (1-b)))