home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / j / jmos2_02.zip / JOEST-02.TXT next >
Text File  |  1992-08-03  |  8KB  |  170 lines

  1.                      Joe's OS/2 Tips.
  2.  
  3.                    Number 2
  4.  
  5.         Written by Joseph Mckinnon (61:560/0@Worldnet)
  6.         
  7.         Downloaded from Proteus OS/2, Australia's Only SIMPLEX Site.
  8.         
  9.         Phone +61-7-800-3521    
  10.         
  11.         Hours 24 hours a day
  12.         
  13.         Speeds 300-9600, PEP, MNP, V42/Bis
  14.  
  15.  
  16. Well I am back again with another few pages of notes on OS/2 ver 2.0.
  17. This time I will discuss some of the many DOS_SETTINGS that can be quite
  18. useful in changing the performance of your system.  Many of these
  19. setting are self explanatory, for anyone who's got a general knowledge of
  20. the IBM PC class of computers (specifically 286, 386s, 486s), and to
  21. others, seem to be alien terminology.  In this issue I'll cover the
  22. 'special options' that tie DOS to OS/2.
  23.  
  24. - DOS_BACKGROUND_EXECUTION
  25. - DOS_VERSION
  26. - IDLE_SECONDS
  27. - IDLE_SENSITIVITY
  28. - MOUSE_EXCLUSIVE_ACCESS
  29. - VIDEO_RETRACE_EMULATION
  30. - VIDEO_SWITCH_NOTIFICATION
  31. - VIDEO_WINDOW_REFRESH
  32.  
  33. Many of these are confusing, to people who have never had any experience
  34. in Multi-tasking.  Desqview and Windows have some settings like these,
  35. so if you've upgraded from one of these environments, some of the
  36. following should be already mastered.
  37.  
  38. DOS_BACKGROUND_EXECUTION
  39.  
  40.    Since OS/2 attempts to allow all applications to run, many users are
  41. quite happy to have their DOS database perform a calculation, while
  42. happily writing the latest e-mail message to someone (or in a lot of
  43. cases, studying how to use a mouse, while performing difficult drop n'
  44. drag techniques with solitaire :-) (this is one of many similes, to
  45. denote sarcasm, found in e-mail messages)).
  46.  
  47.    Thus, for most of your applications you'd want OS/2 to keep executing
  48. the application, but what about your latest DOS game?  I know myself,
  49. that many of these newer creations are nearly impossible to beat when
  50. your playing them, so don't give them the advantage of running, while
  51. your not there.
  52.  
  53.    On the serious side, I myself when writing programs
  54. (or stuff like this), find the ability to switch from window to window
  55. great, thus I often have this setting to OFF, so that my whole system is
  56. freed from running these apps, thus the system is faster.  Why have a word
  57. processor sitting there chewing up system resources, when I am in another
  58. window doing real work?  This way my whole system is fast and efficient.
  59. Then again, I don't run much DOS stuff these days.
  60.  
  61. DOS_VERSION
  62.  
  63.    People familiar with DOS 5's SETVER would be well versed in what it
  64. allows you to do.  Basically DOS_VERSION allows your DOS program to lie
  65. to the system about what version of DOS it likes, and get away with it.
  66. This is a useful command, where some of the popular DOS programs are
  67. written for a specific DOS version, (one way to keep software companies in
  68. the Black) which won't run under OS/2's emulated DOS 5.0.
  69.  
  70.    I won't go into details about this command, since OS/2's on line help
  71. is enough to solve your problems with this DOS_SETTING.
  72.  
  73. IDLE_SECONDS
  74. IDLE_SENSITIVITY
  75.  
  76.    Both these options allow you to really tune your particular
  77. application, for use under OS/2.  Simply with these settings, OS/2 will
  78. Dynamically look at your DOS application, for a particular period and see
  79. what the program requires (in time) of the CPU.
  80.  
  81.    For instance, a graphics intensive program (like Wing Commander 2),
  82. will require a rather high IDLE_SENSITIVITY, and at least 1 for IDLE_SECONDS,
  83. for a good response, as expected under vanilla DOS.  Whereas a word processor
  84. only requires minimal attention.  In particular, experience with
  85. Word Perfect V5.1 (for DOS), shows that a IDLE_SENSITIVITY of around 5
  86. will make you system fly, whereas a higher system will severely limit
  87. your system's speed.  Apparently Word Perfect was programmed to heavily
  88. scan the keyboard for a key press, this is an example of what a Bad DOS
  89. application can do.  I could never see a human typist, capable of out typing
  90. a computer, have you?
  91.  
  92.    IDLE_SECONDS, is a special command which tells OS/2 to wait for a
  93. specified time, before reducing that applications time with the
  94. processor.  Since not all DOS programs rely on keyboard activity to
  95. run, the newer graphics intensive programs (or in other words, games),
  96. maybe lacking in punch, so 'fiddle' around with this setting, to get a better
  97. performance (also the following system settings are important, read on)
  98.  
  99. MOUSE_EXCLUSIVE_ACCESS
  100.  
  101.    Well how many articles have you read about OS/2's inability to handle
  102. Mouse operated DOS programs, in a Window, or the dreaded Double mouse
  103. pointer problem?  Well with this option activated the window gains
  104. sole writes to the mouse (and elimiated the double mouse pointer), and only
  105. a CTRL-ESC (Task/Window-List) will give the mouse back, to the whole system.
  106.  
  107.    So the next time you read this, send a note of correction to the
  108. reviewer, who probably has never really played with the system, or worse
  109. he uses widows (spelling mistake is intentional!).
  110.  
  111. VIDEO_RETRACE_EMULATION
  112.  
  113.    Well here's a nice OS/2 only weridie.  It's a very intelligent
  114. solution to many of the DOS programs, which wait for a whole screen to be
  115. drawn before continuing, which not only slows your system, but is
  116. entirely useless in text mode applications.  This option will tell the
  117. DOS program that the screen update, it requested, was performed, before
  118. it was completed, thus enabling the program to continue on.  I used this
  119. on PC-FILE to increase the speed of the program, while updating stock
  120. lists.
  121.  
  122.    But like with most things, this option must be deactivated, once your
  123. into special programs, like Games, are executed, since they rely heavily
  124. on the user's eyes to see the screen ;-).  Not much use in Keen 4, when
  125. your screen disappears, and reappears, with a sound, from the sound
  126. blaster, informing you, of your sudden demise.
  127.  
  128.    In some cases, some graphics programs perform better with this
  129. option ON, so if your working on DTP stuff, I'd say try it, sice you can
  130. always turn this setting off with your mouse, later.
  131.  
  132. VIDEO_SWITCH_NOTIFICATION
  133.  
  134.    With OS/2, you have the ability to switch from a full screen to a
  135. window and back again (in any order or number of times).  Some of the
  136. DOS programs will 'trash' the screen because they can't handle the
  137. change between the two(or your application appears to freeze after the
  138. swap).  The solution is, to switch back again with ALT-HOME (or with
  139. the mouse) and turn ON this switch, and try again.
  140.  
  141.    I've found that some of Turbo Pascal applications will casue this
  142. problem, especially if your using the new version (ver 6.0) that utilize
  143. Objects for Turbo Vision.
  144.  
  145. VIDEO_WINDOW_REFRESH
  146.  
  147.     I like this option, for my normal dos windows, since I can tell OS/2
  148. the frequency of screen redraws, performed by a DOS program.  This is a
  149. great option if you just want to use a text based app, because it
  150. greatly increases the speed.  For example a large database search, under some
  151. text-based DBs, will be dramatically increased, if you set the setting to
  152. 10 or so, so that instead of the system worrying about the 'in-between'
  153. actions on the screen, it's working as hard as possible on the result
  154. (which is, after all, what we want).
  155.  
  156. THE FUTURE
  157. ----------
  158. Well that's all folks, but in the future editions, I'll start to get a
  159. few screen shoots in, of various topics relating to what I am writing
  160. about.
  161. Also coming up, will be a review on IBM's WorkSet tools, which I should
  162. be receiving sometime before next edition.  This means that, you'll also
  163. be getting some source code to play with, as I am learning the in's and
  164. out's of programming under OS/2 ver 2.0
  165.  
  166. Any ideas or suggestions send them via Worldnet to me at 61:6700/1 or
  167. ring my system on +61-7-800-3521.
  168.  
  169. Cuya all Next Time, Joseph Mckinnon.
  170.