Is there any way for an application to check if Metal/Metal 2 is available? Then SheepShaver and BasiliskII could be made to use Metal only when available and if available use it by default.
Odd full screen behavior in version 2.5 (7 Feb '21)
Moderators: Cat_7, Ronald P. Regensburg, ClockWise
- Ronald P. Regensburg
- Expert User
- Posts: 7835
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
-
- Apple Corer
- Posts: 239
- Joined: Thu Nov 09, 2017 12:06 pm
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
In SDL 2.0.12, it was automatically judged in the library.
However, SDL 2.0.14 adds a new flag to use Metal when creating a window, which must be specified manually.
It seems that it can only be determined whether Metal can be used after the window is created.
It's a strange specification...
However, SDL 2.0.14 adds a new flag to use Metal when creating a window, which must be specified manually.
It seems that it can only be determined whether Metal can be used after the window is created.
It's a strange specification...
- adespoton
- Forum All-Star
- Posts: 4286
- Joined: Fri Nov 27, 2009 5:11 am
- Location: Emaculation.com
- Contact:
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
Isn't there an API provided by the OS that lets you query Metal capabilities? You could check that during application initialization and then set the Metal flag prior to creating the window.kanjitalk755 wrote: ↑Sun Feb 14, 2021 12:30 am In SDL 2.0.12, it was automatically judged in the library.
However, SDL 2.0.14 adds a new flag to use Metal when creating a window, which must be specified manually.
It seems that it can only be determined whether Metal can be used after the window is created.
It's a strange specification...
https://developer.apple.com/documentati ... e_versions should provide the info needed.
-
- Apple Corer
- Posts: 239
- Joined: Thu Nov 09, 2017 12:06 pm
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
Implemented the function to automatically set the window flag depending on whether Metal device is available.
https://github.com/kanjitalk755/macemu/ ... ullscreen3
https://github.com/kanjitalk755/macemu/ ... ullscreen3
- Ronald P. Regensburg
- Expert User
- Posts: 7835
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
New builds with this latest solution:
SheepShaver: https://www.emaculation.com/sheepshaver ... test_3.zip
BasiliskII: https://www.emaculation.com/basilisk/Ba ... test_3.zip
Tested on my Late 2013 iMac with macOS 10.15.7
(I have no non-metal machine available for testing.)
Launching fullscreen works fine and smoothly for both BasiliskII and SheepShaver.
SheepShaver: https://www.emaculation.com/sheepshaver ... test_3.zip
BasiliskII: https://www.emaculation.com/basilisk/Ba ... test_3.zip
Tested on my Late 2013 iMac with macOS 10.15.7
(I have no non-metal machine available for testing.)
Launching fullscreen works fine and smoothly for both BasiliskII and SheepShaver.
- adespoton
- Forum All-Star
- Posts: 4286
- Joined: Fri Nov 27, 2009 5:11 am
- Location: Emaculation.com
- Contact:
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
Tested on my late 2015 running 11.2.1, works fine in windowed and fullscreen. Will test later on El Cap on a non-Metal 2008 and see what happens (info.plist does state min requirements of 10.7).
- Ronald P. Regensburg
- Expert User
- Posts: 7835
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
Tested SheepShaver on a late 2008 MacBook (MacBook5,1) running El Capitan 10.11.6.Ronald P. Regensburg wrote: ↑Sat Feb 20, 2021 11:47 am Or maybe someone else who can test the latest test_3 builds on a non-Metal Mac?
It works, but exhibits the bouncing menu bar as described in my initial post. As would be expected, it ignores the setting "sdlrender metal" and otherwise runs normally.
- Ronald P. Regensburg
- Expert User
- Posts: 7835
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
Expected behaviour with SDL2 2.0.16 on a non-Metal Mac, any Mac that was introduced earlier than late 2012.
As this issue is really minor, a cosmetic issue that will last no longer than one second, during full-screen launch only, and only on Macs that are at least 8 years old, I think this change can be merged with the master branch.
As this issue is really minor, a cosmetic issue that will last no longer than one second, during full-screen launch only, and only on Macs that are at least 8 years old, I think this change can be merged with the master branch.
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
It lasts a second on my i9 iMac, and about 4 seconds on the 2008 Core 2 Duo MacBook, but I agree that it is a minor issue, which will become increasingly less significant as older Macs drop off the perch.Ronald P. Regensburg wrote: ↑Mon Feb 22, 2021 12:24 pm As this issue is really minor, a cosmetic issue that will last no longer than one second, during full-screen launch only, and only on Macs that are at least 8 years old, I think this change can be merged with the master branch.
-
- Apple Corer
- Posts: 239
- Joined: Thu Nov 09, 2017 12:06 pm
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
I merged test_fullscreen3 branch to the master.
- Ronald P. Regensburg
- Expert User
- Posts: 7835
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
I will post new notarized builds of SheepShaver and BasiliskII in the coming days.
-
- Apple Corer
- Posts: 239
- Joined: Thu Nov 09, 2017 12:06 pm
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
On non-Metal Mac, you may be able to improve the startup behavior by setting the following in ~/.sheepshaver_prefs.
Code: Select all
sdlrender opengl
- Ronald P. Regensburg
- Expert User
- Posts: 7835
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
I cannot test this on my Metal Mac. Is it already implemented in the builds I created yesterday?
Maybe someone (almeath?) can confirm this on a non-Metal Mac?
If it works, could it also be implemented such that it will automatically use this when the check for Metal device is negative?
Maybe someone (almeath?) can confirm this on a non-Metal Mac?
If it works, could it also be implemented such that it will automatically use this when the check for Metal device is negative?
-
- Apple Corer
- Posts: 239
- Joined: Thu Nov 09, 2017 12:06 pm
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
I don't think there are any side effects, so I implemented it.
- Ronald P. Regensburg
- Expert User
- Posts: 7835
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
I will again make new builds later this week.
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
Yes, it works fine on my non-Metal MacBook. With the opengl setting it behaves basically the same as the Metal-enabled iMac with the metal setting. The menu flashes so quick you can barely notice it, literally a fraction of a second.kanjitalk755 wrote: ↑Sun Feb 28, 2021 9:59 am I don't think there are any side effects, so I implemented it.
- Ronald P. Regensburg
- Expert User
- Posts: 7835
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
With builds from the latest source, the additional opengl setting should not be needed anymore. I sent links to these builds in a PM for testing.
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
I tested without the sdl preference setting, and yes, it does work the same on each Mac. Thanks to everyone who worked on this.
- Ronald P. Regensburg
- Expert User
- Posts: 7835
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
Good! Thanks for testing.
I will post the new (March 1st) builds later today.
I will post the new (March 1st) builds later today.
- Ronald P. Regensburg
- Expert User
- Posts: 7835
- Joined: Thu Feb 09, 2006 10:24 pm
- Location: Amsterdam, Netherlands
Re: Odd full screen behavior in version 2.5 (7 Feb '21)
And thank you kanjitalk755 !