VOGONS


DOSBox OS X 64bit

Topic actions

First post, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

My DOSBox SVN built for OS X (MacOS) is now for 64bit as well. If you are on OS X 10.10 and higher, DOSBox will be automatically in 64bit.

This is so the few OS X users test how the 64bit build is behaving. Please report any problems here!

Last edited by DosFreak on 2020-03-27, 13:58. Edited 1 time in total.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 1 of 58, by Morc

User metadata
Rank Newbie
Rank
Newbie

i downloaded it tested it for a bit, seems to be working but found one bug with mouse. Mouse bugs when going into DosBox window it inverts the background or what. Fullscreen mode seems to be working fine too. I had no issues on HiDPI mode.

Normal:
eblfkREm.png

HiDPI:
MFLvPYam.png

2018 Retro Rebuild: Pentium MMX @ 166MHz, LuckyStar 5I-TX1 rev: 2.0, 32MB, Verite 2200

Reply 3 of 58, by Morc

User metadata
Rank Newbie
Rank
Newbie

It happens only on normal resoltion, not in HiDPI.

GFi8XAlm.png

and i am on Hackintosh(not real mac hw)
with macOS High Sierra 10.13.3

i suspect that it is some kind of bug in SDL

2018 Retro Rebuild: Pentium MMX @ 166MHz, LuckyStar 5I-TX1 rev: 2.0, 32MB, Verite 2200

Reply 4 of 58, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Yes, likely a bug in SDL 1.2x and your system in some way. You could test this: open the app (in Finder right click and "show package contents") go to the contents folder and edit info.plist in an editor. Remove the lines

<key>LSMinimumSystemVersionByArchitecture</key>
<dict>
<key>x86_64</key>
<string>10.7.0</string>
</dict>

and then right click on the app again and force 32bit. iIf it still misbehaves then we know it is not the 64bit but something else.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 5 of 58, by Morc

User metadata
Rank Newbie
Rank
Newbie

Running it in i386(forced 32bit) didn't seem to help. I think that it is SDL bug with Nvidia Web Drivers. I will test it on other machine with Intel/AMD switchable graphics.

Last edited by Morc on 2018-04-13, 17:38. Edited 1 time in total.

2018 Retro Rebuild: Pentium MMX @ 166MHz, LuckyStar 5I-TX1 rev: 2.0, 32MB, Verite 2200

Reply 7 of 58, by Morc

User metadata
Rank Newbie
Rank
Newbie

Hmm, same happens on Intel Graphics 3000 512MB and AMD Radeon HD 6750M.
Maybe it is problem on High Sierra which is running on both machines(10.13.3 and 10.13.4).

2018 Retro Rebuild: Pentium MMX @ 166MHz, LuckyStar 5I-TX1 rev: 2.0, 32MB, Verite 2200

Reply 8 of 58, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

I am running High Sierra 10.13.4 myself. I can test on a MacMini that I'm using as a builtbot and that is on 10.10

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 9 of 58, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

on my buildbot machine also no problems. I fear that might be an unexpected hackintosh problem 🙁
(most likely caused by SDL 1.2x, though)

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 10 of 58, by almeath

User metadata
Rank Member
Rank
Member

I have been testing 64 bit DOSBox (both the gs11 and SVN build by Dominus) on a 2013 Haswell i7 iMac with NVIDIA graphics, in High Sierra 10.13.4.

I have tried a range of games and they appear to suffer no perceptible slowdown, including a bunch of Sierra AGI and SCI adventures, Rebel Assault 2, Decent 2, Grand Prix 2, TIE Fighter Collector's CD (SVGA rendering), Conquest of the New World Deluxe (SVGA), Lands of Lore 2, Doom 2, Dark Forces and most of the LucasArts adventure games.

There are three games I have tested where I think there is a performance related issue - Warcraft Orcs and Humans (CD version), Warcraft 2 (CD version) and Space Quest 6. Everything seems to run well within the actual game in WC1 and WC2 except when moving the mouse either very slowly or very fast on the main menus. This causes the music to noticeably slow down and start to lag (regardless of sound configuration). I have no idea why this happens, but I suspect it is performance related because it does not happen in the 32 bit build. I tried running both games in DOS32A but the same thing happens. In Space Quest 6 the same issue occurs in the main menus at the start of the game. Moving the mouse in a certain way seems to slow down the music, and it speeds back up again when the cursor stops moving.

In some games where this sound lag issue occurred, such as Conquest of the New World and Pirates Gold, I found that switching to alternate machines such as svga_paradise or vesa_oldvbe fixed the issue, but none work in WC1 and WC2.

Oh yes, I also had the PC speaker in Vette distort very badly in the intro scene music, but switching machine type to EGA (instead of svga_s3) fixed it. Again, this does not happen in 32 bit.

I am also getting the mouse cursor with the block around it - but never in full screen mode. Since I never play in windowed mode it does not bother me.

DOSBox SVN for macOS (x86-64) - customized with Munt MT-32, Nuked OPL3, 3dfx Voodoo, Extra RAM, Large HD, and more.
https://github.com/almeath/DOSBox-SVN-64-bit-for-macOS

Reply 11 of 58, by kjliew

User metadata
Rank Oldbie
Rank
Oldbie
almeath wrote:

I have been testing 64 bit DOSBox (both the gs11 and SVN build by Dominus) on a 2013 Haswell i7 iMac with NVIDIA graphics, in High Sierra 10.13.4.

