home *** CD-ROM | disk | FTP | other *** search
/ Executor 2.0 / executorv2.0.iso / pc / dos / extra / docs / maillist / text / archive.95 / text2191.txt < prev    next >
Encoding:
Text File  |  1996-03-31  |  3.0 KB  |  64 lines

  1. Content-Transfer-Encoding: 7bit
  2. Content-Length: 2864      
  3. Sender: owner-paper@nacm.com
  4. Precedence: bulk
  5.  
  6. Mat Hostetter writes:
  7. > Many Mac apps that track the cursor location make frequent calls to
  8. > reset the cursor bitmap, and usually they just keep resetting the
  9. > cursor to the same thing.  In the black-and-white Executor days, we
  10. > would detect when the cursor bitmap wasn't really changing and avoid
  11. > the overhead of telling the window server to change the cursor.  When
  12. > we added color cursor support, we no longer made that check.  So the
  13. > end result was zillions of calls to the X server to keep (redundantly)
  14. > setting the cursor over and over again.
  15. > We never noticed this problem on our machines, but apparently the
  16. > cursor flicker is irritating on other machines.  We have fixed this
  17. > problem (in theory), and the fix will be present in 1.99n.
  18. > -Mat
  19.  
  20. Hi,
  21.  
  22. The problem was actually a transition between a cursor that could be
  23. rendered in hardware and one that must be rendered in software.  When
  24. we detected the change, we flipped from H/W to S/W and then as soon
  25. as we found that the cursor could be presented in hardware, we
  26. flipped back again.  On each transition, we lost a little memory in a
  27. true leak (allocated memory twice, to the same variable, with no
  28. intervening free() - duh!).  The high rate of flipping between
  29. cursors could cause a 16MB growth in about one hour.  We fixed this.
  30.  
  31. I'm mildly surprised that a performance difference was detected.  I
  32. suspect that this has more to do with another, coincident change, to
  33. eliminate a pathological allocator/garbage collector condition, that
  34. could cause a lossless memory growth (all memory was accounted for,
  35. no leak, but a particular series of calls to the allocator could
  36. upset the garbage collector and prevent the arena from being
  37. correctly coalesced).  Correcting this algorithmic error did lead to
  38. about 5% performance loss in the memory allocator, which would
  39. translate to a couple of %age points in overall code execution with 
  40. heavy memory allocation.
  41.  
  42. I'm glad that's it is fixed in 1.99n (whetever that is) but I'm also
  43. grateful that it existed in whatever the prior release was.  Changing
  44. cursor types between hardware renderable and software renderable
  45. forms is sufficiently rare that this bug may have been in our code for 
  46. a long time, without us having any significant clue. ;-)
  47.  
  48. I'd like to add executor to our set of manual tests.  Is there a
  49. particularly good application that will exercise the display
  50. technology?  I assume that there's also an extensive "HOW-TO"
  51. somewhere... Since we don't run Macs at all, I have absolutely no
  52. idea what is involved.
  53.  
  54. Cheers, JeremyC.
  55. -- 
  56. Jeremy Chatfield  +1(303)470-5302  FAX:+1(303)470-5513  email:jdc@xinside.com
  57.         Commercial X Products - for more information please try:
  58.         X Inside Inc, P O Box 10774, Golden, CO 80401-0610, USA.
  59. http://www.xinside.com/        majordomo@xinside.com          ftp.xinside.com
  60.  
  61.