Skip to content

Increase max I/O trap range to 10#51

Open
Cacodemon345 wants to merge 1 commit intoBaron-von-Riedesel:masterfrom
Cacodemon345:master
Open

Increase max I/O trap range to 10#51
Cacodemon345 wants to merge 1 commit intoBaron-von-Riedesel:masterfrom
Cacodemon345:master

Conversation

@Cacodemon345
Copy link

This PR increases max I/O trap range to 10.

I need this for my VSBHDA fork, in order to alter the value returned from VGA port 0x3DA/0x3BA to fix games running potentially too fast on modern AMD GPUs.

@Torinde
Copy link

Torinde commented Jan 26, 2025

Would you like to make that change also in SBEMU?

@Cacodemon345
Copy link
Author

It will be difficult to make such changes in SBEMU due to wildly different code structures.

@drivelling-spinel
Copy link

Not to the point of the the PR itself, but would you mind elaborating if you actually implemented a version of VSBHDA with CRT emulation? I checked PTRAP in SF and dont see the port reference, yet I can see a fork of HX with extended port range number, albeit no builds offered. Would be keen to try the version on my PC if it ever was made available.

@Cacodemon345
Copy link
Author

I decided against doing it after I briefly examined VGA register behaviour w.r.t. VSync on AMD Polaris.

It seems to actually work in FastDOOM, but for whatever reason seems to not work on Descent 1 which runs too fast. I don't know why it even happens.

@drivelling-spinel
Copy link

Thanks for the info. Appreciate this may be a wrong place for this conversation, but could you give some references or direction about implementing a fixup for CRT? I am looking at a particular game Blackthorne for which I observe sound to world animation synchronization issues on my Core Quad machine, and, seeing no luck with CPU slowdown utilities was looking to try and see if VSync fixup could be attempted. (I did a quick instruction dump from DOSBox-X and the game does use CRT registers for some synchronization).

@Cacodemon345
Copy link
Author

Cacodemon345 commented Oct 28, 2025

So far I can only point towards the documentation for VGA Input Status Register 1: (http://www.osdever.net/FreeVGA/vga/extreg.htm).

I don't know if there's also VBIOS calls involved in VSync, but a brief glance there did not turn up anything.

@Baron-von-Riedesel Baron-von-Riedesel force-pushed the master branch 2 times, most recently from 48ca830 to 43199fe Compare February 5, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants