Enabled caching images for lowmem unconditionally...

...since it seems to save memory (bug #11022).
This commit is contained in:
Mark de Wever 2008-02-09 23:49:13 +00:00
parent 006ef441b1
commit 10d3ca45dd
2 changed files with 5 additions and 8 deletions

View file

@ -66,6 +66,8 @@ Version 1.3.15+svn:
* Optimize roads placing of random map
* when a unit miss an animation, the engine will base the replacement on
the standing animation instead of the standing frame
* enabled caching images for lowmem unconditionally since it seems to save
memory (bug #11022)
Version 1.3.15:
* language and i18n:

View file

@ -1716,14 +1716,9 @@ void unit::redraw_unit(game_display& disp, const gamemap::location& loc)
}
#endif
surface image(image::get_image(image_loc,
image::SCALED_TO_ZOOM,
#ifndef LOW_MEM
true
#else
state_ == STATE_STANDING?true:false
#endif
));
// The caching used to be disabled for the lowmem case but that actually
// resulted in a higher memory usage see bug ##11022.
surface image(image::get_image(image_loc, image::SCALED_TO_ZOOM, true));
if(image == NULL) {
image = still_image(true);