VOGONS


King's Quest 6 CD Intro

Topic actions

First post, by Kippesoep

User metadata
Rank Oldbie
Rank
Oldbie

Although the KQ6CD game works quite well, the intro movie seems to randomly display frames that shouldn't be played yet. This results in very jerky playback.

I vaguely seem to recall this hapenning under true DOS as well on certain configurations, so it might not isolated to DOSBox, but I was hoping somebody here might know what causes this and if there's a fix.

BTW, the intro movie does play properly when run through VDMSound.

I have tried different cycles settings to no avail.

Reply 1 of 21, by talonius

User metadata
Rank Newbie
Rank
Newbie

I thought that was a caching issue? *ponder* That sounds so familiar to me. "Turn caching on for the CD-ROM drive using SMARTDRV." If it plays perfectly under VDMSound...

What happens if you allocate more CPU cycles to DOSBox?

Reply 2 of 21, by Kippesoep

User metadata
Rank Oldbie
Rank
Oldbie

I have tried 3,000..25,000 cycles to no effect. The result is identical.

I don't really see how it could be CD-ROM related since I copied the whole thing to hard drive. Just for good measure, I also attempted to play it from CD, but no effect. Does the same if I copy the whole thing to a 350MB RAM drive.

Reply 3 of 21, by talonius

User metadata
Rank Newbie
Rank
Newbie

Agreed, sorry, I was thinking while I typed - the smartdrv suggestion was what I thought the original problem was. 😀 i.e. Sierra's suggested resolution to the problem.

Are your VDMSound and DOSBox SoundBlaster configurations identical? I thought VDMSound defaulted to IRQ 5 while DOSBox defaulted to IRQ 7.

I have no solutions - I'm simply throwing things out there for consideration. 😀

Reply 5 of 21, by HunterZ

User metadata
Rank l33t++
Rank
l33t++

Actually, he didn't mention what version he was trying in the first place.

Also, have you installed this patch: http://dlh.net/cgi-bin/patdl.cgi?lang=eng&sys … ile=kq6cdhi.zip

Reply 8 of 21, by Kippesoep

User metadata
Rank Oldbie
Rank
Oldbie

That patch is for the Windows version only.

The intro video does play properly with 0.61 (sound is messed up, though). 0.62 and later exhibit the problem I'm experiencing. (I was testing with 0.63 and CVS before).

I'd be glad to go bug-hunting myself, but I have no idea where to look for this type of bug... Does anybody have any suggestions on where to begin or any hints on how to determine what actually happens?

Reply 10 of 21, by Kippesoep

User metadata
Rank Oldbie
Rank
Oldbie

Yep. All identical.

If I'd have to make a guess as to what's happening, it'd be the following:
the video decoder decodes several frames of video ahead of playback, storing them in off-screen video memory pages (unlikely, since this would require 64k of video memory per frame and it's decoding at least 5 frames ahead) or in something like EMS pages. When replaying them, something goes wrong in swapping the pages back in, displaying a frame ahead of time. It's very difficult to verify this, though.

I'm thinking about creating some code that allows me to view a graphical representation of memory while debugging, to easily identify bitmaps.

Reply 11 of 21, by HunterZ

User metadata
Rank l33t++
Rank
l33t++

That would be interesting and useful for debugging.

Does the game require EMS in order to run, or can you turn off EMS in DOSBox and force the game to use XMS instead to see if there's a difference?

It does sound like it's decoding several frames of video to video memory, and that somehow the visible frame is being overwritten with a later one before it swaps over the next one that's supposed to be visible.

Reply 12 of 21, by Kippesoep

User metadata
Rank Oldbie
Rank
Oldbie

So much for that theory 😢
Disabling EMS yields no improvement, nor does telling the game's installer "don't use your machine's extra memory".

BTW, HunterZ, I appreciate your thinking along.

Reply 13 of 21, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Interesting that you get good video results with 0.61, but not with later versions. Could be DOSBox, but it could also be due to different versions of SDL.dll.

Reminds me of a similar problem with Arena. Works fine with 0.61, black screen in later versions.

One thing to try: Set environment variable SDL_VIDEODRIVER=windib before launching DOSBox.

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 14 of 21, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

try without sound ? (as the sound was messed up in 0.61 but image was correct)

Water flows down the stream
How to ask questions the smart way!

Reply 15 of 21, by Kippesoep

User metadata
Rank Oldbie
Rank
Oldbie

I tried using DOSBox 0.61's SDL.dll will the new version. No effect. (Although I doubt SDL could actually predict future frames).

Disabling the sound also disables the intro (it switches to displaying text only, no movie). Tried different sound card drivers. Again, no effect.

My site: Ramblings on mostly tech stuff.

Reply 17 of 21, by Kippesoep

User metadata
Rank Oldbie
Rank
Oldbie

It only has VGA320x200x256 and a B&W driver (which also doesn't display the intro, replacing it with the text).

My site: Ramblings on mostly tech stuff.

Reply 19 of 21, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

hmm yeah I recall Ierioume talking about it sometime.
Dunno should be something in the beta tester forum. We never figured out what wrong, but as it's non-fatal it doesn't have a high priority either.

Water flows down the stream
How to ask questions the smart way!