VOGONS


First post, by truth_deleted

User metadata

The S3 emulation code (including the VGA parts) is complex yet robust, a testament to the hard work of the DOSBox authors and others. It also seems robust as a PCI device in DOSBox+Win95 guest, but this achievement would have been less tested.

Changed the PCI Register values in pci_devices.h, according to documentation on S3 and PCI Registers. These changes are pertinent to DOSBox+patches* running a Win95 guest (* V1 and 9x patches; although the patch can be parsed when the V1 is not included). The result is good stability along with a very substantial and noticeable improvement in video lag, including better mouse cursor control. Tested UT99, Quake, and others. These hardware accelerated games are now playable even under low framerates. One of the changes, for instance, was to remove memory mapped I/O from the S3.

These tests were done while IDE was active (one of Codeholio's great contributions). Also, while testing, it's recommended not to drag the DOSBox window while loading UT99; I believe this will cause an issue with or without this patch, and is probably specific to 3dfx games.

Edit: see post further down in this thread for latest version.

Attachments

  • Filename
    pci_devices.diff
    File size
    3.4 KiB
    Downloads
    139 downloads
    File comment
    pci_devices patch (#1) - experimental
    File license
    Fair use/fair dealing exception
  • Filename
    vga_s3.diff
    File size
    716 Bytes
    Downloads
    136 downloads
    File comment
    vga_s3 patch (#2) - experimental
    File license
    Fair use/fair dealing exception
Last edited by truth_deleted on 2013-11-30, 03:51. Edited 4 times in total.

Reply 1 of 4, by truth_deleted

User metadata

Modified the S3 driver which is posted in the Guides section. It supports 95/a inside DOSBox+9x_patches, but do not install in 95b or higher. Instead, use the driver that is included with those later versions of 9x.

Attachments

  • Filename
    S3-DOSBox.zip
    File size
    53.79 KiB
    Downloads
    553 downloads
    File comment
    S3 driver for DOSBox/Win95a (v0.74+)
    File license
    Fair use/fair dealing exception
Last edited by truth_deleted on 2013-11-30, 04:07. Edited 3 times in total.

Reply 2 of 4, by truth_deleted

User metadata

Attached an updated patch for vga_s3.cpp. It has additional register value changes and should be tested with "vmemsize" at 4mb or 8mb. These additional changes shouldn't have an effect on the emulation speed.

Edit: deleted "vga_s3 patch v2 - experimental"; instead use the patch below.

Last edited by truth_deleted on 2013-11-19, 04:25. Edited 1 time in total.

Reply 3 of 4, by truth_deleted

User metadata

Attached is the latest patch to provide optimal register values for the S3 and Voodoo1 emulation. Also, modified "vmemsize" so that the S3 always has 4mb (for example, using 8mb causes a detection problem and slowdowns in Win95). After patching, recommend to uninstall these two video devices in 95 and then add them back. For dosbox without patches, instead manually parse the attached patch for changes.

From testing, this version shows the best performance with excellent mouse cursor control. It may work best in conjunction with the modified driver posted above in this thread. For additional performance: I previously posted a patch so that opengl mode will work with 16-bit colors.

Attachments

  • Filename
    video_regs.diff
    File size
    6.67 KiB
    Downloads
    152 downloads
    File comment
    video register patch v1
    File license
    Fair use/fair dealing exception

Reply 4 of 4, by truth_deleted

User metadata

Attached the latest version of the S3/PCI patch for DOSBox/95. This is dependent on 9x patches for DOSBox. The patch has two adaptations, one for 95a and the other for 95b; the difference is a PCI register change so that 95b will properly detect the S3 device (PCI).

The 95a patch should also work on 95 retail (version), but it will not work on 95b or higher. The other patch for 95b may work on the other 9x versions, but I haven't tested them yet; it should work on 95a, for instance, but I haven't tested whether the change will impact performance.

95a is an ideal configuration overall unless a partition size greater than 2 gigabytes is necessary (fat32 supported by 95b or higher), or if CD Audio is required via Nero Image Drive 5 (requires USB supplement for 95b or higher).

Attachments

  • Filename
    video_regs_95a.diff
    File size
    6.67 KiB
    Downloads
    111 downloads
    File comment
    video register patch v2 (95a)
    File license
    Fair use/fair dealing exception
  • Filename
    video_regs_95b.diff
    File size
    6.67 KiB
    Downloads
    124 downloads
    File comment
    video register patch v2 (95b)
    File license
    Fair use/fair dealing exception