home *** CD-ROM | disk | FTP | other *** search
/ World of Ham Radio 1997 / WOHR97_AmSoft_(1997-02-01).iso / misc / ez_sstv / prog / tooslow.txt < prev    next >
Text File  |  1997-02-01  |  7KB  |  206 lines

  1.                 Machine Too Slow Message
  2.                 ------------------------
  3.  
  4. The Pasokon TV interface processes thousands of image samples
  5. per second with very precise, crystal controlled, timing.
  6. If the main processor ('486, Pentium, etc.) of your computer
  7. doesn't handle them promptly, the image will be corrupted,
  8. sometimes shifting the bottom of a received image to the left.
  9.  
  10. In some cases you might even get a message that the machine
  11. is too slow.  If a slow 386 works fine and a Pentium displays
  12. a message about being too slow, there must be factors other
  13. than the processor speed.
  14.  
  15. An MS-DOS program generally has complete control of the 
  16. computer so nothing gets in the way of this data transfer.
  17. Usually it just works fine but there are a few things that
  18. interfere with the precise timing required.
  19.  
  20.                 
  21.                 Memory Managers
  22.                 ---------------
  23.  
  24. Memory managers, such as EMM386 and QEMM, set up a virtual
  25. machine environment for application programs.  This can cause
  26. problems for real-time applications because memory managers
  27. add overhead to input/output instructions and interrupt
  28. handling.
  29.  
  30. Pasokon TV version 2:
  31.  
  32.         QEMM seems to add much more overhead than EMM386.  
  33.         Several machines got the too slow messages with
  34.         QEMM but were fine with EMM386. 
  35.  
  36.         Documentation with some of the shareware SSTV
  37.         programs instruct the user to get rid of the
  38.         memory managers entirely when using that program.
  39.  
  40. Pasokon TV version 3:
  41.  
  42.         This does not seem to be a problem any more.  When
  43.         Pasokon TV starts up, it uses the memory manager to
  44.         obtain all the "Extended" memory then sets up its
  45.         own protected mode environment which can access
  46.         all that memory and input/output devices directly.
  47.  
  48.  
  49.                 Mouse Movement
  50.                 --------------
  51.  
  52. When you move the mouse around, it generates "interrupts"
  53. which steal processor time from the application program.
  54. If the time to erase the cursor and redraw it in a new
  55. location is longer than the time to process one pixel of
  56. an SSTV transmission, the image can get messed up.
  57.  
  58. The best solution is:  
  59.  
  60.         Don't move the mouse while transmitting or 
  61.         receiving.
  62.  
  63. The more inquisitive might want to do some experimenting
  64. with different interrupts.  For historical reasons, the
  65. interrupts have the following priority order:
  66.  
  67.         0               (highest priority)
  68.         1
  69.           8
  70.           9
  71.           10
  72.           11
  73.           12    often bus mouse
  74.           13
  75.           14
  76.           15
  77.        3        serial port
  78.        4        serial port
  79.        5
  80.        6
  81.        7                (lowest priority)
  82.  
  83. A couple years ago, it made sense for interrupt (IRQ) 5
  84. to be the default for Pasokon TV.  This was traditionally
  85. reserved for a second printer port (LPT2) which few 
  86. people had.  More recently, the sound cards tend to use
  87. IRQ 5 as the default.  Now my recommendation is to use
  88. 10 or 11 which are generally available. 
  89.  
  90. There is a tradeoff here.  Interrupts 8 - 15 have slightly
  91. more overhead due to the hardware implementation.  However,
  92. 8 - 11 have a priority higher than the mouse interrupts.
  93.  
  94. Read the file IRQ.TXT for discussion of interrupts.
  95.  
  96.  
  97.                 Device Drivers, other TSR programs
  98.                 ----------------------------------
  99.  
  100. An AUTOEXEC.BAT file often contains a few programs that 
  101. remain in memory and watch for a "hotkey" for perform
  102. some other periodic function.  Some of these can interfere
  103. with the precise timing required.
  104.  
  105. There have been cases where removing a TSR program has
  106. solved the problem.
  107.  
  108.  
  109.                 Windows 3.1
  110.                 -----------
  111.  
  112. This is not a Windows application.  This is an MS-DOS 
  113. application that requires complete control of the machine for
  114. precise timing.  The best way is to completely exit out of
  115. Windows 3.1 by picking Exit from the File menu of the
  116. Program Manager.
  117.  
  118. It sometimes, but not always, possible to run Pasokon TV
  119. from Windows 3.1 by running the PIF Editor and setting the 
  120. "Exclusive" attribute.
  121.  
  122.  
  123.                 Windows 95
  124.                 ----------
  125.  
  126. This is a true preemptive multi-tasking operating system.  What
  127. this means is that Windows 95, not any application, is in 
  128. control of the computer.  All the active applications and parts
  129. of the operating system all take turns using the processor.
  130. Pasokon TV will not work properly if it just gets a little
  131. slices of time.  
  132.  
  133. If you want to run Pasokon TV from Windows 95, perform these
  134. steps after installation:
  135.  
  136. *  Double click on the "My Computer" icon.
  137. *  Double click on "C:" (assuming you installed it on the
  138.      C drive).
  139. *  Double click on "PKTV3" or other directory where you
  140.      installed the software.
  141. *  Single click, with the RIGHT mouse button, on PKTV.EXE.
  142. *  Click on the tab labeled "Program".
  143. *  Click on the "Advanced..." button.
  144. *  Click on the "MSDOS mode" option, to make a check mark
  145.      mark appear in the box next to it.
  146. *  Click on "OK".
  147. *  Click on "OK".
  148.  
  149. This tells the operating system that this program requires
  150. complete control of the computer.  When you run the PKTV 
  151. program, Windows 95 will get out of the way and Pasokon TV
  152. can transfer the image data at the required rate.
  153.  
  154. Alternatively, you could simply press the F8 key when booting
  155. the machine and pick option 6.  This will give you an MS-DOS prompt.
  156.  
  157.  
  158.                 Disk Activity
  159.                 -------------
  160.  
  161. Pasokon TV 3 uses "virtual memory".  What this means is that
  162. most of the application just pretends it has as much memory as
  163. it wants without worrying about how much actual memory (RAM)
  164. is available.  If there isn't enough actual memory, information
  165. is swapped to and from the disk as required.
  166.  
  167. During beta test we found out that most machines could 
  168. handle image reception while swapping images to/from disk
  169. but a couple couldn't keep up.  In the final release, this
  170. swapping has been reduced and pretty much eliminated while
  171. actually receving an image.
  172.  
  173. Each image requires almost one megabyte of memory, add another 
  174. megabyte for the Undo image, plus the program, clipboard, 
  175. temporary space for image scaling and other processing.  Peak 
  176. usage could go has high as about 15 megabytes.  If you have 
  177. 16 megabytes of memory (not that uncommon based on the 
  178. registration forms!) there should be little or no swapping
  179. to/from disk.  With 8 megabytes, I'd recommend using only 
  180. 5 thumbnail images at the bottom to minimize delays.
  181.  
  182. You can set this number by placing this in the PKTV.CFG file:
  183.  
  184.         IMAGES 5
  185.  
  186. or by using the Setup menu.
  187.  
  188.  
  189.                 Other Configuration File Options
  190.                 --------------------------------
  191.  
  192. Use of the NO_PAUSE_CLOCK could possibly cause timing problems.
  193. When in doubt, leave it out.
  194.  
  195. Remove any RECV_UNDO option.
  196.  
  197. First try all the other suggestions above.  If you still get a
  198. message about the machine being too slow, add this line to
  199. the PKTV.CFG file:
  200.  
  201.         SLOW_CPU
  202.  
  203. This will reduce the image sample rate for S1, S3, M1, and M3
  204. transmission modes which are the most demanding.  The image 
  205. quality will be reduced slightly.
  206.