home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / sys / amiga / graphics / 5840 < prev    next >
Encoding:
Text File  |  1992-08-31  |  1.6 KB  |  39 lines

  1. Newsgroups: comp.sys.amiga.graphics
  2. Path: sparky!uunet!munnari.oz.au!newsroom.utas.edu.au!bruny.cc.utas.edu.au!u894793
  3. From: u894793@bruny.cc.utas.edu.au (Timothy D Little)
  4. Subject: How do I double-buffer an Intuition screen?
  5. Message-ID: <u894793.715312894@bruny>
  6. Sender: news@newsroom.utas.edu.au
  7. Organization: University of Tasmania, Australia.
  8. Date: Tue, 1 Sep 1992 02:01:34 GMT
  9. Lines: 28
  10.  
  11.  
  12. I am writing a 3D game, which must should run under Intuition reasonably
  13. nicely.  (Multitasking, screen dragging, etc)  I have Kickstart ROM 1.3
  14.  
  15. My problems arose when I tried to remove the flicker from my test program
  16. using double-buffering.
  17.  
  18. 1) I tried allocating a spare bitmap, and switching the BitMap structures
  19. between the Screen and my private one.  Didn't work - I had forgotten about
  20. the copperlists requiring update.
  21.  
  22. 2) As a test, I tried the above, and calling RethinkDisplay.  As I thought, it
  23. took too long to complete for my purposes.
  24.  
  25. 3) I tried making two copies of the View structure, one for each bitmap, and 
  26. switching using LoadView.
  27. This wasn't good enough either - I can't move the screen without horrible
  28. effects.
  29.  
  30. 4) I had a look in the graphics.library for suitable routines.  MakeVPort
  31. looked OK, but needs to be linked with the other VPort copperlists, and
  32. where do I get those?
  33.  
  34. At this point, I decided I'd just fire up the modem and ask for advice.
  35. After all, I only want to change a single set of addresses in the copperlist,
  36. and if I took over the system, it would only take 3 machine code instructions.
  37. --
  38. Timothy D Little   a.k.a.   u894793@bruny.cc.utas.edu.au
  39.