home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / msdos / programm / 8583 < prev    next >
Encoding:
Text File  |  1992-08-17  |  1.6 KB  |  44 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!news.mentorg.com!caeco!picard!gillmore
  3. From: gillmore@picard.slc.mentorg.com (Mike Gillmore (Consultant))
  4. Subject: Re: Can TSR slow down system too much?
  5. Message-ID: <1992Aug17.202850.12580@caeco.mentorg.com>
  6. Sender: gillmore@picard (Mike Gillmore (Consultant))
  7. Reply-To: mike_gillmore@mentorg.com
  8. Organization: Mentor Graphics Corp.,  Murray, Utah
  9. References:  <15775@star.cs.vu.nl>
  10. Date: Mon, 17 Aug 1992 20:28:50 GMT
  11. Lines: 31
  12.  
  13. In article <15775@star.cs.vu.nl>, estel@cs.vu.nl (Stel E) writes:
  14. > Hai programmers,
  15. > I've made a simple Screen Saver. I'd like the program to work
  16. > with both DOS and Windows programs. So I hooked it to the
  17. > timer interrupt (0x1c). Every time this interrupt is generated
  18. > (18.2 times a sec.) it checks the SHIFT status (scancode).
  19. > If both SHIFT keys are pressed, the screen blanks, if some
  20. > other key (SHIFT/ALT/CTRL) is pressed the screen unblankes.
  21. > The program has to check some things every time it's called.
  22. > Can this slow down my machine too much? Can my clock start
  23. > to run too slow (clock = DOS clock)? It's not so easy to
  24. > test (my machine is quite fast). I couldn't notice any
  25. > difference, not even when blanking/unblanking very fast and
  26. > frequent.
  27. > I don't think it's a problem, but I wanna be sure.
  28. > Thanks in advance,        Erik Stel (estel@cs.vu.nl)
  29.  
  30. Rather than checking at every clock tick, why not check with
  31. each key press (Int 9).  This is much more efficient (at least
  32. in my experience), and seems to make more sense.
  33.  
  34.  
  35. -- 
  36. Mike "Okie" Gillmore
  37. no .sig, no glory
  38.