comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Backing store
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Backing store [message #9913] Thu, 11 September 1997 00:00 Go to next message
thompson is currently offline  thompson
Messages: 584
Registered: August 1991
Senior Member
I run IDL on DEC Alpha Workstations running OSF/Digital Unix. I've noticed
that the newer machines give me more problems with backing store. In other
words, if a graphics window is covered up and then brought back to the
foreground, then the parts of the image that were obscured are lost, unless one
uses RETAIN=2. This is not a problem on the older Alpha workstations.

It seems to me that there are two possibilities. Either the problem is
associated with the newer Alpha hardware, or with the newer version of the
Operating System. So far, we have not upgraded our older machines to OSF 4.0,
so maybe that's why those machines do not give any problems.

I could put DEVICE, RETAIN=2 into the IDL startup script, but according to the
online help:

Pixmaps are a precious resource in the X server, so backing
pixmaps should only be requested for windows with contents
that must absolutely be preserved.

Has anyone else noticed this behavior under Digital Unix? Is there anything to
do to tune the system to keep this from happening?

Thank you,

William Thompson
Re: backing store [message #11049 is a reply to message #9913] Wed, 04 March 1998 00:00 Go to previous messageGo to next message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Steven DiMarco (dimarco@aquaman.tamu.edu) writes:

> I am running PV-WAVE CL Version 6.10 (sgi IRIX mipseb) on
> an SGI O2 and would like to set the graphics window to
> automatically restore the latest graphic after closing/opening
> the window. Any suggestions?

Humm, a lot of variables here. Have you tried setting
RETAIN=2 on the window when you create it? (Or, alternatively,
if you want this for all your windows, you can try setting
RETAIN=2 with the DEVICE command.)

David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: backing store [message #44557 is a reply to message #9913] Tue, 28 June 2005 08:27 Go to previous messageGo to next message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
Kenneth Bowman wrote:
> "KK T" wrote:
>
>> Good day,
>>
>> Does anyone know what is a backing store ?
>> I had encountered a couple of prompt where I load a huge array (20000
>> by 20000) of data to draw_widget and using TV command
>>
>> "unable to allocate memory for backing store. Window closing"
>>
>> Is there any way for to increase the size of backing store?
>>
>> Kok Kiang
>
>
> Backing store is where the graphics device stores copies of windows (bitmaps).
> Backing store makes it possible to cover and uncover windows quickly.
>
> You are requesting about 400 MB of backing store.
>
> You should start by looking at the RETAIN keyword to the DEVICE procedure or
> look up backing store in the documentation index.

And I might add that I doubt that the backing store is your real issue
since most graphics devices will not be able to draw a 20000x20000
bitmap regardless of what you backing store is set to.

You will need to either break this image up or down sample using REBIN
or CONGRID.

-Rick
Re: backing store [message #44558 is a reply to message #9913] Tue, 28 June 2005 07:15 Go to previous messageGo to next message
K. Bowman is currently offline  K. Bowman
Messages: 330
Registered: May 2000
Senior Member
In article <1119954111.811784.322640@f14g2000cwb.googlegroups.com>,
"KK T" <mailbox_cw-tech@yahoo.com.sg> wrote:

> Good day,
>
> Does anyone know what is a backing store ?
> I had encountered a couple of prompt where I load a huge array (20000
> by 20000) of data to draw_widget and using TV command
>
> "unable to allocate memory for backing store. Window closing"
>
> Is there any way for to increase the size of backing store?
>
> Kok Kiang

Backing store is where the graphics device stores copies of windows (bitmaps).
Backing store makes it possible to cover and uncover windows quickly.

You are requesting about 400 MB of backing store.

You should start by looking at the RETAIN keyword to the DEVICE procedure or
look up backing store in the documentation index.

Ken Bowman
Re: backing store [message #44639 is a reply to message #9913] Wed, 29 June 2005 08:50 Go to previous message
Rick Towler is currently offline  Rick Towler
Messages: 821
Registered: August 1998
Senior Member
KK T wrote:

> Will I lose the details of the bitmap using CONGRID or REBIN if I zoom
> my view to an area smaller than the orginial image?
>
> ENVI provides image, scroll and zoom window. However, those windows
> take up too much space on the desktop and I will like to combine all
> features in one window. That is, when I zoom in to the maximun, I can
> see the finest details of the bitmap, when I zoom out to the maximun, i
> can see the overall view of the bitmap. At the same time, i should be
> able to view the whole area of the bitmap at that zoom level with
> scroll bar activated.
>
> Am I too ambitious?

I'm not an image guy, nor do I act like one on the internet, but I would
use a combination of REBIN and WIDGET_DRAW with the /APP_SCROLL keyword
set. You'll keep the original image in memory and REBIN that image for
display, altering the dimensions according to your zoom level.

I have no idea if this is feasible performance wise, but it is where *I*
would start. Maybe someone else can come up with a better approach.


-Rick
Re: backing store [message #44644 is a reply to message #44557] Wed, 29 June 2005 01:45 Go to previous message
KK T is currently offline  KK T
Messages: 8
Registered: June 2005
Junior Member
Good day,

Will I lose the details of the bitmap using CONGRID or REBIN if I zoom
my view to an area smaller than the orginial image?
ENVI provides image, scroll and zoom window. However, those windows
take up too much space on the desktop and I will like to combine all
features in one window. That is, when I zoom in to the maximun, I can
see the finest details of the bitmap, when I zoom out to the maximun, i
can see the overall view of the bitmap. At the same time, i should be
able to view the whole area of the bitmap at that zoom level with
scroll bar activated.

Am I too ambitious?

Kok Kiang
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: dialog_pickfile: changing default view in windows
Next Topic: A question about Gaussian distributions in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 19:33:08 PDT 2025

Total time taken to generate the page: 1.59885 seconds