home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / next / software / 2549 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  2.3 KB

  1. Path: sparky!uunet!rosie!aozer
  2. From: aozer@next.com (Ali Ozer)
  3. Newsgroups: comp.sys.next.software
  4. Subject: Re: Faster 3.0 on Color Machine via dwrite
  5. Message-ID: <5795@rosie.NeXT.COM>
  6. Date: 7 Nov 92 23:36:05 GMT
  7. References: <1992Oct30.235141.4139@kakwa.ucs.ualberta.ca>
  8. Sender: news@NeXT.COM
  9. Organization: Next Computer, Inc.
  10. Lines: 49
  11.  
  12. In article <1992Oct30.235141.4139@kakwa.ucs.ualberta.ca> Gary Ritchie writes:
  13. >What I have done is to turn off color by default in ALL applications with:
  14. >      dwrite -g NXWindowDepthLimit TwoBitGray
  15. >...you can reenable color selectively, ie:
  16. >      dwrite GoldDigger NXWindowDepthLimit TwelveBitRGB
  17.  
  18. What a fine choice of an app to run in color. 8-)
  19.  
  20. >Have others tried this technique before?  Is my machine really going  
  21. >faster, or am I just light-headed from hunger late on a Friday afternoon?
  22.  
  23. The window server uses lazy promotion to assure that windows remain skinny
  24. until they need to draw some color that cannot be represented in the current
  25. depth. All windows start life out as 2-bit windows, the moment you draw
  26. one of the non-standard 4 grays, they get deeper. This promotion
  27. continues upto the time the windows reach their depth limit.
  28.  
  29. On a 2-bit machine, all windows are depth-limited to 2-bits (by default). Thus
  30. windows will never get deeper than 2 bits. On a NSC, they are depth limited
  31. to 12 bits. Thus, by doing the TwoBitGray dwrite on a NSC, you are simply
  32. making all windows remain at 2 bits.
  33.  
  34. This operation will save memory; backing stores of would-be color windows
  35. now occupy 8 times less memory. It can also speed up drawing, depending on the
  36. type of drawing operations. However, it does slow down the flush from the 
  37. backing  store to the screen in some cases; for instance, flushing an 8-bit 
  38. window to a 12-bit screen isn't too zippy. Flushing a 2-bit window to a 12-bit
  39. screen is pretty quick, so it is conceivable that your machine might seem a 
  40. bit faster with a 2-bit window depth limit. The reduced swapping probably
  41. helps as well, when switching between apps.
  42.  
  43. One final note... Flushing 2-bit windows with alpha to a 12-bit screen is
  44. rather slow, and I believe this is what causes Frame to run real slow
  45. on a NSC when the window depths are limited. If you don't limit the
  46. depth, Frame's windows become 12-bits (with alpha), and in that case the
  47. flush is much faster.
  48.  
  49. Ali, Ali_Ozer@NeXT.com
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.