home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!ftpbox!mothost!merlin.dev.cdx.mot.com!pjd.dev.cdx.mot.com!peterd
- From: peterd@pjd.dev.cdx.mot.com (Peter Desnoyers)
- Subject: Re: VM86
- Message-ID: <peterd.715289756@pjd.dev.cdx.mot.com>
- Sender: news@merlin.dev.cdx.mot.com (USENET News System)
- Nntp-Posting-Host: pjd.dev.cdx.mot.com
- Organization: Motorola Codex, Canton, Massachusetts
- References: <1992Aug29.065940.1256@athena.mit.edu> <1992Aug29.091200.16019@klaava.Helsinki.FI> <1992Aug31.142857.4685@crd.ge.com>
- Date: Mon, 31 Aug 1992 19:35:56 GMT
- Lines: 33
-
- davidsen@ariel.crd.GE.COM (william E Davidsen) writes:
-
- >In article <1992Aug29.091200.16019@klaava.Helsinki.FI>, torvalds@klaava.Helsinki.FI (Linus Benedict Torvalds) writes:
-
- >| SIGALRM_handler()
- >| {
- >| check the screen memory in the vm86 box, and update the real
- >| screen every now and then. Do any other regular house-keeping
- >| fn's.
- >| }
-
- > This can get to be fun trying to balance the overhead of fast screen
- >updates with reasonable CPU usage. One technique used (by Locus) is to
- >do a CRC of the screen memory in blocks, and only copy what has changed.
-
- This might not be worthwhile if the bandwidth between the real screen
- and the screen memory is comparable to the CPU bandwidth. Especially
- beware of using an overly simple checksum function on a bitmapped
- display, as it may not detect changes between different background
- patterns that have the same repetition period. (this problem was seen
- on a screen-sharing program for the Macintosh)
-
- [although if the real screen is on an ISA-bus card, and screen memory is
- on the motherboard, it could very well be worth the effort.]
-
- I like Bill Davidsen's idea of using a read-only memory trap to detect
- writes to the screen, though. I wonder if it would be worthwhile to use
- this method to divide the screen up into large chunks (e.g. 4 or 8) and
- then copy only those blocks that have changed (if any) since the last
- timer tick.
-
- Peter Desnoyers
- --
-