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

  1. Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!mips!munnari.oz.au!bunyip.cc.uq.oz.au!uqcspe!cs.uq.oz.au!warwick
  2. From: warwick@cs.uq.oz.au (Warwick Allison)
  3. Newsgroups: comp.sys.atari.st.tech
  4. Subject: Re: Sprite code (Re: Second&last time: Hacking Contest)
  5. Message-ID: <9890@uqcspe.cs.uq.oz.au>
  6. Date: 20 Aug 92 01:48:51 GMT
  7. References: <438@muller.loria.fr> <1992Aug06.184949.22119@infoserver.th-darmstadt.de> <439@muller.loria.fr> <1992Aug09.011934.47152@news.th-darmstadt.de> <440@muller.loria.fr> <9777@uqcspe.cs.uq.oz.au> <441@muller.loria.fr> <9817@uqcspe.cs.uq.oz.au> <446@muller.loria
  8. Sender: news@cs.uq.oz.au
  9. Reply-To: warwick@cs.uq.oz.au
  10. Lines: 74
  11.  
  12. eker@loria.crin.fr (Steven Eker) writes:
  13. >warwick@cs.uq.oz.au (Warwick Allison) writes:
  14.  
  15. >This is fine. but is a previous post you mentioned that sprites could
  16. >be updated at different speeds which made me think you were using some
  17. >arbitrary interleaving of draws & wipes.  
  18.  
  19. Oops, poor qualification by me.  Obviously, it is DAMNED HARD to give
  20. arbitrary sprite priorities, AND arbitrary update rates.  (Although
  21. possible - using full-screen masks, which are also useful for clipping,
  22. moving "behind" playfield objects, etc.)  If I even need such Sprite
  23. classes, I'll have my head examined.
  24.  
  25. >Maybe, maybe not - it depends on your sprite drawing method. The code
  26. >I originally posted only read the screen implicity with 
  27. >       or.w    d0,(a0)+ 
  28.  
  29. Hardly useful for anything but UNMASKED single-bitplane graphics, which 
  30. is next-to-useless (at he very least, you usually want to have black
  31. and white sprites (like the ST mouse pointer), rather than just black
  32. sprites (like the Sun SunView mouse pointer)).  Of course, in the 
  33. interests of competition, anything is "useful" :-).
  34.  
  35. >BTW the code I posted is (slightly) faster than the 32x32 sprite code in
  36. >your GNUchess port even under the most pessimistic assumptions (you did a great
  37. >job on the port though...).
  38.  
  39. <delight> if you can mail me code-for-code patches, I'll put them into
  40. my library (which will be free-to-all one of these days).
  41.  
  42. >|> Which reminds me - was this a competition?  I wrote some VERY fast 
  43. >|> sprite routines in a furious discussion with Dave B. - 60 or so
  44. >|> single-bitplane 16x16 sprites at arbitrary positions on an arbitrary
  45. >|> background was I believe my limit...
  46.  
  47. >No, it was just a sugestion for a better competition goal than the
  48. >rather pointless TOS hacking in Nat!'s competion.  60 sprites at 50Hz
  49. >is quite amazing on a non-blitter ST. At 25Hz rather less so.  
  50.  
  51. Actually, I think it was more like 50 at 72Hz (ie. mono).
  52.  
  53. >Still I can't resist the challenge...
  54.  
  55. You didn't post performance stats!  How well does it BURN?
  56.  
  57.  
  58. Let's make some categories:
  59.  
  60.     1. Preshifted / Unshifted
  61.     2. 16x16 / 32x32
  62.     3. Masked / Unmasked       (ie. black&white / black)
  63.  
  64. >Come to think of it, if the sprites are only one pixel deep why not preshift
  65. >the blighters???
  66.  
  67. Yep.  One better:  with unmasked sprite, why even HAVE sprite data?
  68. it uses only 100% more RAM to have the sprite data be the CODE ITSELF,
  69. ie. automatically generate the
  70.  
  71.     orl   #....,(a0)     (3 words)
  72.     addl  d0,a0          (1 word)
  73.  
  74. instructions from the 2-word sprite-data!
  75.  
  76. (Of course, this is only acceptable for HACK CONTESTS.  Anyone who seriously
  77. considers this a "programming technique" is a beauxault)
  78.  
  79. --
  80. Warwick
  81. --
  82.   _-_|\      warwick@cs.uq.oz.au            /Disclaimer:
  83.  /     * <-- Computer Science Department,  /  
  84.  \_.-._/     University of Queensland,    /      void (if removed)
  85.       v      Brisbane, Australia.        /  
  86.