Destruction Derby for DOS slows down a lot under Windows 9x

Discussion of development and patch submission.
Battler
Posts: 793
Joined: Sun 06 Jul, 2014 7:05 pm

Destruction Derby for DOS slows down a lot under Windows 9x

Postby Battler » Thu 24 Aug, 2017 3:07 pm

This is on a Pentium 75, Award 430VX PCI, recompiler enabled. It happens starting from this commit: https://bitbucket.org/pcem_emulator/pce ... ba296c099e , before that commit, it was fast.
User avatar
leilei
Posts: 423
Joined: Fri 25 Apr, 2014 4:47 pm

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby leilei » Thu 24 Aug, 2017 9:18 pm

Cannot reproduce. Getting a consistent 100% on P75, PMMX233, PMMX300 under Win98SE with Mach64 / AWE32
Battler
Posts: 793
Joined: Sun 06 Jul, 2014 7:05 pm

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby Battler » Thu 24 Aug, 2017 10:01 pm

- leilei: Well, I have two people who claim they experience this slowdown. Maybe it only happens on some host CPU's? Because from what I know, I don't experience any myself, either, but they swear they do.
TheMadLynx
Posts: 10
Joined: Tue 01 Aug, 2017 10:15 am

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby TheMadLynx » Fri 25 Aug, 2017 8:44 am

And I am one of them. Some DOS programs shows abnormal low performance drops (15-30% with P200) with any pentium cpu selected in actual PCem builds. I've tried Dreams to Reality and Pyl (Dust) with the PCem from 18.07.2017 (commit 16a453b). Performance stutters most noticeable at a game launch. Also in Pyl this could be easily observed anytime you bring the main menu from the game. Status window shows the drop in Real speed MIPS, but effective clock remains stable. There is no such issue with the public PCem v12 release. My host config is Intel Core i5-2500K, 16GB RAM, Nvidia GeForce GTX 780Ti, Win 10 x64.
User avatar
omarsis81
Posts: 537
Joined: Thu 17 Dec, 2015 6:20 pm

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby omarsis81 » Fri 25 Aug, 2017 10:21 am

I guess Sarah will ask for the config file, so please upload it =)
TheMadLynx
Posts: 10
Joined: Tue 01 Aug, 2017 10:15 am

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby TheMadLynx » Fri 25 Aug, 2017 5:44 pm

And here it is: the config file and some screens to illustrate the problem. As I can say it is not very game specific. Dreams to Reality lags much the same.
Attachments
Pyl_loading.jpg
Pyl loading stutter
Pyl_loading.jpg (162.54 KiB) Viewed 1257 times
Pyl_game.jpg
Pyl game running
Pyl_game.jpg (220.33 KiB) Viewed 1257 times
test_P166.cfg
Config file from current latest compiled PCem (e193456)
(871 Bytes) Downloaded 11 times
Last edited by TheMadLynx on Fri 25 Aug, 2017 6:03 pm, edited 2 times in total.
TheMadLynx
Posts: 10
Joined: Tue 01 Aug, 2017 10:15 am

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby TheMadLynx » Fri 25 Aug, 2017 5:46 pm

And some additional screens.
Attachments
w98_loaded.jpg
Fresh Win98SE just loaded
w98_loaded.jpg (123.48 KiB) Viewed 1256 times
Pyl_menu.jpg
Pyl main menu stutter
Pyl_menu.jpg (232.61 KiB) Viewed 1256 times
SarahWalker
Site Admin
Posts: 1314
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby SarahWalker » Fri 25 Aug, 2017 7:36 pm

What toolchain are you using? 32-bit or 64-bit?

Could you also provide the main pcem.cfg in addition to the machine specific one.
jznomoney
Posts: 40
Joined: Sat 06 Dec, 2014 9:11 pm

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby jznomoney » Fri 25 Aug, 2017 8:56 pm

It doesn't seem to lag on me but I have a 4790k.
Battler
Posts: 793
Joined: Sun 06 Jul, 2014 7:05 pm

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby Battler » Fri 25 Aug, 2017 9:24 pm

The two people that reported the slowdown to me both use 32-bit binaries. Not sure what TheMadLynx used.
TheMadLynx
Posts: 10
Joined: Tue 01 Aug, 2017 10:15 am

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby TheMadLynx » Fri 25 Aug, 2017 10:34 pm

It is 32 bit PCem.exe built with Makefile.mingw And here is pcem.cfg attached.
Attachments
pcem.cfg
(326 Bytes) Downloaded 13 times
TheMadLynx
Posts: 10
Joined: Tue 01 Aug, 2017 10:15 am

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby TheMadLynx » Sat 26 Aug, 2017 6:02 am

