swarm-support
[Top][All Lists]
Advanced

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

Re: updating from 1.4.1 to 2.2.x


From: Marcus G. Daniels
Subject: Re: updating from 1.4.1 to 2.2.x
Date: 05 Apr 2002 10:40:22 -0700
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.7

>>>>> "DH" == Darold Higa <address@hidden> writes:

DH> For some strange reason now before it outputs a .png file, it
DH> draws the file its about to save to disk in the upper lefthand
DH> corner of the screen, replacing the window (or windows in the case
DH> of a graph) that is there.  Once it saves the file the windows
DH> return.

DH> Is this a problem?  I'm not positive, but I think it is seriously
DH> slowing down my simulation.

It definitely will slow things down.  Because Rasters and some other
widgets are not double-buffered, it is necessary to ensure that the
window you want saved is at the top of the stack of other windows on
the screen.  To do that, Swarm asks the window manager to make it so,
and that transaction takes a lot of time, especially with some window
managers.  One `solution' is just to save images less frequently.
Another is to write a class that has a GUI mode and a batch mode.  
In batch mode, the class can write bitmaps directly.  I think the code
Paul mentioned writes PPM files.  So you'd have to ppmtogif and then
animate the gifs with gifsicle or gifmerge, etc.


                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

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