home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / bsd / 8754 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.6 KB  |  45 lines

  1. Newsgroups: comp.unix.bsd
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!rock!stanford.edu!agate!dog.ee.lbl.gov!news!nosc!crash!fpm
  3. From: fpm@crash.cts.com (Frank Maclachlan)
  4. Subject: Speedup for 386BSD 0.1 pccons display (w/ patch)
  5. Organization: CTS Network Services (crash, ctsnet), El Cajon, CA
  6. Date: 11 Nov 92 14:44:34 PST
  7. Message-ID: <1992Nov11.144434.19076@crash>
  8. Summary: Roughly doubles scrolling speed
  9. Keywords: 386BSD pccons patch
  10. Lines: 33
  11.  
  12. The 386bsd 0.1 console display driver, '/sys/i386/isa/pccons.c',
  13. uses bcopyb() to block move screen memory when scrolling up.  This
  14. is inefficient on machines w/ a 16 bit or greater data path to the
  15. screen memory.  I changed the bcopyb() call to bcopy() and realized
  16. a 2x speedup when displaying scrolling text w/ a 16 bit VGA card.
  17.  
  18. The following diff is against the original (virgin) 386bsd 0.1
  19. /sys/i386/isa/pccons.c file:
  20.  
  21.  
  22. *** pccons.c.ORIG    Tue Aug 11 17:08:53 1992
  23. --- pccons.c    Wed Nov 11 15:06:34 1992
  24. ***************
  25. *** 791,797 ****
  26.       }
  27.       if (sc && crtat >= Crtat+vs.ncol*vs.nrow) { /* scroll check */
  28.           if (openf) do (void)sgetc(1); while (scroll);
  29. !         bcopyb(Crtat+vs.ncol, Crtat, vs.ncol*(vs.nrow-1)*CHR);
  30.           fillw ((at << 8) + ' ', Crtat + vs.ncol*(vs.nrow-1),
  31.               vs.ncol);
  32.           crtat -= vs.ncol;
  33. --- 791,797 ----
  34.       }
  35.       if (sc && crtat >= Crtat+vs.ncol*vs.nrow) { /* scroll check */
  36.           if (openf) do (void)sgetc(1); while (scroll);
  37. !         bcopy(Crtat+vs.ncol, Crtat, vs.ncol*(vs.nrow-1)*CHR);
  38.           fillw ((at << 8) + ' ', Crtat + vs.ncol*(vs.nrow-1),
  39.               vs.ncol);
  40.           crtat -= vs.ncol;
  41. --
  42. UUCP: {hplabs!hp-sdd ucsd nosc}!crash!fpm
  43. ARPA: crash!fpm@nosc.mil
  44. INET: fpm@crash.cts.com
  45.