home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / atari / st / tech / 4395 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  1.6 KB

  1. Path: sparky!uunet!mcsun!corton!loria!loria.crin.fr!eker
  2. From: eker@loria.crin.fr (Steven Eker)
  3. Newsgroups: comp.sys.atari.st.tech
  4. Subject: Re: Sprite code (Re: Second&last time: Hacking Contest)
  5. Message-ID: <442@muller.loria.fr>
  6. Date: 12 Aug 92 18:31:44 GMT
  7. References: <439@muller.loria.fr> <1992Aug09.011934.47152@news.th-darmstadt.de> <440@muller.loria.fr> <1992Aug11.194714.42114@news.th-darmstadt.de>
  8. Sender: news@news.loria.fr
  9. Organization: CRIN (CNRS) Nancy - INRIA Lorraine
  10. Lines: 20
  11.  
  12. In article <1992Aug11.194714.42114@news.th-darmstadt.de>, wallmann@backus.pu.informatik.th-darmstadt.de (Natuerlich!) writes:
  13.  
  14. [stuff deleted]
  15.  
  16. |> >Yeah, you can have versions optimised for each shift amount. The only thing is
  17. |>                        ^^^^^^^^^^^^^^^^
  18. |> Since tables are pretty much out of the question (you only have 24 address
  19. |> space in a ST, you'd need 32) I don't see what you want to optimize "for 
  20. |> each shift amount" that's not either 0 or 8. Maybe I am just clueless though.
  21. |>
  22. Oops, I meant seperate routines rather than separate versions of the routine
  23. that I posted. For example when shift=15 it may be faster to use another method
  24. based on addition (but maybe not - I can't be bothered to work it out right now).
  25.  
  26. |> >I still reckon that rotating & cookie cutting beats other multibit shifting methods in the general case.
  27. |> It's a nice method for sure. I (since I have memory to blow) always pre-shift
  28. |> 'em.
  29. You can also adapt this method for horizontal scrolling by arbitrary number of pixels. Of course if shift % 16 = 1,8 or 0 specialized methods will be faster.
  30.  
  31. Steven
  32.