/* [EXPERIMENTAL PLUGIN - PROBABLY NOT SUITED FOR IN PRODUCTION USE] * Clear RMMV internal cache's parallaxes after entering a map. This will increase load times * for parallax maps that were already visited and introduce some slight memory usage decreases. */ (function() { var _Game_Map_setupParallax = Game_Map.prototype.setupParallax; Game_Map.prototype.setupParallax = function() { _Game_Map_setupParallax.call(this); var cache = ImageManager._cache; for(var key in cache) { if (key.startsWith("img/parallaxes")) { cache[key]._image.src= ""; delete cache[key]; } } } })();