home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7662 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.1 KB  |  50 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: news.eunet.fi!nullnet!tna!marcus.alanen
  3. From: marcus.alanen@tna.nullnet.fi (Marcus Alanen)
  4. Subject: Re: Fastest way to displa
  5. Message-ID: <64_5737@tna.nullnet.fi>
  6. References: <4l0pi6$gus@mn5.swip.net> <4l2f1k$eqt@mn5.swip.net>
  7. Organization: The New Age BBBS
  8. Sender: news@tna.nullnet.fi (News Administrator)
  9. Date: 19 Apr 1996 20:05:06 +0200
  10. MIME-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-1
  12. Content-Transfer-Encoding: 8bit
  13.  
  14. > In article <4l0pi6$gus@mn5.swip.net>, Ola.Lindgren@mailbox.swipnet.se
  15. > (Daniel Hallgren) says:
  16.  
  17. >>I'm thinking of writing a game, and I wonder which way is the best and fastes
  18.  
  19. >>to display graphics on a customscreen opened with OpenScreenTagList()?
  20. > A superbitmap window is definitely overkill. There's two simple
  21. > options: 1) Just write to the screens bitmap which you either let
  22. > OpenScreenTagList() create, or supply your own. By having two bitmaps
  23. > which you alternate between, i.e. draw on one and display the other,
  24. > and when the drawing is finished switch screens, so that you display
  25. > the newly drawn bitmap and draw on the other. This tecnique is called
  26. > Double Buffering. (In v39+ there's some functions for this in
  27. > graphics.library)
  28.  
  29.     I need to draw a map made of 16x16 icons, every now and then but
  30.     not all the time (strategy game). Is the routines provided by
  31.     graphics.library fast enough?? On my A500 it looks quite slow,
  32.     not that I couldn't live with it, but anyway... I use
  33.     BlitBitMap() on a single buffered screen (Kickstart V33).
  34.     Do gfx-routines wait 1/50th of a second for each blit, or
  35.     do you have any ideas for improvement?
  36.  
  37. > 2) Open a borderless backdrop window on which cover the entier screen.
  38. > This has the advantage that you can add gadget (gadtools too) to the
  39. > display.
  40.  
  41.     Should the window be +11 pixels at the top, so that you can
  42.     grab the screen and move it? Or does it matter, will Intuition
  43.     still think that the user is grabbing the screen and not activating
  44.     the window?
  45.  
  46. > Peter Liljenberg
  47.  
  48.     Marcus Alanen
  49.     marcus.alanen@tna.nullnet.fi
  50.