🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #2277

Window contents

#2277
From: John Navas
Date: Sat, 03 Oct 1992 12:00
23 lines
1616 bytes
weinkam@fraser.sfu.ca (James Lawrence Weinkam) writes:

 > I am writing a graphics program that takes a long time to generate
 > the image.  I was wondering what the best way of doing redraws is.
 > The only way I can think of that would provide good performance is
 > to create a memory context of the window as well as a screen
 > context and draw to both.  In this way, when I get the WM_PAINT
 > message I just BitBlt from the memory context to the screen
 > context.
 > Is there a way of achiving the same without having to open two HPS,
 > and drawing to both?  (like an option when opening the window to
 > tell the OS to maintain both the screen and memory context)

Why not simply draw only in the memory context, and then always use
bitblt to update the display?  With a typical dumb frame buffer
display card, this can speed up drawing considerably.  (With a good
accelerator board, it may be faster to draw only on the display and
then save the display to memory.)  It doesn't make sense to draw in
both contexts.

Best regards,
John
                                                                                                          
Technical Details
Message-ID: <1788.18.uupcb@uttsbbs.uucp>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!decwrl!netcomsv!boo!uttsbbs!john.navas

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!decwrl!netcomsv!boo!uttsbbs!john.navas
From: john.navas@uttsbbs.uucp (John Navas)
Newsgroups: comp.os.os2.programmer
Subject: Window contents
Message-ID: <1788.18.uupcb@uttsbbs.uucp>
Date: 3 Oct 92 12:00:00 GMT
Article-I.D.: uttsbbs.1788.18.uupcb
Reply-To: john.navas@uttsbbs.uucp (John Navas)
Distribution: world
Organization: The Transfer Station BBS, Danville, CA - 510-837-4610/837-5591
Lines: 23