On 01.02.2012 10:36, leowang wrote:
>>
>>> I have a simple large window, it contains nothing, only display black,
>>> but it will consumes lots of memory (totally w * h * 4 Bytes), ps: my
>>> platform is 32bpp.
>>> =
>>
>>> Why such a simple window consume so much memory? How to reduce the
>>> memory consume. Thanks.
>>
>> How much memory would you expect it to consume?
>
> I expected it consume not more than 1MB, and it should not related to window 
> size, maybe it is a stupid thinking.

You did not write on which type of system you saw this, and
how you measured it. Memory consumption of such objects like
windows depends very much on the OS you're running and other
window attributes. From your other post I assume you're using
Linux (X11).

For FLTK, if you use a double buffered window (FLTK2 = DoubleWindow)
then the system must buffer at least once the entire window contents
for the back buffer. The actual window contents may only reside in
graphics memory, but maybe the window manager can cache it, too.

As Ian said, FLTK2 is deprecated...

And this kind of questions is more on topic in fltk.general, please
post your user/application questions there. fltk.development is for
discussion of the fltk library itself. Thanks.

Albrecht
_______________________________________________
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to