home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / amiga / programm / 11498 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.8 KB

  1. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!mips!darwin.sura.net!tulane!agwbbs!dvtown!dvaz
  2. From: dvaz@dvtown.UUCP (David Vazquez)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re:  MakeScreen(); RethinkDisplay() vs. MakeVPort(); MrgCop(); LoadView()
  5. Distribution: world
  6. Message-ID: <dvaz.02wm@dvtown.UUCP>
  7. References:  <1b5c1b9e.ARN5a25@moria.UUCP> <paulk.0ucw@terapin.com>
  8. Date: 22 Jul 92 14:19:07 CST
  9. Organization: Not an Organization
  10. Lines: 32
  11.  
  12. In article <paulk.0ucw@terapin.com> paulk@terapin.com (Paul Kienitz) writes:
  13. >
  14. >That I had experienced.  I have since heard of several people having
  15. >trouble, though.
  16. >
  17. >>     ULONG iBaseLock = LockIBase(0);
  18. >>
  19. >>     MakeVPort(&IntuitionBase->ViewLord, &screen->ViewPort);
  20. >>     MrgCop(&IntuitionBase->ViewLord);
  21. >>     LoadView(&IntuitionBase->ViewLord);
  22. >>     UnlockIBase(iBaseLock);
  23. >>
  24. >
  25. >Now the question is, if this DOES really work, why the heck is
  26. >RethinkDisplay so damn slow?????
  27. >
  28.  
  29. RethinkDisplay() is documented as going through every ViewPort in the Intui-
  30. tion display and analizing how to relates to the others--in particular the
  31. RKM: Includes and Autodocs mention that the VP_Hide bit is set accordingly
  32. for those ViewPorts that are not displayed.  MrgCop() is called for ViewPorts
  33. that change then a LoadView() is performed.  This is considerably alot more
  34. work than what the above five lines of code accomplish.  The RKM: I&A also
  35. mentions that RethinkDisplay() may take several miliseconds and thus should
  36. not be used "ligthly".
  37.  
  38. --
  39. ============================================================================
  40.      //  Look Ma,    O         David Vazquez             \\
  41.     //               -|-     INTERNET: dvaz%dvtown@cs.tulane.edu    \\
  42.   \X/       No hands.   / \     USENET: ...!rex!dvtown!dvaz           \X/
  43. ============================================================================
  44.