GithubHelp home page GithubHelp logo

Comments (2)

joncampbell123 avatar joncampbell123 commented on June 12, 2024

I think I figured it out.

DOSBox's PIC IRQ dispatching has a minor but fatal flaw. It raises a "PIC_IRQCheck" flag when a IRQ signal is raised, and resets the flag if an IRQ is lowered. It also resets the flag after PIC_runIRQs() dispatches a single interrupt.

But that's the flaw: Sooner or later, one device will raise an IRQ, and within DOSBox's 1ms "interval", another device will lower the IRQ. That resets the flag, so the one device with it's IRQ still raised is effectively ignored by PIC_runIRQs() and it's never taken care of. In some DOS demos like Crystal Dream II, this flaw eventually causes the demo music to stop, and the demo to forever loop at that one point, or in other demos using Sound Blaster, the demo eventually misses the SB IRQ and music abruptly stops.

from dosbox-x.

joncampbell123 avatar joncampbell123 commented on June 12, 2024

Bug fix confirm: Extreme "Lunatic" demo (1993) SB Pro music no longer cuts out at a random point under load. It just slows down audibly if you set a low cycles count and the demo is doing intense effects, but it doesn't cut out anymore.

from dosbox-x.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.