home *** CD-ROM | disk | FTP | other *** search
/ Doom I/II Collection / DM12.ISO / serial / doom_acc / doom.bat < prev    next >
DOS Batch File  |  1994-01-18  |  5KB  |  108 lines

  1. @echo off
  2. rem                         Don Olson 72066,101  1-94
  3. rem
  4. rem           WANT SMOOTHER DOOM GRAPHICS ON YOUR DOOM MACHINE?
  5. rem
  6. rem       (Requires 5-12MB free disk space and 8-16MB system memory.)
  7. rem
  8. rem This batch file will work with either the shareware or registered versions
  9. rem   of DOOM v1.1, caching the appropriate file.  The greater values shown
  10. rem   above are for the registered version.
  11. rem
  12. rem This batch file will cache the Doom data file for hesitation free blood
  13. rem   letting (a lot of the 'jumpiness' during play is disk access to the
  14. rem   .WAD file).  You can eliminate all physical disk access to the .WAD
  15. rem   file during play by caching the whole .WAD file prior to play...
  16. rem
  17. rem This batch file resides in the DOOM directory (NOT C:\DOOMDATA) and is
  18. rem   used to RUN DOOM.  You must type DOOM.BAT instead of just DOOM, because
  19. rem   DOS will execute an .EXE before a .BAT file!
  20. rem
  21. rem It assumes that you have the 8-16MB of memory, 4MB for DOOM and 4-12MB for 
  22. rem   Smartdrv, and enough free disk space (4.2MB free for shareware DOOM v1.1,
  23. rem   10.2MB free for the registered DOOM v1.1 file) to copy the .WAD data file
  24. rem   so that Smartdrv can read cache the entire file it as it copies it before
  25. rem   running DOOM.
  26. rem
  27. rem You must set up Smartdrv to be 4-12MB+ prior to executing this file, or if
  28. rem   you aren't using it allready, add it to the beginning of this file.
  29. rem For best results:
  30. rem   Initialize Smartdrv in AUTOEXEC.BAT and optimize your system it using MEMMAKER
  31. rem   or OPTIMIZE, etc, for best memory management.  The basic line should
  32. rem   be something like DRIVE:\PATH\SMARTDRV 4096 or DRIVE:\PATH\SMARTDRV 12288.
  33. rem   If you have the memory, a little overkill on the Smartdrv value doesn't
  34. rem   hurt much either...  there is disk access on startup to other DOOM files
  35. rem   that will bump some (or all?) the .WAD file out of the cache buffer.
  36. rem   Using DOS 6's menuing system makes different start-ups pretty easy if you
  37. rem   aren't allready using them, also.
  38. rem
  39. rem
  40. rem
  41. rem The scoop:
  42. rem   This setup below is for a system with an A, C, and D drives with DOOM on
  43. rem   the D: drive.  You can change the drives as needed for your system.  The
  44. rem   key to the whole deal is to have Smartdrv READ CACHE ONLY the DOOM drive,
  45. rem   disable caching on all other drives.
  46. rem
  47. rem Note that in the following Smartdrv status examples, the 'buffering' value
  48. rem   doesn't really matter, it is dependent on your system...  it can be YES
  49. rem   or NO, it doesn't matter.
  50. rem
  51. rem
  52. rem Do it...
  53. rem
  54. rem Make sure we are in the DOOM directory...
  55. if not exist doom.exe goto ERROR
  56. rem
  57. rem Reset Smartdrv to be READ CACHE on Doom drive only (D in this case),
  58. rem   all other drives disabled.  You can check to see if Smartdrv is set
  59. rem   correctly by deleting the /Q on the command line.  The Smartdrv display
  60. rem   should then show the following BEFORE DOOM RUNS:
  61. rem
  62. rem                        Disk Caching Status
  63. rem            drive   read cache   write cache   buffering
  64. rem            --------------------------------------------
  65. rem              D:       yes           no           no
  66. rem
  67. rem Turn off all caching on the A and C drives, D is read only...
  68. smartdrv a- c- d /q
  69. rem
  70. rem Copy .WAD to some place with enough space so the copy is complete,
  71. rem   then delete it.  Smartdrv will 'read cache' the .WAD file as it copies it.
  72. rem   In this case, it's just copied to a file named junk.jnk in the DOOM
  73. rem   directory.  You can copy it to any directory/drive that has enough
  74. rem   free space.
  75. echo Caching Doom data...
  76. if exist doom1.wad set wad=doom1.wad
  77. if exist doom.wad set wad=doom.wad
  78. copy %wad% junk.jnk > nul
  79. set wad=
  80. del junk.jnk > nul
  81. rem
  82. rem Now run DOOM.  Watch the DEMO and the disk LED on your system.  The LED
  83. rem   shouldn't light at all AFTER the demo starts.  Notice that the display
  84. rem   is much more smooth, especially when entering an area for the first 
  85. rem   time...
  86. doom.exe
  87. rem
  88. rem Done playing, so reset Smartdrv to its initial state.
  89. rem
  90. rem Again, you can ommit the /Q from the command line to see how Smartdrv
  91. rem   is actually set.  Your system should have caching status something like
  92. rem   this (your usage may vary)...
  93. rem 
  94. rem                        Disk Caching Status
  95. rem            drive   read cache   write cache   buffering
  96. rem            --------------------------------------------
  97. rem              A:       yes           no           no
  98. rem              C:       yes           yes          no
  99. rem              D:       yes           yes          no
  100. rem 
  101. smartdrv a c+ d+ /q
  102. echo Now there's a good use for all that extra RAM, eh?
  103. goto END
  104. :ERROR
  105. echo DOOM.BAT must reside in the DOOM directory...
  106. :END
  107.  
  108.