home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / rec / games / programm / 4707 < prev    next >
Encoding:
Text File  |  1992-11-17  |  2.1 KB  |  50 lines

  1. Newsgroups: rec.games.programmer
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!ames!saimiri.primate.wisc.edu!aplcen.apl.jhu.edu!wb3ffv!mas!drich
  3. From: drich@mas.uucp (Rich Dobry)
  4. Subject: Re: Xmode Scrolling
  5. Message-ID: <1992Nov16.151145.21002@mas.uucp>
  6. Organization: Emtronix Inc.
  7. References: <83704@ut-emx.uucp>
  8. Date: Mon, 16 Nov 1992 15:11:45 GMT
  9. Lines: 39
  10.  
  11. > > Rich writes:
  12. > >
  13. > >  What I am wondering is how games do scrolling (smooth) with a static 
  14. > >piece any other place on the screen, such as on the left.
  15. > >  
  16. > Baylor write:
  17. >
  18. >     Honestly, they do it completely different then the way you think.
  19. >     They don't scroll anything onto the screen. Virtual screens
  20. > are almost always to short for anything except demos and title screens
  21. > (at which point it looks very nice).
  22. >     They define an array of screen tiles for background (not
  23. > jill, alligators or such) and then do a putpic-type blit for each
  24. > visible screen, that is, they constantly redraw it!
  25. >                             - baylor
  26.  
  27. I figured that's how they must have done it but doing some preliminary
  28. test shows me you can get, at best, about 30fps  because you are 
  29. redrawing so much of the screen even using the fastest system to video 
  30. copy routines.
  31.  
  32.   I have a crude smooth scrolling demo working using as much video memory 
  33. as I can get and drawing and copying when you hit certain edges.  
  34. This is running at 60fps but skips a little when the full screen is copied.  
  35. I'm working on routies
  36. that will fix this by drawing both in front of and behind where the current
  37. physical screen is.  I'll post if it works.  
  38.  
  39. Thanks for the response...
  40.  
  41. Talk to you later...
  42.                      Rich
  43.  
  44. ------------------------------------------------------------------------------
  45. |    Richard E. Dobry Jr.        Central Maryland Multiple Listing Service   |
  46. |      Systems Analyst                    Baltimore, MD 21217 (USA)          |
  47. |      (410) 462-3836                 email: cmmlsd1!progrich@mas.uucp       |
  48. |                                        or: drich@mas.uucp                  |
  49. ------------------------------------------------------------------------------
  50.