Repository navigation
1.8.2
What's Changed
SafeDisc support on the built-in Windows
Games protected with SafeDisc 2 now run on the built-in Windows - make sure to use Redumper-style full rips from legally owned CDs. SafeDisc's loader gets through its CD check the way it does on a real Windows 98 SE: it reads the disc through ASPI, finds the drive's letter in Windows 98's device registry, and resolves the system functions it needs through its own walk of each DLL's exports.
Oni is the first game tested to run this way. It installs with its own setup, gets past SafeDisc, and plays. Until now it stopped with "Missing CD-ROM".
- Built-in Windows: WNASPI32 and the CD's device keys, so Oni's SafeDisc 2 passes (part of #346) by @kibertoad in #391
DirectShow and Indeo 4 on the built-in Windows
The built-in Windows now has DirectShow's QUARTZ.DLL (the filter graph) and AMSTREAM.DLL (multimedia streams into DirectDraw surfaces), and decodes Indeo Video Interactive 4 (IV41) movies, through Video for Windows and MCI as well.
Magic & Mayhem is the first game tested with it. It no longer warns "DIRECTX MEDIA FAILURE" at start, and plays its intro movies with picture and sound before the main menu.
- Built-in DirectShow (QUARTZ.DLL, AMSTREAM.DLL) and Indeo 4 for Magic & Mayhem's movies by @kibertoad in #531
Disk images keep their changes in a delta file
A writable hard disk image is now left as it is: what a run writes to it goes to <image>.rdelta beside it, and every later mount of the image, from any configuration, finds the same file. Deleting the .rdelta takes the disk back to the image, and COMMIT C: at the prompt (or rust-dos commit IMAGE from the host's shell) writes the changes into the image. -inplace on a mount writes the image itself, as before. Floppy images, read-only mounts and -overlay mounts work as they did.
Save states of a booted system keep only the disks' changes instead of a whole copy of each disk: a state of Windows 98 SE with Omikron on its own disk took 4.7 GB before. States saved by earlier versions still load.
- Hard disk images write to a delta file by default, and save states keep only the changes by @kibertoad in #500
- Docs: what a save state holds, and the usual tasks with delta files by @kibertoad in #506
- Docs: fixes from review of the delta and save state notes by @kibertoad in #507
Hardware emulation
Banshee and Voodoo3 on the OpenGL renderer
With voodoo_renderer=opengl, a Banshee or Voodoo3 now draws its 3D on the GPU only, as the Voodoo Graphics and Voodoo2 do since 1.8.1, instead of drawing every frame a second time in software. Its 2D fills and copies run on the GPU when the bytes they touch are newer there, and the 2D engine and the scanout read back only the rows they touch. A textured triangle reads back only the texture levels it samples, and each colour buffer keeps its own width, so a game that draws into buffers of several widths no longer has every buffer read back from the GPU several times a frame. On Giants: Citizen Kabuto's beach on a Voodoo3 with an RTX 4060, the OpenGL renderer went from 0.3 to about 14 frames a second.
- Voodoo: one GPU memory tracker for every card (#344 step 1) by @kibertoad in #347
- Voodoo3 OpenGL: draw the Banshee's and Voodoo3's 3D on the GPU only (#344 step 2) by @kibertoad in #361
- Banshee/Voodoo3: the 2D engine and the scanout read back only what they touch, hot by @kibertoad in #501
- Banshee/Voodoo3 OpenGL: run 2D fills and copies on the GPU when their bytes are newer there by @kibertoad in #504
- Voodoo GPU reads: a texture's span is the levels its LOD range reads by @kibertoad in #540
- Voodoo3 OpenGL: each colour buffer keeps its own stride in the layout by @kibertoad in #543
Timing and speed
- cycles=auto: a moment's dip or a lucky measurement doesn't leave the speed high by @kibertoad in #413
- Voodoo: raster variants for 3dfx's Voodoo2 Direct3D driver by @kibertoad in #484
- Audio: keep the sound queue longer after the host runs it dry by @kibertoad in #514
- cycles=auto: count the built-in Windows' frames by @kibertoad in #527
- Direct3D pipeline: no heap allocations per triangle by @kibertoad in #542
Improved hardware support
- Voodoo OpenGL: the card's mipmap levels and texel filtering by @kibertoad in #466
- Voodoo: the texture level of detail from each pixel's texel footprint by @kibertoad in #485
- Voodoo OpenGL: blend dithered draws as the card does by @kibertoad in #493
- Direct3D HAL: report the texture operations it draws, as 3dfx's driver by @kibertoad in #489
- Direct3D HAL: 16-bit render targets and depth alone on the Voodoo3, as 3dfx's driver by @kibertoad in #494
- disk: a dot that ends a name leaves its extension empty by @kibertoad in #470
- DOS: take what a program writes into the SDA as DOS's state by @kibertoad in #471
- Built-in Windows: the boot's WININIT.INI and RunOnce work by @kibertoad in #477
- WINMM: built-in MPEGVideo and AVIVideo MCI devices by @kibertoad in #482
- OLEAUT32: type libraries, error objects and VariantChangeType by @kibertoad in #472
- Voodoo: status bit 6 is clear during the vertical retrace by @kibertoad in #532
- Built-in D3D HAL: blend by the diffuse alpha when the alpha operation takes TFACTOR by @kibertoad in #535
Games fixed and optimized
Magic & Mayhem
- Built-in DirectShow (QUARTZ.DLL, AMSTREAM.DLL) and Indeo 4 for Magic & Mayhem's movies by @kibertoad in #531
- cycles=auto: count the built-in Windows' frames by @kibertoad in #527
Test Drive 4
- Built-in DCIMAN32.DLL, so ActiveMovie's QUARTZ.DLL loads by @kibertoad in #460
- OLEAUT32: type libraries, error objects and VariantChangeType by @kibertoad in #472
- Built-in Windows: the boot's WININIT.INI and RunOnce work by @kibertoad in #477
- WINMM: built-in MPEGVideo and AVIVideo MCI devices by @kibertoad in #482
Giants: Citizen Kabuto
- Voodoo OpenGL: the card's mipmap levels and texel filtering by @kibertoad in #466
- Voodoo: the texture level of detail from each pixel's texel footprint by @kibertoad in #485
- Voodoo OpenGL: blend dithered draws as the card does by @kibertoad in #493
- Direct3D HAL: report the texture operations it draws, as 3dfx's driver by @kibertoad in #489
- Direct3D HAL: 16-bit render targets and depth alone on the Voodoo3, as 3dfx's driver by @kibertoad in #494
- cycles=auto: count the built-in Windows' frames (its frames on the Voodoo3) by @kibertoad in #527
- Voodoo GPU reads: a texture's span is the levels its LOD range reads (OpenGL on the Voodoo3 from 0.3 to 9.6 frames a second) by @kibertoad in #540
- Voodoo3 OpenGL: each colour buffer keeps its own stride in the layout (10 to 14 frames a second) by @kibertoad in #543
- Direct3D pipeline: no heap allocations per triangle (about 12% more frames a second) by @kibertoad in #542
Omikron: The Nomad Soul
- Voodoo: raster variants for 3dfx's Voodoo2 Direct3D driver by @kibertoad in #484
Menzoberranzan
- disk: a dot that ends a name leaves its extension empty (Menzoberranzan black screen) by @kibertoad in #470
Lands of Lore: Guardians of Destiny
- DOS: take what a program writes into the SDA as DOS's state (Lands of Lore 2) by @kibertoad in #471
Moto Racer
- Banshee/Voodoo3 OpenGL: run 2D fills and copies on the GPU when their bytes are newer there by @kibertoad in #504
Doom
- cycles=auto: a moment's dip or a lucky measurement doesn't leave the speed high by @kibertoad in #413
Glover
- docs: game compatibility notes (Glover needs an earlier Voodoo3 driver) by @kibertoad in #526
Other changes:
- Save states: W32 section version 28, for WNASPI32's pending requests, OLEAUT32's type libraries, the boot's pending work, the MPEGVideo and AVIVideo devices and DirectShow's objects. States saved on the built-in Windows by earlier versions don't load. In #391, #472, #477, #482 and #531
- docs: game compatibility notes, a page of what particular games need by @kibertoad in #526
- --exit-with-parent: quit when the process that started rust-dos ends by @kibertoad in #523
- A machine-wide run lock that rust-dos takes itself, and rust-dos-lock: every run takes it shared, a timing measurement started with
--run-lock-exclusiveor underrust-dos-lock exclusive -- CMDruns alone, andrust-dos-lock statuslists the holders.--no-run-lockorrun_lock=offturns it off. By @kibertoad in #536 - Windows: imported game profiles name files as the folder spells them, the same on every host, host paths are shown and stored without the
\\?\prefix, and~/paths use/throughout. The 18 tests that failed on Windows pass. By @kibertoad in #550 - docs: drop the Oni reference from the copy-protection risk by @kibertoad in #465
- AGENTS.md: compare what two builds draw in deterministic runs by @kibertoad in #511
- AGENTS.md: the picture comparisons that can't be deterministic by @kibertoad in #512
- AGENTS.md: scripts take a free debug port by @kibertoad in #548
Full Changelog: v1.8.1...v1.8.2