English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 29 June 2014, 16:18   #1
dex
Eat Electric Death
 
dex's Avatar
 
Join Date: Feb 2007
Location: Germany
Posts: 327
Hooooo How to get Dungeon Master II to run as fast as the PC version?

Hey there everyone,

I compared the PC version to the Amiga version and if you look REAL CLOSE you can see that besides the awesome soundtrack the Amiga version actually looks more true to the style of Dungeon Master 1 - albeit a bit less detailed than the PC version, which in turn has a more colourful look that does not suit the game in all places.

So far the greatest trade-off of the Amiga version was the slow gameplay. So I tried to speed it up a bit by adjusting WinUAE's settings. And you "can" get it really fast - however, everything above a 68020 or even a "little" too fast settings for CPU, JIT or whatever, result in strange sound hickups. Amusingly it almost has exactly the same sound issues as "Eye of the Beholder III" with the older AESOP16 engine (just look for a playthrough on Youtube and you will hear what I mean). The sound just crackles here and there and there are hickups and "after-sounds" (TM) time and time again.

So is there a way to make the game run faster without sacrificing the sound? Which WinUAE settings could prevent that strange stuttering of the sound? Even "cycle exact" will not work if I boost the CPU a little.
dex is offline  
Old 01 July 2014, 19:36   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
68020 (or lower) + CE/approximate mode does not have "audio hack" enabled (that attempts to fix bad sound routines that depend on CPU speed).

Did you use 2.8.1? Audio hack was improved recently.
Toni Wilen is online now  
Old 01 July 2014, 22:29   #3
dex
Eat Electric Death
 
dex's Avatar
 
Join Date: Feb 2007
Location: Germany
Posts: 327
Oh wow! No, I didn't try that, turns out I have an older version - going to setup the latest release and will report back, thanks Toni!

PS.: Isn't it amazing, you never ever have to worry about a thread no one answers on this board, EAB: always like coming home - just better

Hey this has actually IMPROVED! Very nice! However, the stuttering sounds are still there. It seems to take a while until they start, though. I probably have to investigate the problem a bit, I didn't try all the (new) settings but tried cycle exact with 8x CPU speed and also "fastest possible" with +100% on the CPU slider. It is not directly related the audio driver, buffer setting or audio setting as far as I found out

Last edited by TCD; 01 July 2014 at 22:33. Reason: Back-to-back posts merged
dex is offline  
Old 02 July 2014, 19:35   #4
Gaula92
Registered User
 
Gaula92's Avatar
 
Join Date: Aug 2008
Location: Spain
Posts: 527
@Toni, could such a "hack" be implemented in FPGA Amigas like the Minimig V1.1 board or FPGA Arcade?
For example, I've observed that some games that are too slow at 7Mhz (Lucas Arts games, Waxworks...) don't sound well at 50Mhz, skipping a lot of notes.
So I suppose it's the audio player routine in these games depending on CPU, wich is a bad idea: but how did you implement that hack, so I can tell the Minimig guys?
Gaula92 is offline  
Old 02 July 2014, 19:56   #5
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
Next beta will have option to force audio hack even if CPU mode is not "fast enough". Perhaps it will help..

There is nothing special in audio hack. It does three things:

1:

Old behavior: When audio DMA is switched off, audio channel was forced to idle state immediately.

New: When audio DMA is switched off, flag is set that program wants to switch off DMA, if program re-enables DMA and flag is still set, channel is forced to idle state. Flag is cleared when channel becomes idle (forced or period has counted down)

This fixes most programs that have audio DMA CPU delay loops and still allow (badly done) programs that really need delay before channel goes to idle state. Most common bug is to switch DMA off, then clear INTREQ and finally wait for interrupt bit to be set (which happens when period has counted down)

If program does not wait for idle channel, attempting to play new sample does nothing. Old sample keeps playing, only period changes.

2:

If channel is idle and program writes to AUDxDAT and period is less than 10, play nothing, go back to idle state immediately. This works around audio.device weirdness which is not that compatible with very fast CPUs (JIT).

3:

If program writes to audio pointers (high or low word) immediately after DMA has been enabled but before Agnus has seen DMAL DSR bit from Paula (Agnus has not latched channel's audio pointer): force latching immediately. This hack assumes that program wanted to update only pointer register, instead of updating current sample pointer immediately (and playing from new address)
Toni Wilen is online now  
Old 04 July 2014, 09:46   #6
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
2.8.2b1 has configurable audio hack (overrides automatic selection): add "chipset_hacks=4" to your config file to force-enable it. (Do not use any other values!)

(But don't forget it and later report about some other game having audio problems..)
Toni Wilen is online now  
Old 15 July 2014, 20:41   #7
dex
Eat Electric Death
 
dex's Avatar
 
Join Date: Feb 2007
Location: Germany
Posts: 327
Hehe, no worries Toni, won't forget that However, the audio problems are still not fixed with this hack (using 2.8.2 beta 3). Do I have to add this hack to a specific section of the config or do I have to adjust the configuration in WinUAE in any way after applying this hack?
dex is offline  
Old 15 July 2014, 22:15   #8
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,506
It can be anywhere in config file (enable logging, there should not be any "unknown config entry x" lines).

Try also fastest possible CPU modes. They work very differently compared to cycle-exact modes.
Toni Wilen is online now  
Old 16 July 2014, 20:13   #9
dex
Eat Electric Death
 
dex's Avatar
 
Join Date: Feb 2007
Location: Germany
Posts: 327
Alright, I tried the fastest possible CPU modes (68020 or 68040 with fastest possible, with or without JIT, with or without FPU), the sound still starts to stutter after some time if the game runs at any speed above an A1200 or if set to "fastest possible".

The only thing the log says about the chipset_hacks is:
50-042 [0 000=000]: chipset_hacks is nonzero.

I am beginning to think that it may be a bug in the game/engine itself. What if it just starts reacting strangely if it runs on a fast (too fast) machine? Dungeon Master II came out late in the day of the Amiga but it may still be incompatible to certain CPUs or speeds. Does anyone have any experience with the game?
dex is offline  
Old 08 September 2016, 21:03   #10
Xebec
Registered User
 
Join Date: May 2016
Location: Philadelphia, USA
Posts: 67
Did anyone ever resolve the sound issue on 'faster than A1200' amigas? I have a mildly accelerated A1200 (68020 @ 28 Mhz, 33MB FastRAM) and it has the sound issue.. It's also still a bit slow but basically playable.
Xebec is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
custom dungeon for dungeon master 1 meynaf project.Amiga Game Factory 73 17 October 2015 11:50
Dungeon Master HD komunita support.Games 12 15 May 2008 14:44
Dungeon Master alexh HOL data problems 1 09 April 2007 17:17
Dungeon Master komunita support.Games 7 25 August 2006 09:32
Dungeon Master Kid Dungeon rodi request.Old Rare Games 0 23 June 2005 19:31

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 19:18.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.17016 seconds with 15 queries