home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18663 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.4 KB

  1. Path: sparky!uunet!stanford.edu!unix!mxmora
  2. From: mxmora@unix.SRI.COM (Matt Mora)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Help! making an assembly routine faster
  5. Message-ID: <40660@unix.SRI.COM>
  6. Date: 19 Nov 92 17:43:28 GMT
  7. References: <1992Nov16.014850.28678@cs.uoregon.edu> <1992Nov16.190947.9920@nntp.hut.fi> <1992Nov18.010815.6649@cs.uoregon.edu>
  8. Organization: SRI International, Menlo Park, California
  9. Lines: 33
  10.  
  11. In article <1992Nov18.010815.6649@cs.uoregon.edu> mkelly@mystix.cs.uoregon.edu (Michael A. Kelly) writes:
  12. >
  13. >And once again, if anyone can improve on these routines, please tell me how!
  14.  
  15.  
  16. If your going to be calling this function a lot (like in a tight loop
  17. in a game to plot sprites) You can move the Swapmmumode code out of the
  18. function and call before you make the call and restore it afterward.
  19. That takes the two trap calls out of your fast code.
  20.  
  21. like:
  22.  
  23. swapmmumode(mode);
  24.  
  25. while plottingsprites
  26.  QuickCopy(sprites[i++]);
  27.  
  28.  
  29. swapmmumode(backtowhatiswas);
  30.  
  31. If you can find a way to precompute the addresses (like a table of row 
  32. starting addresses) that might help. They mention stuff like this in one
  33. of the develop articles.
  34.  
  35. Matt
  36.  
  37.  
  38.  
  39. -- 
  40. ___________________________________________________________
  41. Matthew Mora                |   my Mac  Matt_Mora@sri.com
  42. SRI International           |  my unix  mxmora@unix.sri.com
  43. ___________________________________________________________
  44.