glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[glob2-devel] memory use (was: darkness of fog of war and how to change


From: Joe Wells
Subject: [glob2-devel] memory use (was: darkness of fog of war and how to change it correctly)
Date: Fri, 13 Jul 2007 10:25:36 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Stéphane Magnenat <address@hidden> writes:

>> To allow easy adjustment and maybe even allow the user to set fog of war
>> density in the settings, the png alpha should be [0 .. 1] and be scaled by
>> some alpha programmatically. I guess that is possible.
>
> Yes, this feature just has to be added to GAGCore::DrawableSurface and 
> GAGCore::Sprite.
>
> By the way, I just noticed someone has added lot of members to 
> DrawableSurface, presumably for text screen dump. This is bad, this code, 
> related to screen, should be in GAGCore::GraphicContext. There is tens of 
> thousands of GAGCore::DrawableSurface instantiated, so there is a loss of 
> memory there.

Could that explain the huge memory use increase in version 0.22?

This is bug 19601 (“gigantic memory usage increase to load maps in 0.8.22”):

  http://savannah.nongnu.org/bugs/index.php?19601

-- 
Joe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]