joncampbell123 / dosbox-x

DOSBox-X fork of the DOSBox project
GNU General Public License v2.0
2.59k stars 375 forks source link

Albion intro stutter #4693

Open brakenwagen opened 7 months ago

brakenwagen commented 7 months ago

Describe the bug

when playing Albion and you watch the intro it stutters this does not happen in vanilla dos box. this problem only happens on sdl2 not sdl1 however sdl1 has a problem with lemmings 2 that I'll make another report for.

Steps to reproduce the behaviour

play albion intro

Expected behavior

intro play like normal without stutter

What operating system(s) this bug have occurred on?

Win 10

What version(s) of DOSBox-X have this bug?

dosbox-x-vsbuild-win32-20231007055223 sdl2

Used configuration

No response

Output log

No response

Additional information

No response

Have you checked that no similar bug report(s) exist?

Code of Conduct & Contributing Guidelines

brakenwagen commented 7 months ago

so apparently this problem is not present on the mingw build on DosBox-X.

maron2000 commented 7 months ago

I don't see any stuttering. Sound settings are set to SB16. 2023.10.06 Release VS x64 SDL2

https://github.com/joncampbell123/dosbox-x/assets/68574602/cbe791a5-ac5d-44b2-97ec-11b72f175c93

setsound_000

rderooy commented 7 months ago

I also tested it and could not notice any real issue with the intro. DOSBox builds tried:

Note: I have a 75Hz display. When using a 60Hz display (which is the vast majority of LCD displays) there may be some more issues with animation, as legacy VGA modes are actually 70Hz, so you loose some frames to keep pace if your display cannot handle >=70Hz.

joncampbell123 commented 7 months ago

I would like to point out from experience that depending on the OS, drivers, and platform, the OpenGL output mode might cause stuttering if the guest frame rate exceeds your monitor refresh rate.

Case in point, the first time I tested DOSBox-X on a Mac Mini connected to a 4K monitor at 30Hz caused noticeable stuttering when running anything with smooth scrolling (like the old demoscene stuff), though this was back in 2018 or so.

You need relatively recent HDMI capable hardware to get 4K 60Hz or higher.

joncampbell123 commented 4 months ago

Seems to work here just fine on Linux. Make sure you're not trying to run the game with a low cycles count like cycles=3000 (equivalent to late 1980s 286). Albion came out in 1996 which means it probably runs best on late 486/Pentium era type hardware and cycles=20000 to cycles=30000 is more appropriate.