Repository navigation
1.9.0
What's Changed
Kudos to our bug reporters
Big thanks to @xttx for the detailed reports of game compatibility and performance problems!
ToadForce, a 3D card for games of 2000 to 2002
The Voodoo3 handles most Windows games of the late 1990s, but many games from 2000 on want more than it has: 32-bit or compressed textures, textures larger than 256x256, or hardware transform and lighting. For those games Rust-DOS now has the ToadForce, a 3D card of its own design that never existed as real hardware. In features it is roughly a GeForce 3, minus the GeForce 3's programmable vertex and pixel shaders.
Turn it on for the built-in Windows with:
[emulator]
win32=true
machine=svga_toadforceVideocard specifications:
- 64 MB of video memory by default (
toadforce_memorytakes 32, 64 or 128). - DirectDraw modes up to 1600x1200 in 8, 16 and 32-bit colour.
- Textures up to 2048x2048 in 16-bit, 32-bit, DXT1 to DXT5 compressed, luminance and bump-map formats, up to four textures in one pass, and cube maps.
- A 24-bit depth buffer with an 8-bit stencil.
- Hardware transform and lighting, with vertex blending.
- A gamma ramp, so brightness sliders and fades that games make with
SetDeviceGammaRamp, DirectDraw's gamma control or Direct3D 8'sSetGammaRampchange the picture.toadforce_gamma(0.1 to 2) brightens games that look too dark on today's screens. - Direct3D up to version 7 (including the T&L HAL device), Direct3D 8 with hardware or mixed vertex processing, and OpenGL 1.1. There is no Glide.
toadforce_renderer picks how the emulator draws the card. opengl uses your graphics card and needs OpenGL 3.2. software draws everything on the CPU and gives the same picture on every computer. auto, the default, uses OpenGL when the window supports it and software otherwise. With OpenGL, frames stay on your GPU: locks, depth copies, SwapBuffers, blits and points and lines don't pull the picture back to the CPU, and your GPU also does the transform and lighting for most Direct3D and OpenGL draws. If a game looks wrong with OpenGL, try software and please report the game.
These frame rates were measured on 16 November on the development machine: an AMD Ryzen 7 7700X (8 cores, 16 threads, up to 5.4 GHz), 32 GB of DDR5-4800, an NVIDIA GeForce RTX 4080, and Windows 11. Each game ran on the built-in Windows with the OpenGL renderer, cycles=max and the default 60 fps cap.
| Game | Scene | Frames a second |
|---|---|---|
| Zanzarah: The Hidden Portal | the house the game starts in, 640x480 | 60, the display mode's rate |
| Max Payne (Direct3D 8) | tutorial, 640x480 | 60 |
| The Operative: No One Lives Forever | first mission, 640x480 | 60, the display mode's rate |
| Oni (OpenGL) | training room, 640x480 | about 49 |
| MDK2 (OpenGL) | the dive that opens level 1, 640x480 | 60, with the emulated machine at full speed |
| Giants: Citizen Kabuto | first mission, on the beach, 800x600 | about 48 |
| Nocturne | first room of Volume 1, 640x480 | about 39 |
| Black & White | the first island, 800x600 | about 42 |
| Grom: Terror in Tibet | the tutorial's first screen, 800x600 | 60, the frame cap (about 134 without it) |
Zanzarah and Grom don't run on a Voodoo3 at all: Zanzarah needs compressed textures and Grom needs 32-bit ones. Nocturne offers DirectX 5, 6 and 7 on the ToadForce; pick DirectX 7.
Not done yet: there is no Windows 98 driver for the card, so a Windows booted from a disk image sees it as a plain VGA. It has no vertex or pixel shaders. OpenGL reports version 1.1 with 16-bit colour and depth, as on a Voodoo3.
CONFIGURATION.md lists the settings, docs/toadforce.md explains the design and how the emulator draws the card, and docs/toadforce-spec.md documents the card's registers and commands.
This feature was designed and implemented by @kibertoad.
- docs: ToadForce, design and interface of a synthetic 3D card by @kibertoad in #876
- ToadForce phase 1: the card without 3D (svga_toadforce) by @kibertoad in #926
- ToadForce level 1: the state and surface commands by @kibertoad in #932
- ToadForce: level 1 draw commands and the software renderer by @kibertoad in #934
- ToadForce: the Direct3D 7 HAL on the card by @kibertoad in #937
- ToadForce: OpenGL on the card through the Direct3D HAL by @kibertoad in #942
- ToadForce: faster texture sampling in the software renderer by @kibertoad in #943
- ToadForce: the built-in drivers' draws queue and run on all threads by @kibertoad in #944
- ToadForce: the card transforms and lights vertices by @kibertoad in #945
- d3d: the ToadForce transforms and lights Direct3D's vertices by @kibertoad in #949
- ToadForce: Direct3D 7's T&L HAL device by @kibertoad in #951
- ToadForce: four textures at once in Direct3D by @kibertoad in #956
- ToadForce: cube maps in DirectDraw and Direct3D 7 by @kibertoad in #960
- ToadForce: the interface to a host renderer by @kibertoad in #962
- ToadForce: the OpenGL host renderer by @kibertoad in #963
- ToadForce: draw through OpenGL on a running machine by @kibertoad in #966
- ToadForce: the OpenGL host keeps a frame's pixels on the GPU by @kibertoad in #967
- ToadForce: Direct3D 8 on the card, and a z-buffer's stencil by @kibertoad in #972
- ToadForce phase 5: cube textures in Direct3D 8, blended vertices on the card, copies without read-backs by @kibertoad in #979
- ToadForce: Nocturne joins the primary game list by @kibertoad in #984
- ToadForce: locks, depth copies and SwapBuffers without read-backs from the host (Nocturne from about 28 to 35 frames a second, Oni from about 20 to 26) by @kibertoad in #992
- ToadForce phase 6: measured baseline and plan by @kibertoad in #997
- ToadForce: the host renderer draws points and lines (Grom from about 30 to 104 frames a second) by @kibertoad in #1002
- ToadForce phase 6: kept draw state and joined OpenGL draws (Oni 26 to 41 fps, No One Lives Forever 40 to 47) by @kibertoad in #1010
- ToadForce: screen vertices go from the program's memory to the host (Black & White from 29.8 to 39.1 frames a second, and No One Lives Forever at the 60 of its display mode) by @kibertoad in #1061
- ToadForce: the card follows its specification's frozen chapters (the frame count and the blank's interrupt follow the VGA's timing after a mode change, a write of 0 to
MODE_ENABLEbrings back the VGA mode its registers describe, a BAR over the RAM decodes nothing, and the video BIOS keeps a picture inside its 4 MB) by @kibertoad in #1102 - OpenGL on a ToadForce: the card transforms and lights the vertices (Quake III Arena's timedemo from about 89 to 105 frames a second, Myth II from about 180 to 232, Oni from about 47 to 53, and MDK2 holds its 60 with 10 to 15% less processor time a frame) by @kibertoad in #1092
- ToadForce: level 1 as the specification and measurements of Microsoft's Direct3D have it (flat shading, texture wrapping, fog, lights and depths outside 0 to 1 follow one set of rules in both renderers and in the built-in Direct3D) by @kibertoad in #1121
- ToadForce: the screen shows the surface at
MODE_STARTfrom the moment it changes (a screenshot or recording taken between a flip and the next retrace shows the finished frame, where it could show a black or half-drawn one) by @kibertoad in #1197 - ToadForce with the OpenGL renderer: a program that reads part of a surface the card drew, such as a DirectDraw blit out of it, reads back only the rows it reads, and the surface stays on the GPU (Evil Islands' cursor read the whole 800x600 back buffer back every frame; on its first island the emulator now takes 3.6% less processor time at the same emulated speed, with no change to the frame rate at
cycles=auto) by @kibertoad in #1194 - docs: CONFIGURATION.md's ToadForce section names Direct3D 8 and the card's T&L by @kibertoad in #1050
- docs: toadforce.md as a design document, the plan's open items in issues by @kibertoad in #1068
System locales and non-Latin text on the built-in Windows
The built-in Windows can now be a Windows 98 of another language. win32_locale in [emulator] picks its system locale from 31, en-US by default, and its fonts draw the characters of every single-byte Windows character set. A game translated for another language keeps its text in that language's code page, and on a US English Windows the text Windows draws for it (its launcher or setup, dialogs, message boxes, menus and window titles) came out as question marks, as accented Latin letters where another alphabet belongs, or with the wrong diacritics. With the game's locale set, that text reads as it does on a Windows of that language.
The locales, by the group of languages that shares a code page:
- Baltic: Estonian, Latvian, Lithuanian.
- Central European: Croatian, Czech, Hungarian, Polish, Romanian, Serbian in Latin script, Slovak, Slovenian.
- Cyrillic: Belarusian, Bulgarian, Russian, Serbian in Cyrillic script, Ukrainian.
- Greek.
- Turkish.
- Western European: Danish, Dutch, English (UK and US), Finnish, French, German, Italian, Norwegian, Portuguese (Brazil and Portugal), Spanish, Swedish.
The locale sets the ANSI and OEM code pages, the conversions between them and Unicode, upper and lower case and sorting of text, the names and formats of dates, numbers and currencies, the language a program's resources are picked in, and the character set of the system's fonts. Every one of the code pages is installed under every locale, as on a Windows 98 with multilanguage support, and a program that asks for a font of another character set gets one. A saved state goes on under the locale it was saved with, and an almanac report can carry the setting, so a game with a report gets its locale with almanac_auto.
Not there yet: the keyboard types the US layout under every locale (#1019), and Japanese, Chinese and Korean (#1017) and Hebrew and Arabic (#1018) have no locale; those games need a Windows 95 or 98 image of their language. CONFIGURATION.md describes the setting, and "Games in other languages" in docs/compatibility.md says which locale each language takes and how to tell that a game needs one.
- Built-in Windows: system locales (win32_locale) and fonts for every single-byte character set by @kibertoad in #1023
Almanac improvements
- Reporting a game the almanac already has: if you choose "Add as a new game" with a name the almanac already knows, your report now goes to that game instead of failing with "game already exists". You no longer need a game profile to get around this.
- Notes when fetching settings: Fetch settings from Almanac now shows what other players wrote about each game, with each note's rating and Rust-DOS version. Notes from "not playable" reports are included, so warnings like "crashes on Voodoo 3" show up before you apply the settings.
- Games started inside Windows are recognised: games launched on the built-in Windows from Explorer, an autorun menu or a launcher are now picked up for fetching and reporting, not just programs started at the DOS prompt. Games that run straight from the disc are reported with their files and platform.
- Installers no longer set the platform: reporting while
SETUP.EXEorINSTALL.EXEis the last program run no longer files a Windows 95 game as Windows 3.1 because its installer is 16-bit. The platform is left open instead. - You can correct what you add: versions that Rust-DOS adds to the almanac now carry your game profile's UUID, so you can fix them on the almanac site later.
- The old name still works. Reports and pasted game profiles that use
voodoo_fps_capare accepted and stored asfps_cap. If both names are
given,fps_capwins. - Responses use only the new name.
GET /games/{slug}/config(JSON and
ini) and report listings usefps_caponly. A Rust-DOS build that only
knowsvoodoo_fps_capwon't apply a recommended cap.
Almanac (almanac.rust-dos.com)
- Fix your own entries: on a game's page, use "Correct game details" or "Correct this version" with the UUID from your game profile (
uuid=in its[game]section). You can fix the platform, label, files, name, year, publisher and aliases of games and versions your reports added, until a moderator edits them. - Notes in recommended settings: the settings Rust-DOS fetches now include the notes from the reports behind them.
- Duplicate games: trying to add a game that already exists now shows links to report on it, add your release as a version, or view the game.
- Version list layout: long version names now wrap inside the Versions window instead of running past it on screens narrower than Full HD.
- API:
POST /gameswith a taken name answers 409 with the existing game's slug ingame.PATCH /games/{slug}andPATCH /versions/{id}accept the adder'skey, andGET /games/{slug}/configreturnsnotes. - New setting
emulator.fps_cap, labelled "Frame rate cap" and shown under
Machine on the report form. Allowed values areoffor 10 to 240, the same
values Rust-DOS's configuration parser accepts. A value of0is stored as
off. Anything else is rejected with422. offcan be recommended. Rust-DOS now caps at 60 by default, and
benchmarks and timedemos report at most the cap, sooffis a normal value.
A game can carryfps_cap=offthe same way Test Drive 4 can carry
fps_cap=60.- Schema version 3.
GET /api/v1/schemanow listsfps_cap, with a
drop-down ofoffand common rates. Clients that cache the schema should
fetch it again.
Copy protection compatibility
Rust-DOS runs a game's copy protection as it is, and the protection checks the disc image as it would check the disc in a real drive. This release brings the built-in Windows closer to a real Windows 98 SE for SafeDisc 2: it now lists the device drivers that Windows 98 SE loads after its start, for the parts of the machine it provides, and VMM answers the services programs use to find them and has its own code and service table where Windows 98 keeps them. With that, Black & White's original disc passes its SafeDisc 2 check on the built-in Windows from a CUE and BIN image of the disc, and the game runs from its launcher into play.
docs/copy-protection.md now recommends tools for ripping the discs you own: redumper for most discs, whose CUE sheet mounts with its .subcode file beside it, and disc-archiver with redumper for SecuROM discs, which writes an Alcohol 120% .mds with the disc's measured DPM data. That .mds holds no subchannel: copy redumper's .subcode beside it and mount the .mds, and the image has both the DPM data and the disc's subchannel. The page's table says which image each protection needs. As before, use full rips of CDs you own: an ISO fails SafeDisc's check, as it would on a real PC.
- win32: VXDLDR's device list, VMM_GetDDBList and Get_DDB by @kibertoad in #977
- docs: recommend redumper, and disc-archiver for SecuROM's DPM data by @kibertoad in #1041
- CD images: read a .subcode or .sub beside an Alcohol 120% .mds (as CUE sheets, CloneCD descriptors and bare images do; the log names the file read, or why a file was refused) by @kibertoad in #1058
- MSCDEX: Seek moves the drive's head, and the head's location and the Q channel report where the subchannel of the sector under it says (SecuROM 1's check passes from an image with its subchannel, where every answer was sector 0) by @kibertoad in #1202
Hardware emulation
Voodoo and OpenGL speed
- Voodoo OpenGL: blended draws share a barrier until one goes over another (about half the GPU time a frame in games that blend most of what they draw, with dithering on) by @kibertoad in #848
- voodoo: raster variants for the built-in Direct3D HAL's states by @kibertoad in #852
- voodoo: inline the pixel pipeline's row so raster variants keep their fixed modes by @kibertoad in #857
- bus: services read and write a Voodoo3's memory in one copy (GDI drawing on a DirectDraw surface of a Banshee or Voodoo3) by @kibertoad in #923
- voodoo: bytes a program goes on reading back stay in memory while it reads them (with the OpenGL renderer, a game that reads its picture every frame no longer has a run of slow frames once a second) by @kibertoad in #1169
- voodoo: a held Banshee or Voodoo3 picture keeps the memory's words and draws them only when the picture is asked for (the hold of #1180 costs about 1 point of processor use in place of 8) by @kibertoad in #1192
Timing and speed
- cycles=auto: count frames a program writes into a Voodoo3's desktop (Windows games that draw straight into a Voodoo3's or Banshee's screen no longer run at full speed) by @kibertoad in #845
- cycles=auto: no lower than what the host ran when it falls behind (3D games drawn by the software Voodoo renderer are no longer held far below the speed the host can run) by @kibertoad in #854
- cycles=auto: end a step up the host falls behind at within frames (fewer long frames and sound underruns near the host's limit, and a load from the disk no longer takes the speed down) by @kibertoad in #859
- dynrec: read the poked counts of MMX shifts by a constant by @kibertoad in #847
- FPU sums round to the control word's 53 or 24 bits: with
fpu=exact, the default, a Win32 program's sums come out with a double's or a single's bits as on a 387, and take a shorter path. DOS programs, which run at 64 bits, compute as before. By @kibertoad in #1025 - win32: Sleep(0) with no thread of its priority ready returns at once, as on Windows 98, and a loop around it is skipped like other busy-waits (Windows games that spin on Sleep(0) while another thread waits no longer run below real time) by @kibertoad in #1042
- One frame rate cap,
fps_cap, for every card, in place of the 3dfx card'svoodoo_fps_cap, whose lines are still read. Before, only the 3dfx card had a cap, and it was off by default. The default,auto, holds a Windows game that presents through DirectDraw, Direct3D 8, OpenGL or Glide without waiting for the retrace, and a DOS Glide game, to 60 frames a second; a game that waits for the retrace shows at the display's rate as before. A number from 10 to 240 holds every present to that rate, andoffholds none. Atcycles=maxthe default more than halves the emulator thread's load in Grom's menu and in Myth II with VSync off. By @kibertoad in #1028 - cycles=auto: count the frames the frame rate cap shows (Grom's main menu under the default cap from about 21 to 59 frames a second) by @kibertoad in #1163
- cycles=auto: no low hold after the host stalls or across scenes. A frame the host was slow to run, such as one waiting on a file read cold from the disk, no longer holds the speed down for minutes, and a step up is judged against a frame rate from the same scene (Quake's timedemo from about 42 to 65 frames a second, Doom's from about 23 to 63 after slow loads, and Grom's main menu from about 9 to 60). By @kibertoad in #1187
- Recompiler: FILD and FISTP of a qword keep their exact 80 bits and run in translated code (Evil Islands from about 16 to 25 frames a second on its first island at
cycles=auto) by @kibertoad in #1188 - Folder drives: looking up a missing file, the free space and a FindFirstFile for one name no longer read the whole folder each time (an installer that copies many files into one folder runs faster: Fields of Fire's setup from 0.077x to 0.119x real time) by @kibertoad in #1209
- Built-in Windows: a wait with no time to wait that finds nothing signaled is skipped in a loop like other busy-waits, and SetEvent, ReleaseMutex and the other signalling calls end only the waits on the object they change (Zanzarah's Bink intro shows all 624 frames at
cycles=auto, where it dropped some, and KERNEL32 takes about a third of the emulator thread's busy time atcycles=max, where it took half) by @kibertoad in #1252
Improved hardware support
- OpenGL Voodoo with voodoo_msaa: blend each sample with its own value by @kibertoad in #863
- Indeo 5 through oxideav-indeo's decoder that follows Intel's driver (Indeo 5 movies whose pictures came out dark and banded) by @kibertoad in #995
- MCI: a video play takes "window" and "fullscreen" by @kibertoad in #986
- QUARTZ: IVideoWindow's full-screen mode covers the screen by @kibertoad in #974
- Direct3D 8: geometry blending in software vertex processing by @kibertoad in #878
- OPENGL32: fixed-function lighting by @kibertoad in #896
- Direct3D: the pipeline generates texture coordinates and applies texture matrices by @kibertoad in #955
- Direct3D: D3DTSS_ADDRESS sets the address mode in both directions by @kibertoad in #953
- ddraw: blit from DXT surfaces as DirectX 7 on Windows 98 SE does by @kibertoad in #882
- ddraw: a texture takes a depth buffer of any size by @kibertoad in #884
- ddraw: ReleaseDC lets go of the surface's DC whatever handle it is given by @kibertoad in #918
- DirectDraw: SetCooperativeLevel's exclusive mode shows and places the window by @kibertoad in #1012
- bus: services reach device memory in words and dwords (GDI drawing on a DirectDraw surface of a Voodoo Graphics or Voodoo2 shows) by @kibertoad in #912
- win32: a hidden cursor with a DirectInput mouse steers, and a click captures it by @kibertoad in #921
- win32: Black & White's exports (CoFileTimeToDosDateTime, _TrackMouseEvent) and DirectX 8 as each Windows has it: the registry and the DirectX DLLs' version resources say DirectX 8.1 under Windows 98 and 8.0a under Windows 95, where they said 6.1. By @kibertoad in #1001
- IMAGEHLP: ReBaseImage by @kibertoad in #883
- MSVCRT: add _EH_prolog and the locale guard variables by @kibertoad in #885
- MSVCRT: C++ classes, RTTI and __unDName as Visual C++ 6 has them by @kibertoad in #894
- MSVCRT: the functions MSVCP60, MSVCIRT, MFC42 and grphmfc import by @kibertoad in #899
- MSVCRT: qsort and bsearch take Visual C++ 6's steps by @kibertoad in #904
- FPREM: invalid and NaN operands clear C1 and C2, as the x87 by @kibertoad in #908
- FSCALE: zeros, infinities and results past the 80-bit range by @kibertoad in #976
- loader: log a missing DLL file by a path as missing by @kibertoad in #973
- Built-in Windows: a page file behind the programs' own memory, twice the machine's memory as
GlobalMemoryStatusreports it (a program that takes nearly all the memory in one block can go on allocating, and a zeroed block takes no memory until it is touched) by @kibertoad in #1064 - Built-in OPENGL32: packed pixel types, and the ToadForce's texture size (the packed types each card's real driver takes;
GL_MAX_TEXTURE_SIZEis 2048 on a ToadForce, where it was 256 on every card) by @kibertoad in #1044 - Built-in OPENGL32: display lists, and
wglShareListsshares them between contexts (a program that draws from lists showed nothing for them) by @kibertoad in #1105 - Built-in OPENGL32: display lists draw runs of vertices in one step, and contexts that share lists share texture objects (a program that loads textures in one context and draws in another draws them textured) by @kibertoad in #1114
- Built-in SHELL32: SHAppBarMessage answers 0, as with no taskbar by @kibertoad in #1034
- Host folders: list names that start with a dot, as Windows 95 and 98 do (
.256has the short name256~1); the host's own files, such as.DS_Store, stay out of the drive by @kibertoad in #1033 - Direct3D: the software devices, Ramp and RGB, drawn on the processor on any display adapter and listed before the card's device, as DirectX 6.1 lists them (a machine without a 3D card listed no device) by @kibertoad in #1130
- Direct3D 5's EnumTextureFormats lists RGB and palettized formats only (on a ToadForce it listed the compressed and bump formats too) by @kibertoad in #1127
- Built-in KERNEL32: serial ports and their comm functions for Win32 programs, as Windows 9x has them by @kibertoad in #1131
- Built-in Windows: WING32.DLL, the 32-bit side of WinG by @kibertoad in #1125
- Built-in Windows: MSVCRT20.DLL and MSVCRT40.DLL, which forward to the built-in MSVCRT.DLL by @kibertoad in #1126
- Built-in Windows: the raster fonts a program adds with AddFontResource are listed and drawn by @kibertoad in #1128
- Built-in Windows: freeing a child of a hidden window no longer erases the windows under it by @kibertoad in #1138
- mmio: a seek back on a file open for writing only no longer writes stale bytes into the file by @kibertoad in #1142
- Built-in Windows: views of files and module images go to the page file, and the pages a faulting instruction needs stay until it runs (Oni and Warhammer: Shadow of the Horned Rat at
memsize=16, which ended with page faults) by @kibertoad in #1143 - voodoo: a Banshee or Voodoo3 holds its picture while a swap waits for its retrace and the program draws into the buffer shown (no single black frames) by @kibertoad in #1180
- Glide opens the card at the refresh rate grSstWinOpen asks for, and grQueryResolutions lists rates as 3dfx's Glide 3 does. A Voodoo Graphics or Voodoo2 runs at the rate its DAC's clock is set to, under DOS Glide and 3dfx's own drivers too, where it always ran at 60 Hz (Unreal Gold set to 75 Hz runs at 75 frames a second). By @kibertoad in #1157
- DirectDraw: IDirectDrawSurface7's Flip waits for the previous flip unless the program passes DDFLIP_DONOTWAIT, as on DirectX 7 by @kibertoad in #1183
- Direct3D: texture Load copies DXT-compressed textures by @kibertoad in #1172
- Built-in KERNEL32: LoadModule by @kibertoad in #1173
- Built-in Windows:
win32_desktopsets the desktop's size,640x480(the default),800x600or1024x768, for games that check the screen's size before they start. A program's own ChangeDisplaySettings still changes it. By @kibertoad in #1204 - Built-in Windows: an MDI client created without scroll bar styles no longer shows scroll bars when a child reaches past its edges by @kibertoad in #1206
- Built-in Windows: a display mode change frees the cursor a program confined with ClipCursor, as Windows does by @kibertoad in #1217
- Built-in Windows: MS Sans Serif 8, the font of menus, dialogs, buttons and captions, drawn with one-pixel strokes (t, f, r and 0 no longer merge: "Options" read "Oplions" and "Start" "Slad") by @kibertoad in #1220
- DirectSound: each frame is mixed at the primary's rate once, so what a program writes behind the play cursor is heard on the next loop, as on Windows by @kibertoad in #1225
- Built-in Windows: DlgDirList, DlgDirListComboBox, DlgDirSelectEx and LB_DIR list files, folders and drives as Windows 98 does by @kibertoad in #1237
- Built-in Windows: a Microsoft Video 1 decoder, and MSVFW32's ICLocate, ICSendMessage and ICDecompress by @kibertoad in #1233
- Win16 MMSYSTEM: a prepared WAVEHDR keeps the program's lpData, and a device opened with CALLBACK_FUNCTION calls its function (Windows 3.1 games that play sound through Miles' WAIL16.DLL) by @kibertoad in #1242
- Win16: DDEML for 16-bit programs, Windows 3.1 list box messages for superclasses of LISTBOX, and a 16-bit window procedure gets its own DS (Delphi 1 programs that use DDE start, and their list boxes fill) by @kibertoad in #1231
- Built-in Windows: DPNET.DLL, DirectPlay 8's peer, lobbied application and address, as on a Windows 98 SE machine with DirectX 8.1 and no network connection by @kibertoad in #1247
- Display:
filter=sharp, the new default, shows every pixel of the picture at the same width and height at any scale, wherenearestgave pixels of two widths at scales that aren't whole numbers (640x480 in fullscreen on a 1920x1200 display).hardis the old nearest sampling, andnearestis read assharp. By @kibertoad in #1253 - ToadForce: a gamma ramp, and
toadforce_gammafor the screen's own gamma. DirectDraw and Direct3D 8 report the ramp in their caps on a ToadForce, Banshee or Voodoo3, and on a Banshee or Voodoo3 their gamma calls now set the desktop's lookup table, as GDI's already did, in 8 and 16-bit modes by @kibertoad in #1256 - Built-in Windows: COM local servers, calls between processes through type libraries and MIDL's proxy/stub DLLs (RPCRT4's NDR), structured storage, ITypeInfo::Invoke and OLEAUT32's SAFEARRAY functions (InstallShield 6 setups, which run their engine as a separate program, install) by @kibertoad in #1264
Games fixed and optimized
Black & White
The original disc release now runs on the built-in Windows, on a ToadForce: its SafeDisc 2 check passes from an image of the disc, the launcher accepts the DirectX version, and the game plays through the prologue into the movement tutorial. On a Voodoo3 it gets as far as the prologue.
- win32: VXDLDR's device list, VMM_GetDDBList and Get_DDB by @kibertoad in #977
- win32: VMM's code in its locked code object, Simulate_Iret by @kibertoad in #996
- win32: Black & White's exports and DirectX 8 as each Windows has it (the launcher no longer says "You need DirectX 7 or greater", and the game no longer ends before its first window) by @kibertoad in #1001
- DirectDraw: SetCooperativeLevel's exclusive mode shows and places the window (clicks reach the game) by @kibertoad in #1012
- FPU sums round to the control word's 53 or 24 bits (about 26 to 28.5 frames a second in the movement tutorial) by @kibertoad in #1025
- ToadForce: screen vertices go from the program's memory to the host (about 30 to 39 frames a second in the movement tutorial) by @kibertoad in #1061
- A ToadForce machine without a
cpuline has a Pentium III (the game no longer ends at start on an RDTSC instruction the 486 lacks when the configuration sets no processor) by @kibertoad in #1168
Max Payne
Starts with the built-in MSVCRT.DLL, without its own msvcrt.dll, plays its intro movie full screen, and draws its tutorial level on a Voodoo3 and, with "D3D Hardware T&L", on a ToadForce. This was run with the unprotected MaxPayne.exe that the game's own release includes; its SafeDisc-protected one doesn't start yet (#874).
- MSVCRT: add _EH_prolog and the locale guard variables by @kibertoad in #885
- MSVCRT: C++ classes, RTTI and __unDName as Visual C++ 6 has them (reaches its menu and the tutorial) by @kibertoad in #894
- MSVCRT: the functions MSVCP60, MSVCIRT, MFC42 and grphmfc import by @kibertoad in #899
- MSVCRT: qsort and bsearch take Visual C++ 6's steps (the menu text's edges match those drawn with the game's own msvcrt.dll) by @kibertoad in #904
- Direct3D 8: geometry blending in software vertex processing (Max and the other characters are animated instead of sliding in their bind pose) by @kibertoad in #878
- QUARTZ: IVideoWindow's full-screen mode covers the screen (the intro movie) by @kibertoad in #974
- ToadForce: a gamma ramp (the Brightness slider in Options > Video changes the picture on a ToadForce, and on a Voodoo3 in 16-bit modes) by @kibertoad in #1256
MDK2
- IMAGEHLP: ReBaseImage (the game program starts) by @kibertoad in #883
- OPENGL32: fixed-function lighting (with the launcher's "Hardware T&L" ticked, the characters are lit instead of black) by @kibertoad in #896
- FSCALE: zeros, infinities and results past the 80-bit range (the attract-mode demo no longer shows only its HUD on a black screen for its first 20 to 30 seconds) by @kibertoad in #976
- win32: Sleep(0) with no thread of its priority ready returns at once (the first level runs at real time at 90000 cycles and at
cycles=max, where it ran at 0.81 to 0.88 and 0.79 to 0.81 of it, and at 60 frames a second atcycles=max) by @kibertoad in #1042 - OpenGL on a ToadForce: the card transforms and lights the vertices (60 frames a second in the first level with 10 to 15% less processor time a frame) by @kibertoad in #1092
The Operative: No One Lives Forever
Plays its first mission on a ToadForce.
- ddraw: blit from DXT surfaces as DirectX 7 on Windows 98 SE does (on a Voodoo3 the characters have their textures instead of drawing flat white) by @kibertoad in #882
- loader: log a missing DLL file by a path as missing (the optional language DLL the game looks for is no longer logged as a missing part of Windows) by @kibertoad in #973
- ToadForce: screen vertices go from the program's memory to the host (from 55.1 to 56.8 frames a second to the 60 of its display mode) by @kibertoad in #1061
- ToadForce: the screen shows the surface at
MODE_STARTfrom the moment it changes (screenshots in the UNITY lobby show the room and its HUD, where most came out black or without the HUD) by @kibertoad in #1197 - cycles=auto: no low hold after the host stalls or across scenes (about 43 to 56 frames a second in play, the median of three boots) by @kibertoad in #1187
Zanzarah: The Hidden Portal
On a ToadForce it reads its compressed textures, loads a save and plays in the Fairy Garden (#615). It doesn't run on a Voodoo3.
- ddraw: a texture takes a depth buffer of any size (the character's shadow has her shape instead of darkening a wedge of the ground) by @kibertoad in #884
- Built-in Windows: a display mode change frees the cursor ClipCursor confined (at 1024x768 the mouse reaches the whole screen, where it stayed in the top-left 640x480 and the title screen's "Next" couldn't be clicked) by @kibertoad in #1217
- Built-in Windows: waits with no time to wait skip their loops, and signals end only the waits on their object (the Bink intro shows all its frames) by @kibertoad in #1252
Grom: Terror in Tibet
On a ToadForce, at 800x600 in 16 bits, it reaches its main menu and the tutorial level (#645). It doesn't run on a Voodoo3, which has no 32-bit texture format.
- cycles=auto: count the frames the frame rate cap shows (the main menu at
cycles=autofrom about 21 to 59 frames a second under the default cap) by @kibertoad in #1163 - cycles=auto: no low hold after the host stalls or across scenes (the main menu at
cycles=autono longer stays at 6 to 22 frames a second after the boot's loads) by @kibertoad in #1187
Nocturne
Installs with its own setup and reaches play in the first room of Volume 1 on a ToadForce.
- MCI: a video play takes "window" and "fullscreen" (the opening movie plays; the game waited on a black screen until Escape) by @kibertoad in #986
- Indeo 5 through oxideav-indeo's decoder that follows Intel's driver (its two Indeo 5 movies no longer turn dark and banded) by @kibertoad in #995
- A ToadForce machine without a
cpuline has a Pentium III (the game no longer exits at start with "This CPU does not have an MMX unit" when the configuration sets no processor) by @kibertoad in #1168 - cycles=auto: no low hold after the host stalls or across scenes (about 28 to 34 frames a second in the first scene, the median of three boots) by @kibertoad in #1187
Oni
- FPU sums round to the control word's 53 or 24 bits (about 41 to 47 frames a second in the training room on a ToadForce) by @kibertoad in #1025
- memsize's default comes from the CPU and the display adapter (with
machine=svga_toadforce,cpu=pentium_iiand nomemsizeline the machine has 128 MB and the first level loads; with the old 16 MB the game ended at New Game) by @kibertoad in #1091 - OpenGL on a ToadForce: the card transforms and lights the vertices (about 47 to 53 frames a second in the training room) by @kibertoad in #1092
- Built-in Windows: views of files and module images go to the page file (with
memsize=16the first level loads and plays, where the game ended with a page fault) by @kibertoad in #1143
Omikron: The Nomad Soul
Reported by @xttx in #280. The first dialogue with the software Voodoo renderer and cycles=auto went from about 19 to 23 frames a second to about 28 to 32, keeps real time, and has far fewer sound underruns.
- voodoo: raster variants for the built-in Direct3D HAL's states by @kibertoad in #852
- voodoo: inline the pixel pipeline's row so raster variants keep their fixed modes (about 29 to 33-34 frames a second at
cycles=max) by @kibertoad in #857 - cycles=auto: no lower than what the host ran when it falls behind by @kibertoad in #854
- cycles=auto: end a step up the host falls behind at within frames by @kibertoad in #859
- DirectSound: each frame is mixed at the primary's rate once (no crackle in the dialogue's speech, which refills its buffer behind the play cursor) by @kibertoad in #1225
Test Drive 4
- Voodoo OpenGL: blended draws share a barrier until one goes over another (about half the GPU time a frame in a race) by @kibertoad in #848
- Game fixes:
td4-intro-camerafor version 1.2 on the built-in Windows, and the KERNEL32 functions the game's 1.2 patch needs (a race starts in the chase view at any frame rate; at 60 frames a second the camera started just above the car) by @kibertoad in #1144 - voodoo: bytes a program goes on reading back stay in memory while it reads them (with the OpenGL renderer on a Voodoo2 or Voodoo3, no run of slow frames once a second: the 99th percentile frame from about 18.7 to 17.1 ms) by @kibertoad in #1169
- voodoo: a Banshee or Voodoo3 holds its picture while a swap waits for its retrace (no single black frames in a race, where one to several showed every 20 seconds) by @kibertoad in #1180
- voodoo: a held Banshee or Voodoo3 picture keeps the memory's words and draws them only when asked for (a race with the software renderer from about 71 to 64% processor use) by @kibertoad in #1192
Delta Force
- cycles=auto: count frames a program writes into a Voodoo3's desktop (the soldier menu no longer stays blank) by @kibertoad in #845
- dynrec: read the poked counts of MMX shifts by a constant (faster terrain: about 17 to 31 frames a second at
cycles=autoat the start of the first mission) by @kibertoad in #847
Adrenix
- bus: services reach device memory in words and dwords (the Direct3D version shows its intro, menus and missions instead of a black screen) by @kibertoad in #912
- ddraw: ReleaseDC lets go of the surface's DC whatever handle it is given (the cockpit shows) by @kibertoad in #918
- win32: a hidden cursor with a DirectInput mouse steers, and a click captures it by @kibertoad in #921
- bus: services read and write a Voodoo3's memory in one copy (the HUD it draws through GDI every frame) by @kibertoad in #923
Myth: The Fallen Lords
- OpenGL Voodoo with voodoo_msaa: blend each sample with its own value (no dark line along the edges of the terrain's triangles) by @kibertoad in #863
- Host folders: list names that start with a dot (Bungie's 1.3 patch copies all its files,
tags\local\.256among them) by @kibertoad in #1033 - Built-in OPENGL32: packed pixel types, and the ToadForce's texture size (Project Magma's 1.5 OpenGL renderer draws the first level on a ToadForce, where it showed a white screen) by @kibertoad in #1044
Myth II: Soulblighter
Plays on a ToadForce: 1.0 from its CD, Bungie's 1.3 patch and Project Magma's 1.8.1.
- Built-in SHELL32: SHAppBarMessage answers 0, as with no taskbar (the game ended before its first picture, "needs SHELL32.DLL's function SHAppBarMessage") by @kibertoad in #1034
- Built-in Windows: a page file behind the programs' own memory (1.0 ran out of memory for its fonts and sounds and now plays at 32, 64 and 128 MB; 1.3 loads Willow Creek) by @kibertoad in #1064
- Built-in OPENGL32: packed pixel types, and the ToadForce's texture size (the 1.8.1 OpenGL renderer draws the first level, where it showed a white screen) by @kibertoad in #1044
- OpenGL on a ToadForce: the card transforms and lights the vertices (the 1.8.1 OpenGL renderer from about 180 to 232 frames a second in Willow Creek) by @kibertoad in #1092
Magic & Mayhem
- cycles=auto: end a step up the host falls behind at within frames (a battle's loads from the disk no longer take the speed down) by @kibertoad in #859
Magic & Mayhem: The Art of Magic
Installs from its CD with its own InstallShield 6 setup, then starts, shows its main menu, plays its campaign intro and plays the first mission on the built-in Windows on a ToadForce. Multiplayer finds no network connection.
- Built-in Windows: DPNET.DLL, DirectPlay 8 without a network (the game ended with a page fault before it opened a window) by @kibertoad in #1247
- Built-in Windows: COM local servers, RPCRT4's NDR and ITypeInfo::Invoke (the CD's setup installs the game and writes its registry keys, where it stopped with "Setup failed to launch installation engine: (0x80040154)") by @kibertoad in #1264
Warhammer: Shadow of the Horned Rat
The Windows 95 version runs on the built-in Windows: it plays its intro, draws its text in its own fonts, saves and loads a campaign, and starts a battle. This was run with the GOG release with GOG's own wing32.dll removed. docs/compatibility.md has the set-up a copied installation needs.
- Built-in Windows: WING32.DLL (the game was refused at load) by @kibertoad in #1125
- Built-in Windows: MSVCRT20.DLL and MSVCRT40.DLL (the Reality Lab DLLs it draws its battles with load, and the intro plays) by @kibertoad in #1126
- Built-in Windows: the raster fonts a program adds with AddFontResource are listed and drawn (the text is in the game's fonts, where columns overlapped and
<showed between words, and a battle starts, where the game went back to its main menu) by @kibertoad in #1128 - Built-in Windows: freeing a child of a hidden window no longer erases the windows under it (no black rectangles where a message box was) by @kibertoad in #1138
- mmio: a seek back on a file open for writing only no longer writes stale bytes into the file (a saved campaign loads, where loading said "Load Game Failed, Error Code:8") by @kibertoad in #1142
- Built-in Windows: views of files and module images go to the page file (with
memsize=16it reaches its title menu, where it ended with a page fault before its first picture) by @kibertoad in #1143
Serious Sam: The First Encounter
Plays into its first level on a ToadForce on the built-in Windows.
- Built-in KERNEL32: serial ports and their comm functions (the game opens a port for a second mouse as its intro level starts, and ended there needing SetupComm) by @kibertoad in #1131
- A ToadForce machine without a
cpuline has a Pentium III (the game no longer crashes at start on an RDTSC instruction the 486 lacks when the configuration sets no processor) by @kibertoad in #1168
Warhammer: Dark Omen
Starts on the built-in Windows and reaches its main menu on a ToadForce. This was run with the GOG copy with its wrapper DLL removed, where New Campaign and Tutorial don't start yet.
- Direct3D: the software devices, Ramp and RGB (the game makes its Direct3D device, where it ended with "Dark Omen has failed due to out-of-date display drivers") by @kibertoad in #1130
- Direct3D 5's EnumTextureFormats lists RGB and palettized formats only (on a ToadForce the game no longer hangs on a black screen at start) by @kibertoad in #1127
Evil Islands
Plays into its first island on the built-in Windows on a ToadForce. This was run with the GOG release 1.06 with its wrapper removed. docs/compatibility.md has the set-up it needs: a processor with MMX, and the settings files GOG's installer leaves in gog-support.
- Direct3D: texture Load copies DXT-compressed textures (the menu and the world have their textures, where most of them were black) by @kibertoad in #1172
- DirectDraw: IDirectDrawSurface7's Flip waits for the previous flip unless the program passes DDFLIP_DONOTWAIT (the game no longer quits with "Can't flip render surface" when New Game is clicked) by @kibertoad in #1183
- A ToadForce machine without a
cpuline has a Pentium III (the game no longer quits with "MMX required in this version" when the configuration sets no processor) by @kibertoad in #1168 - Recompiler: FILD and FISTP of a qword keep their exact 80 bits and run in translated code (about 16 to 25 frames a second on the first island at
cycles=auto) by @kibertoad in #1188 - ToadForce with the OpenGL renderer: a read of part of a surface reads back only those rows (the cursor no longer reads the whole back buffer back from the GPU every frame: on the first island 3.6% less processor time at the same emulated speed, and the 99th percentile frame from 18.1 to 18.8 ms down to 17.3 to 17.4 ms; the frame rate at
cycles=autostays the same) by @kibertoad in #1194
Rage of Mages
Starts on the built-in Windows, plays its intro videos and reaches its main menu on a Voodoo3. This was run with GOG's 1.03 with GOG's DirectDraw wrapper removed.
- Built-in KERNEL32: LoadModule (the Smacker DLL the game ships loads, where the game ended before its first window) by @kibertoad in #1173
Jeff Wayne's The War of the Worlds
Its SecuROM check passes on the built-in Windows from a CUE image of Disc 1 with redumper's .subcode beside it. The intro plays, and a new campaign runs through its briefing to the war map.
- MSCDEX: Seek moves the drive's head, and the head's location and the Q channel report where the subchannel of the sector under it says (the game ended after its check without opening a window) by @kibertoad in #1202
Fields of Fire: War Along the Mohawk
Plays its intro, reaches its main menu and plays its tutorial on the built-in Windows with win32_desktop=800x600. This was run with the 1998 CD release installed with its own setup.
- Built-in Windows:
win32_desktopsets the desktop's size (the game no longer says it needs a screen of 800 by 600 or more and exits) by @kibertoad in #1204 - Built-in Windows: an MDI client created without scroll bar styles no longer shows scroll bars (the menus no longer have scroll bars over their bottom row of buttons) by @kibertoad in #1206
- Folder drives: lookups, free space and FindFirstFile stop reading whole folders (the setup copies its files from 0.077x to 0.119x real time) by @kibertoad in #1209
Biosys
Plays its films, starts a new game and is in play at its first location on the built-in Windows on a Voodoo3. This was run with the 1999 release installed with its own setup.
- Built-in Windows: a Microsoft Video 1 decoder, ICLocate and ICDecompress (the films play, where the game ended needing ICLocate when it opened its first one) by @kibertoad in #1233
- Built-in Windows: DlgDirList, DlgDirSelectEx and LB_DIR (the "Insert the program CD-ROM" dialog lists the drives to pick from, where its list was empty) by @kibertoad in #1237
This Means War!
The Windows 3.1 game installs from its CD with its own setup, plays its intro with its sound and goes on to the briefing.
- Win16 MMSYSTEM: keep the program's WAVEHDR, call wave callbacks (the game no longer ends with a general protection fault in WAIL16.DLL when the intro's sound starts, and the briefing's voice plays) by @kibertoad in #1242
- Win16: DDEML for 16-bit programs, list box messages for superclasses, window procedure DS (the CD's setup installs the game, makes its Program Manager group and sets up WinG, where it stopped at once with "An error returned from DDE ($4004)") by @kibertoad in #1231
Other changes:
- Save states: the W32 section is at version 72, for MSVCRT's new functions and variables, MCI's full-screen video window, the mouse tracking request, the system locale, the page file, OpenGL's display lists and the texture objects contexts share, OpenGL's vertices as the program gave them, Direct3D's software devices, serial ports, file views and module images in the page file, and the fonts programs add. States saved on the built-in Windows by earlier versions don't load. In #894, #986, #1001, #1023, #1064, #1092, #1105, #1114, #1128, #1130, #1131 and #1143
- memsize's default comes from the CPU and the display adapter: without a
memsizeline a 386, 486 or Pentium has 16 MB as before, a Pentium MMX, K6-2 or Pentium Pro 32 MB, a Pentium II 64 MB, a Pentium III 128 MB, and a machine with a ToadForce 128 MB (64 MB with a 386). The settings window shows(auto)while the size isn't set, and F2 adds nomemsizeline. A configuration file that an earlier version completed with F2 has amemsizeline, which keeps its size until it is deleted. A saved state keeps its own memory size. By @kibertoad in #1091 - A machine with a ToadForce and no
cpuline has a Pentium III; every other display adapter keeps the 486. The settings window shows "Pentium III (auto)" and doesn't write the model to the file. Acpuline wins, and one that sets a model older than the Pentium II beside a ToadForce gets a line in the log; changing the card to the ToadForce in the settings window unsets such a model. A saved state keeps its processor. By @kibertoad in #1168 - Recorded results of Win32 games (golden hashes, recorded input, save states replayed with input) can change with the FPU's sums, whose last bits now follow the control word's precision. In #1025
- Almanac: year, publisher, notes and a UUID per game profile. Reporting a game again from its profile updates your report instead of adding another. By @dividebysandwich in #935
- Almanac: sync win32_depth and report a program's platform (DOS, Windows 3.1 or Windows 95/98) by @dividebysandwich in e2159b4d
- Almanac: a game reported as new under a name the almanac has goes to that game, the notes of the reports the settings come from show under the game picked, and programs started on the built-in Windows (from Explorer, a launcher or an autorun) are the ones reported by @dividebysandwich in a83b0f43
- win32:
--trace-3d FILEwrites what Windows programs ask of DirectDraw, Direct3D and OpenGL, for debugging and for comparing builds by @kibertoad in #892 - Debugger: reads, writes, breakpoints and watchpoints reach pages in the built-in Windows's page file, breakpoints and watchpoints on pages that move are kept by linear address (
lin:names) in their own process, andGET /api/win32/page_filelists the pages there by @kibertoad in #1101 - Indeo 5: oxideav-indeo 0.0.5 comes from crates.io in place of the copy the tree carried, with the same decoder by @kibertoad in #1152
- voodoo: the colour tables of a held picture live outside the card, which takes back the 2 KB #1192 added to every machine (a test that makes three machines overflowed its stack on Linux) by @kibertoad in #1198
- The machine is made on the heap and handed on as a box, so a device that grows can no longer overflow the stack of a thread that makes machines, and a test bounds the stack that making, saving and loading machines needs by @kibertoad in #1200
- Save states: the W32 section is at version 73, for the desktop's size
win32_desktopset. States of versions 71 and 72 still load, with a 640x480 desktop. By @kibertoad in #1204 - Save states: the W32 section is at version 74, for the Win16 MMSYSTEM's wave headers and callbacks. States of versions 71 to 73 still load. By @kibertoad in #1242
- Save states: the W32 section is at version 77, for 16-bit DDEML's copies, user handles and transactions (75), DirectPlay 8's objects (76) and COM's local servers, proxies and stubs (77). States of versions 71 to 76 still load. In #1231, #1247 and #1264
- Save states: the ToadForce's state is at version 5, for its gamma ramp. States saved with a ToadForce by earlier versions don't load. By @kibertoad in #1256
- Tests: the ordinals test lists DPNET.DLL as DirectX 8's by @kibertoad in #1261
- CI: zizmor ignores cache-poisoning on the rust-cache steps by @dividebysandwich in #844
- ci: send Ctrl+F5 to the xBRZ window test with xte by @kibertoad in #897
Full Changelog: v1.8.3...v1.9.0