I have tried a range of games and they appear to suffer no perceptible slowdown, including a bunch of Sierra AGI and SCI adventures, Rebel Assault 2, Decent 2, Grand Prix 2, TIE Fighter Collector's CD (SVGA rendering), Conquest of the New World Deluxe (SVGA), Lands of Lore 2, Doom 2, Dark Forces and most of the LucasArts adventure games.

Are you running with CPU core normal or dynarec? The problem with 64-bit build is the missing CPU core dynamic_x86, which gives the best performance for games that needs it, especially those 32-bit protected mode DOS4G/GW based games or running Win98 games with accelerated 3D either through glide pass-through or 3Dfx chip emulation.
I can only get dynarec to work in Linux, to be specific Ubuntu 14.04LTS. I can't get it to work on WIN64 compiled with MSYS2/MinGW-w64-x86_64.

Reply 12 of 58, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

the 64bit dynrec core is working on the 64bit OS X built. It has a slight performance loss (both on Linux and OS X) but it's not so bad as I thought for a long time (I didn't measure with optimizations)

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 13 of 58, by kjliew

User metadata
Rank Oldbie
Rank
Oldbie

Good for MacOS. I revived an old thread of mine, hoping to get some attention to get WIN64 build with MSYS2/mingw-w64-x86_64. Windows has a different 64-bit data model. Although dynamic_x86 is substantially faster than dynarec ( Yes, it is substantial, but with i5 or i7 class system, not so bad, still better than normal), the goal of 64-bit build is to keep the longevity of DOSBox for retro gaming into the 64-bit era.

Reply 14 of 58, by almeath

User metadata
Rank Member
Rank
Member

I take it that if I am testing with the SVN snapshot by Dominus (or the gs11 build) and use core=dynamic in the dosbox.conf file, then I am using the dynamic x86 core?

I am finding that core=dynamic is working for most games and there are only a few older ones that require core=normal.

It sounds like if dynamic x86 is suffering from a slight performance hit then dynrec would be even slower?

If I want to test with dynrec anyway, I assume this can only be through disabling dynamic x86, but I am not sure how to achieve that because the build by Dominus is pre-compiled and the gs11 build compiles from a prepared shell script. Can dynrec be enabled via the dosbox.config file?

DOSBox SVN for macOS (x86-64) - customized with Munt MT-32, Nuked OPL3, 3dfx Voodoo, Extra RAM, Large HD, and more.
https://github.com/almeath/DOSBox-SVN-64-bit-for-macOS

Reply 15 of 58, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

in general core=dyamic gives you the best performance. Core=auto will switch automatically to the needed core.
Dynrec means the same as dynamic, in 64bit this is slower.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 16 of 58, by almeath

User metadata
Rank Member
Rank
Member
Dominus wrote:

in general core=dyamic gives you the best performance. Core=auto will switch automatically to the needed core.
Dynrec means the same as dynamic, in 64bit this is slower.

Thanks for clarifying that. 😀

Generally, I am finding that the slower performance is not noticeable on the i7, and even on late era titles with SVGA I can tweak the settings in most instances to make it work well.

Once thing I have not tested yet is games that support 800x600 or higher or glide/3D acceleration (if supported in this build?).

On my old Core 2 Duo MacBook the EGA and early VGA era titles all work quite well in your SVN snapshot. Again, the slowdown is not really noticeable. However, on that machine there is definitely noticeable slow down when I get to games like TIE Fighter and Decent (in fact those ones are too slow to be playable).

DOSBox SVN for macOS (x86-64) - customized with Munt MT-32, Nuked OPL3, 3dfx Voodoo, Extra RAM, Large HD, and more.
https://github.com/almeath/DOSBox-SVN-64-bit-for-macOS

Reply 17 of 58, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

The Core 2 Dup Macbook, does it behave better with the 0.74 release of DOSBox?

I'll have to tweak the SVN built: currently it FORCES 64bit on OS X 10.11 and upwards. But I shouldn't force it because then you can quickly switch between 32 and 64bit (via right click in Finder, selecting information and then selecting 32bit - but I need to tweak the Apps's plist)

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 18 of 58, by almeath

User metadata
Rank Member
Rank
Member
Dominus wrote:

The Core 2 Dup Macbook, does it behave better with the 0.74 release of DOSBox?

Good point. I tested TIE Fighter at SVGA resolution in the 0.74 release on the Core 2 Duo and it works fine. Switching back to SVN 64 bit and the frame rate drops so low it basically hangs. So that one was definitely a performance issue in relation to the 64 bit code and not the processor on the MacBook. As mentioned above, the i7 seems to be fast enough to compensate for the performance hit.

I am running 10.11 on the MacBook, so I know it is using the 64 bit code during these tests.

I found I had made a mistake with Decent 2. I changed to vesa_oldvbe and it works fine now on both 0.74 and SVN 64 bit - so no performance hit with 64 bit.

Warcraft 1 and 2 suffers from the sound lag in 64 bit on the Core 2 Duo, and just like on the i7 when I switch back to 32 bit it goes away. So that sound issue seems to be performance related to the 64 bit code, and not even the much faster i7 can resolve it.

DOSBox SVN for macOS (x86-64) - customized with Munt MT-32, Nuked OPL3, 3dfx Voodoo, Extra RAM, Large HD, and more.
https://github.com/almeath/DOSBox-SVN-64-bit-for-macOS

Reply 19 of 58, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

Thanks for testing so thoroughly! This should give the devs some pointers. The more you test the more clues they will get.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper