home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!unix!mxmora
- From: mxmora@unix.SRI.COM (Matt Mora)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Help! making an assembly routine faster
- Message-ID: <40660@unix.SRI.COM>
- Date: 19 Nov 92 17:43:28 GMT
- References: <1992Nov16.014850.28678@cs.uoregon.edu> <1992Nov16.190947.9920@nntp.hut.fi> <1992Nov18.010815.6649@cs.uoregon.edu>
- Organization: SRI International, Menlo Park, California
- Lines: 33
-
- In article <1992Nov18.010815.6649@cs.uoregon.edu> mkelly@mystix.cs.uoregon.edu (Michael A. Kelly) writes:
- >
- >And once again, if anyone can improve on these routines, please tell me how!
-
-
- If your going to be calling this function a lot (like in a tight loop
- in a game to plot sprites) You can move the Swapmmumode code out of the
- function and call before you make the call and restore it afterward.
- That takes the two trap calls out of your fast code.
-
- like:
-
- swapmmumode(mode);
-
- while plottingsprites
- QuickCopy(sprites[i++]);
-
-
- swapmmumode(backtowhatiswas);
-
- If you can find a way to precompute the addresses (like a table of row
- starting addresses) that might help. They mention stuff like this in one
- of the develop articles.
-
- Matt
-
-
-
- --
- ___________________________________________________________
- Matthew Mora | my Mac Matt_Mora@sri.com
- SRI International | my unix mxmora@unix.sri.com
- ___________________________________________________________
-