home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / amiga / programm / 13116 < prev    next >
Encoding:
Internet Message Format  |  1992-09-07  |  1.5 KB

  1. Path: sparky!uunet!cbmvax!cbmehq!cbmswi!augs1!Milan_Sismanovic
  2. From: Milan_Sismanovic@augs1.ch.so.commodore.com (Milan Sismanovic)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Scrolling trouble
  5. Message-ID: <Milan_Sismanovic.09ce@augs1.ch.so.commodore.com>
  6. Date: 5 Sep 92 14:42:09 GMT
  7. Organization: Amiga Usergroup Switzerland
  8. Lines: 48
  9.  
  10. I wrote a program, which is
  11. scrolling a double buffered screen in
  12. lowres mode.
  13. This is the way I do it:
  14.  
  15. - init three bitmaps and a copperlist
  16. - make an array of the 3 bitmaps
  17.   pointers
  18. - activate the 1st bitmap
  19.  
  20. loop
  21. - wait for the copperinterrupt
  22. - change bitplanepointers of the
  23.   3rd bitmap  so that it shows
  24.   a different part of this bitmap
  25. - copy this part to the 2nd bitmap
  26. - do other gfx-stuff to 2nd bitmap
  27. - bra loop
  28.  
  29. In the copperinterrupt I swap the
  30. 1st and the 2nd bitmaps, so that the
  31. new arranged bitmap becomes active.
  32.  
  33. Now the Problem:
  34. When I'm scrolling the screen more than
  35. 2 lines/interrupt the screen is
  36. flickering. That means, that it is
  37. showing the last state before the last
  38. interrupt and the actual screen.
  39.  
  40. I think that this is because the
  41. copperinterrupt makes up the even lines
  42. and then the odd lines again and again.
  43. So that when I'm scrolling more than 2
  44. lines per interrupt one can still see the
  45. old part of the bitmap which isn't as
  46. bright as the new bitmap, but it makes
  47. the ugly flickering which I wan't to get
  48. rid of.
  49.  
  50. Unpatiently waiting for suggestions,
  51. problem solvers and the like
  52.  
  53. And big thanks in advance for trying.
  54.  
  55.  
  56.  
  57. -- DLG Pro v0.992
  58.