Just for the sake of comparison here are screenshots of the same game running on the same machine with the last public PCem v12 build (Feb-17). Overall performance is much better and more consistent.
Attachments
Pyl_menu.jpg
Pyl main menu
Pyl_menu.jpg (226.85 KiB) Viewed 1180 times
Pyl_loading.jpg
Pyl game loading
Pyl_loading.jpg (154.58 KiB) Viewed 1180 times
Pyl_ingame.jpg
Pyl gameplay
Pyl_ingame.jpg (219.34 KiB) Viewed 1180 times
TheMadLynx
Posts: 10
Joined: Tue 01 Aug, 2017 10:15 am

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby TheMadLynx » Sat 26 Aug, 2017 6:04 am

And here are the config file for public PCem v12.
Attachments
pcem.cfg
PCem config file
(936 Bytes) Downloaded 14 times
Win98_loaded.jpg
Win98SE just loaded
Win98_loaded.jpg (106.81 KiB) Viewed 1180 times
Last edited by TheMadLynx on Thu 31 Aug, 2017 11:36 am, edited 1 time in total.
User avatar
leilei
Posts: 423
Joined: Fri 25 Apr, 2014 4:47 pm

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby leilei » Wed 30 Aug, 2017 10:26 pm

V12's release is profile-optimized and the builds I do use -flto (link-time optimization, nowhere near pgo-speeds but close enough for quick testing and it's safe to use). Have you tried -flto?
Battler
Posts: 793
Joined: Sun 06 Jul, 2014 7:05 pm

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby Battler » Wed 30 Aug, 2017 11:34 pm

- leilei: That has nothing to do with it... the first person that reported the bug was given a binary compiled by me on around March, with no -flto or anything, and it was at 100%. A build from around June, compiled with the exact same flags, has the slowdown. SA1988 had the same result, and he even pinpointed the exact commit that introduced it.
Maybe the fact you use -flto masks the problem. Try compiling a non-flto build and running it.
Solstar82
Posts: 41
Joined: Thu 12 May, 2016 9:19 am

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby Solstar82 » Sun 24 Sep, 2017 7:52 pm

win 98 here, i get extreme slowdown in dos games, sometimes even around 4%.not always during gameplay but in menus for example or during loading.using win 98 with 64 mb, voodoo 2 and pentium 133 mmx

my main pc is I7 haswell 3.6 ghz, 16 gb ram and a geforce gtx 1050
SarahWalker
Site Admin
Posts: 1314
Joined: Thu 24 Apr, 2014 4:18 pm

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby SarahWalker » Wed 15 Nov, 2017 9:58 pm

I was never able to reproduce this issue, but rev 932 addresses what I _think_ the bug was. TheMadLynx, if you're still around, could you try this commit?
User avatar
leilei
Posts: 423
Joined: Fri 25 Apr, 2014 4:47 pm

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby leilei » Thu 16 Nov, 2017 2:06 am

Didn't try Derby (couldn't reproduce it earlier) but that last commit did fix up some other recompiler chokers:
Jagged Alliance
Red Alert
One Must Fall 2097
Puyo Puyo 2
STTNG A Final Unity
Warcraft II
(and probably a lot more that choked Pcem's recompiler at a static screen or miles sound systems)
ecksemmess
Posts: 122
Joined: Wed 18 Mar, 2015 5:27 am

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby ecksemmess » Mon 20 Nov, 2017 8:38 pm

Does this same commit improve the issue of the recompiler choking at the Windows desktop, DOS prompt, etc.? Can't compile the latest version to check at the moment, but I'm curious. If so, that's a huge step forward!
TheMadLynx
Posts: 10
Joined: Tue 01 Aug, 2017 10:15 am

Re: Destruction Derby for DOS slows down a lot under Windows 9x

Postby TheMadLynx » Sun 26 Nov, 2017 1:16 pm

SarahWalker wrote:I was never able to reproduce this issue, but rev 932 addresses what I _think_ the bug was. TheMadLynx, if you're still around, could you try this commit?

I've tried Pyl with 9b72b24 commit. It is not perfect but definitely a huge improvement. Game gets into main menu almost instantly, like on real hardware. Gameplay is smooth enough, like on real hardware too. But there is still odd slowdown in the main menu opened when the game is running. Nevertheless, it is a lot faster than the previous build I've tried.
Attachments
PCem_Pyl_9b72b24_.jpg
PCem_Pyl_9b72b24_.jpg (189.89 KiB) Viewed 273 times
PCem_Pyl_9b72b24.jpg
PCem_Pyl_9b72b24.jpg (188.4 KiB) Viewed 273 times

Return to “Development”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest