home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / mac / hardware / 26938 < prev    next >
Encoding:
Text File  |  1993-01-26  |  3.9 KB  |  71 lines

  1. Newsgroups: comp.sys.mac.hardware
  2. Path: sparky!uunet!mcsun!sunic!kitten.umdc.umu.se!cs.umu.se!christer
  3. From: christer@cs.umu.se (Christer Ericson)
  4. Subject: Re: Street Fighter
  5. Message-ID: <C1Gn1B.5Gq@cs.umu.se>
  6. Followup-To: comp.sys.mac.programmer
  7. Sender: news@cs.umu.se (News Administrator)
  8. Organization: Dep. of Info.Proc, Umea Univ., Sweden
  9. References: <43833@sdcc12.ucsd.edu> <C1AxuL.HyE@unix.amherst.edu> <93024.093909REE700A@MAINE.MAINE.EDU> <1993Jan25.124435.26825@nntp.hut.fi>
  10. Date: Tue, 26 Jan 1993 12:07:58 GMT
  11. Lines: 58
  12.  
  13. In <1993Jan25.124435.26825@nntp.hut.fi> jmunkki@vipunen.hut.fi (Juri Munkki) writes:
  14. >[...]
  15. >Give me a few good examples why the OS would be in the way of writing
  16. >game software? (Especially something as trivial as Street Fighter.) The
  17. >only thing that I can think of is that the Sound Manager is not optimal
  18. >for arcade games, but I don't think anyone would want to support the
  19. >increasing number of different sound hardware implementations (at least
  20. >four right now).
  21. >[...]
  22.  
  23. Juri, I really respect your opinions on most matters, but this time I
  24. think you're on thin ice. How can you categorize Street Fighter II as a
  25. trivial game to write? Have you seen the game? You know as well as I do that
  26. the Mac has no hardware support whatsoever for scrolling the screen, so in
  27. order to have even a non-parallax version of the SFII background the whole
  28. screen would have to be refreshed, in addition to which the two _quite_
  29. large fighters (and eventual fireballs) would have to be drawn to the screen
  30. as well. Just refreshing a whole screen in 256 colors on a LC would make for
  31. a rather pitiful frame rate -- or do you suggest that the game would be for
  32. Quadras only?
  33.  
  34. SFII aside, there are several ways in which the OS is in the way of writing
  35. CPU-intensive game software (which I consider SFII to be, as stated above):
  36.  
  37. Interrupts. To get maximum performance, all interrupts should be disabled.
  38. Unfortunately, things pretty much stop working when all interrupts are
  39. disabled, and there is no way to enable/disable just some of the interrupts.
  40. Eg, on an SE the mouse routines has to be disabled otherwise movement of
  41. the mouse will interfer with the sound routines, with horrible sparkling
  42. sounds as a result. This is possible to circumvent by mucking with the
  43. low-mem global jCrsrTask and by writing a custom sound routine, ie by
  44. bypassing the OS. Also, by replacing the ADB-driver lots of extra CPU-time
  45. can be gained. Again, this involves working against the OS.
  46.  
  47. On the low-end machines (ie Plus, SE, and Classic) it has been possible to
  48. gain extra performance by using the alternate screen buffer, but with
  49. System 7.1 it is _no_longer_possible_ to use the alternate screen buffer
  50. since System 7.1 allocates it during boot time. Not only is it impossible
  51. to have an INIT which reserves the second page, it is also impossible
  52. to write a MacsBug replacement with allocates the second page, because it
  53. has already been allocated by the system at that stage -- but it is also
  54. impossible to reserve the alternate screen buffer by setting the "reserve
  55. second page" flag in the boot block, because System 7.1 _doesn't_ respect
  56. that flag either! This means that a special start-up disk has to be made
  57. in order to utilize the alternative screen buffer, in order to gain up to
  58. 50% increase in game performance (depending on how the game works). And
  59. no, it is not possible to use the second buffer anyway, because it could
  60. very well be that (in the future) the system will put an interrupt routine
  61. there, and as argued above, the interrupts cannot be completely disabled.
  62.  
  63. Really, when optimal performance is needed, the OS is very much in the
  64. way. And with _morons_ at Apple making utterly _stupid_ decisions like
  65. not making the alternative screen buffer available under System 7.1, the
  66. OS will only get more and more in the way in the future.
  67.  
  68.  
  69. Christer Ericson --- Internet: christer@cs.umu.se --- tel: +46-90-166794
  70. Department of Computer Science, University of Umea, S-90187 UMEA, SWEDEN
  71.