Quote from: Iceboty V7000a on Thu 11/07/2013 11:14:42Room backgrounds are compressed with LZW.
I don't know the exact implementation, but I think CJ once mentioned that the backgrounds are already compressed with a scheme similar to ZIP (so I suspect it'd be something like Huffman)
Quote from: Iceboty V7000a on Thu 11/07/2013 11:14:42True, and, AFAIK, that already caused problems for some hires games. In some cases you need to alter the "Sprite cache size" parameter in config. "Anna's Quest" game forcedly preloads animation frames for the same reason (I suppose it makes simple operation over sprite to make engine load it in memory).
The problem is that the engine loads and unloads sprites "intelligently" on demand and depend on available memory, etc.(unlike in some engine that the game programmers have to manually tell the system to load assets when needed).
Calin suggested to add "Preload" script function for Views so that gamedev could tell engine to load sprites at certain points.
(Other side of this problem is that if sprite cache is not large enough engine may decide to unload some of the earlier cached sprites)