Repository navigation
1.9.1
What's Changed
Kudos to our bug reporters
Big thanks to @xttx for the report of the crash when the ToadForce is picked!
Hardware emulation
Voodoo and ToadForce speed
- Voodoo3: translated code reads and writes the card's memory itself (software-rendered Windows games on a Voodoo3 or Banshee, such as Enemy Infestation, Adrenix's software renderer, Amok and Biosys, take a third to three quarters less of the host's CPU) by @kibertoad in #1328
- Translated code writes the VESA frame buffer itself, on the ToadForce, S3, mach64 and plain VBE, and MMX stores into a Voodoo3's memory don't leave translated code either (Nocturne from about 42 to 46 frames a second at
cycles=max) by @kibertoad in #1351 - Voodoo3: DirectDraw blits, and GDI's blits through a DirectDraw surface's DC, take their turn behind the 3D drawing instead of waiting for all of it (Adrenix's crosshair and HUD) by @kibertoad in #1345
- VESA: write runs through the A0000h bank window at once (in banked modes, string moves and dword writes no longer go a byte at a time: Ascendancy's galaxy view from about 17% to 5% busy) by @kibertoad in #1287
Timing and speed
- Recompiler: translate POPAD on a 16-bit stack on a 486 and later (DOS/4GW's real-mode calls, Alien Logic) by @kibertoad in #1286
- Recompiler: translate XLAT (Bedlam's mission loops) by @kibertoad in #1293
- Recompiler: translate POPF and POPFD at ring 3 (Aliens: A Comic Book Adventure's video player, which ran 1.3 million of them a second through the interpreter) by @kibertoad in #1307
- KERNEL32: critical sections and the
Interlocked*functions run as x86 code in translated code instead of a trap each (they were 45% of Adrenix's mission briefing) by @kibertoad in #1343 - Heaps: first fit starts after the blocks with no room in front (GlobalAlloc was 5 to 8% of Enemy Infestation's busy time) by @kibertoad in #1324
- Auto speed: a host far behind ends its measurement on the wall clock (a game that drops far behind after a raise gets its speed back within about a second, where Shadow of the Horned Rat ran at a tenth of real time for 18 s) by @kibertoad in #1300
- Auto speed: a DPMI host client's waits don't make it an idling system (Alien Odyssey's menu no longer runs at all the host has after its intro) by @kibertoad in #1304
- Idle skip: follows counts in registers through a proof (MFC's idle loop), and IsIconic, IDirectDrawSurface::IsLost and IDirectSoundBuffer::GetStatus (Biosys's menus from about 96% to 79% of a host core) by @kibertoad in #1309
- Idle skip: a proof follows a ReadFile at the end of a file (Smacker's read-ahead at the end of Chaos Overlords' movies no longer slows the emulator) by @kibertoad in #1325
- Idle skip: a state load ends what was armed before it (loading an older save state no longer leaves the game on the interpreter for minutes) by @kibertoad in #1288
Improved hardware support
- MSCDEX: answer the installation check through INT 2Fh AX=1100h by @kibertoad in #1301
- ToadForce: a crash in the OpenGL setup is logged with its reason, and later starts on the same driver draw the card in software instead of ending with no message by @kibertoad in #1348
- DirectDraw: releasing a flip chain shows the start of video memory again, as FlipToGDISurface does by @kibertoad in #1289
- USER32: a child's BeginPaint validates the parents that don't clip it, so a child that painted first stays on the screen when its parent paints by @kibertoad in #1296
- USER32: a child window with WS_EX_TRANSPARENT takes the mouse, as on Windows 98 by @kibertoad in #1322
- USER32: owner-drawn popup menu items get WM_MEASUREITEM and WM_DRAWITEM by @kibertoad in #1327
- GDI: Windows 98's metrics and widths for Arial, Times New Roman and Courier New, so labels sized for Windows 98 are no longer cut off by @kibertoad in #1338
- COMDLG32: the File name box's text is selected when an Open or Save dialog opens, so a typed name replaces the one the program offers by @kibertoad in #1326
- WINMM: an AVI film's next frame is due in the millisecond it shows (MCI playback no longer spins the multimedia thread between frames, and MCI_STEP no longer stalls) by @kibertoad in #1323
- Voodoo3: frames drawn with GDI on the card's desktop count for the frame rate shown and for
cycles=auto, and/api/statusnames the mode the monitor shows by @kibertoad in #1340
Games fixed and optimized
Adrenix
- DirectDraw: releasing a flip chain shows the start of video memory again (the software build's in-game menus are no longer black) by @kibertoad in #1289
- KERNEL32: critical sections and
Interlocked*as Windows 98's code (they took 45% of the mission briefing) by @kibertoad in #1343 - Voodoo3: DirectDraw and GDI blits take their turn behind the 3D drawing (the crosshair and HUD no longer wait for the whole frame) by @kibertoad in #1345
CyberStorm 2
- USER32: a child window with WS_EX_TRANSPARENT takes the mouse (the Preferences' buttons, sliders and check boxes work) by @kibertoad in #1322
- USER32: owner-drawn popup menu items get WM_MEASUREITEM and WM_DRAWITEM (the Herc base and in-mission menus are no longer empty boxes) by @kibertoad in #1327
- GDI: Windows 98's font metrics (the Preferences' labels are no longer cut off) by @kibertoad in #1338
- Frames drawn with GDI count on a Voodoo3 (the frame rate no longer reads 0) by @kibertoad in #1340
Warhammer: Shadow of the Horned Rat
- USER32: a child's BeginPaint validates the parents that don't clip it (the Defend button stays visible) by @kibertoad in #1296
- Auto speed: a host far behind ends its measurement on the wall clock (no more 18 s at a tenth of real time) by @kibertoad in #1300
Chaos Overlords
- Idle skip: a proof follows a ReadFile at the end of a file (the movies no longer fall behind and underrun at their end) by @kibertoad in #1325
- COMDLG32: the File name box's text is selected when the dialog opens (Ctrl+S and "turn2" saves
TURN2.SAV, notturn2Chaos Game.sav) by @kibertoad in #1326
Amok
- MSCDEX: answer the installation check through INT 2Fh AX=1100h (the DOS version no longer stops with "MSCDEX not installed") by @kibertoad in #1301
- Voodoo3: translated code writes the card's memory itself (its dword stores at 800x600 were 22% of the busy time) by @kibertoad in #1328
Enemy Infestation
- Heaps: first fit starts after the blocks with no room in front by @kibertoad in #1324
- Voodoo3: translated code reads and writes the card's memory itself by @kibertoad in #1328
Nocturne
- Translated code writes the VESA frame buffer itself (about 42 to 46 frames a second in the first room at
cycles=maxwith the OpenGL renderer) by @kibertoad in #1351
Biosys
- Idle skip: MFC's idle loop and the calls Biosys makes in it (the menus no longer keep a host core busy) by @kibertoad in #1309
Fields of Fire: War Along the Mohawk
- WINMM: an AVI film's next frame is due in the millisecond it shows (the films play at real time) by @kibertoad in #1323
Other changes:
- Started from Explorer on Windows before 11 24H2, rust-dos no longer crashes on its first message to stderr after it frees its console: the console's standard handles and the C runtime's descriptors 0 to 2 go to NUL (the crash when the ToadForce is picked) by @kibertoad in #1352
- Save states: the W32 section is at version 79, for owner-drawn menu items' sizes and drawing (78) and each process's system heap (79). States of versions 71 to 78 still load. In #1327 and #1343
Full Changelog: v1.9.0...v1.9.1