home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21102 < prev    next >
Encoding:
Text File  |  1993-01-09  |  1.7 KB  |  37 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!gatech!concert!samba!usenet
  3. From: Michael.Kohne@launchpad.unc.edu (Michael Kohne)
  4. Subject: Fast copies from offscreen buffer to screen.
  5. Message-ID: <1993Jan10.031829.25011@samba.oit.unc.edu>
  6. Sender: usenet@samba.oit.unc.edu
  7. Nntp-Posting-Host: lambada.oit.unc.edu
  8. Organization: University of North Carolina Extended Bulletin Board Service
  9. Date: Sun, 10 Jan 1993 03:18:29 GMT
  10. Lines: 25
  11.  
  12. I am currently involved with a friend of mine in writing a game. The
  13. intent is for the game to be in full-color, and so we need a fast way to 
  14. copy large off-screen pixmaps to the screen. We've tried using copybits
  15. (making sure to setup the offscreen ports with the same color table and
  16. ctseed as the screen), but that has proven too slow for our uses. I've had
  17. a go at writing my own fixed-depth copybits, but I've not yet found a way
  18. to get it much faster than copybits is (on small images, my overhead is
  19. so much lower that I beat copybits by a mile, but on screen-sized images
  20. my stuff is only slightly better than copybits).
  21.  
  22. Any hints on how to do this in a faster manner would be appreciated. 
  23.  
  24. Currently we are considering a 'dirty-rectangles' system, however, it is
  25. likely that most of the screen will change on each frame (lots of moving
  26. objects.) I know this sort of thing IS possible, I own hellcats over the 
  27. pacific and it looks like it's updating the whole screen each frame.
  28.  
  29. Michael Kohne
  30. House of the Techno-Discordians, Automotive Amusements Division
  31.  
  32. --
  33.    The opinions expressed are not necessarily those of the University of
  34.      North Carolina at Chapel Hill, the Campus Office for Information
  35.         Technology, or the Experimental Bulletin Board Service.
  36.            internet:  laUNChpad.unc.edu or 152.2.22.80
  37.