Is PIT mode 3 used by any PC games or past demos? I recall there was discussion on your github site about its use in the PC-98, and that mode=3 is also available on the PC (accurate emulation).
If you want to know exactly what the 8254 can do, look at the Intel datasheet.
DOSBox-X project: more emulation better accuracy. DOSLIB and DOSLIB2: Learn how to tinker and hack hardware and software from DOS.
I have an issue open with a dump of ideas for test programs to write in DOSLIB that play with the 8254 and it's functions. Some have been written already.
DOSBox-X project: more emulation better accuracy. DOSLIB and DOSLIB2: Learn how to tinker and hack hardware and software from DOS.
Thank you for the detailed reply and for the doslib test programs. I will look at the datasheet carefully since I was trying to understand by merely reading the code differences. Now I recall that there was a dosbox-x issue open with Corncob 3d, I think it must have been tested in VGA code running in EGA mode, and whether the timer code changes will address that issue or others.
Corncob 3D requires VGA even though the main game uses EGA graphics mode.
I just found that I can eliminate the on-screen flickering by adding video memory delay. Apparently if your video memory is too fast Corncob 3D will flicker badly.
DOSBox-X project: more emulation better accuracy. DOSLIB and DOSLIB2: Learn how to tinker and hack hardware and software from DOS.
Confirmed that the vmemdelay of around 1000 is sufficient. It's also possible to cause the same issue and solve it in pcem by modifying its isa timing function. The issue led me to debug some issues in a dos source port of doom, and if you are interested in testing it with your latest code base, I can upload it.
Was the Explora demo tested with 0.74 or built with fpu interpreter core? All cores show the rendering issue? And the video mode is the same in all tests? Was -x built with 32 and 64 bit?
Was the Explora demo tested with 0.74 or built with fpu interpreter core? All cores show the rendering issue? And the video mode is the same in all tests? Was -x built with 32 and 64 bit?
I got the same result using either normal or dynamic core. I generally do not test the full and simple cores.
The demo appears to use one specific video mode.
DOSBox-X project: more emulation better accuracy. DOSLIB and DOSLIB2: Learn how to tinker and hack hardware and software from DOS.
hail-to-the-ryzen wrote:I should check, but that means DOSBox SVN compiles with both types of fpu emulation (x86 specific and the interpreter type). […] Show full quote
I should check, but that means DOSBox SVN compiles with both types of fpu emulation (x86 specific and the interpreter type).
Confirmed that building SVN with the non-x86 fpu emulation leads to the rendering artifacts in the demo EXPLORA. Built with O2 optimization. So, SVN has the same issue as DOSBox-X.