[g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC)
Moderator: GZDoom Developers
Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
-
- Posts: 78
- Joined: Thu Aug 08, 2013 2:00 pm
[g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC)
The lastest GZDoom development builds from drdteam.org (gzdoom-g4.6pre-65-g6701cd284.zip, gzdoom-g4.6pre-45-g1767fdfe7.dmg) freeze directly after launch on my Mac Mini 2020 with Apple M1 SoC (Apple Silicon / ARM64).
These builds seem to be compiled as universal apps. When I force macOS to run them through the Rosetta 2 X86 emulation layer everything seems to work fine (just launched Doom2 + Hellbound to see how map 29 runs performance wise).
Btw. GZDoom also freezes when running natively if I do not provide an iwad but then only after hitting "Quit" on the console window.
These builds seem to be compiled as universal apps. When I force macOS to run them through the Rosetta 2 X86 emulation layer everything seems to work fine (just launched Doom2 + Hellbound to see how map 29 runs performance wise).
Btw. GZDoom also freezes when running natively if I do not provide an iwad but then only after hitting "Quit" on the console window.
-
- Posts: 78
- Joined: Thu Aug 08, 2013 2:00 pm
Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC
The same is true for the last development build of Raze.
-
-
- Posts: 3819
- Joined: Sun Aug 07, 2011 4:32 am
Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC
Please do a process sampling of GZDoom, and post the report.
-
- Posts: 78
- Joined: Thu Aug 08, 2013 2:00 pm
Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC
Here you go._mental_ wrote:Please do a process sampling of GZDoom, and post the report.
You do not have the required permissions to view the files attached to this post.
-
-
- Posts: 3819
- Joined: Sun Aug 07, 2011 4:32 am
Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC
I think I found a bug that was causing an infinite loop. A new devbuild with the fix is available.
-
- Posts: 78
- Joined: Thu Aug 08, 2013 2:00 pm
Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC
Great! GZDoom now starts on the M1 natively and with a speed boost of 25% vs. the Rosetta emulation. With the M1s very high ST performance and capable integrated GPU which is on par with a GTX980 or GTX1060 this is a nice setup for GZDoom overall - especially at >30W (https://www.anandtech.com/show/16252/ma ... -m1-tested)._mental_ wrote:I think I found a bug that was causing an infinite loop. A new devbuild with the fix is available.
Please also fix Raze! Thank you.
-
-
- Posts: 3819
- Joined: Sun Aug 07, 2011 4:32 am
Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC
Good.
A bit unrelated request, but did you check Vulkan renderer on M1 running natively?
It would be great if you can do a bench console command a few times with both hardware renderers.
Frozen Time bridge is quite good test case.
It's important to do it at the exactly same location, a saved game helps to achieve this.
A bit unrelated request, but did you check Vulkan renderer on M1 running natively?
It would be great if you can do a bench console command a few times with both hardware renderers.
Frozen Time bridge is quite good test case.
It's important to do it at the exactly same location, a saved game helps to achieve this.
-
- Posts: 78
- Joined: Thu Aug 08, 2013 2:00 pm
Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC
I know the drill (assigned a key, etc.) and everything worked fine but I cannot find the text file. I even gave GZDoom full disk access and searched the whole drive for "bench" finding >100 files but no report of GZDoom. What is the name of the file and where do I find it?
Btw. your wiki still states the ccmd is Windows only.
Btw. your wiki still states the ccmd is Windows only.
-
-
- Posts: 3819
- Joined: Sun Aug 07, 2011 4:32 am
Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC
How do you run GZDoom? From Finder, Terminal, or something else?
-
- Posts: 78
- Joined: Thu Aug 08, 2013 2:00 pm
Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC
Finder
Screenshots and saves go to Documents/GZDoom as they should.
Screenshots and saves go to Documents/GZDoom as they should.
-
-
- Posts: 3819
- Joined: Sun Aug 07, 2011 4:32 am
Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC
The result file is named benchmarks.txt, and it's saved into the current directory.
The problem is, this is the root directory if GZDoom is launched from Finder.
Probably, we should do something with this. Workaround is to run from Terminal.
Moreover, I completely forgot that high resolution time measurement is not implemented yet for Apple ARM64.
So, you can just compare FPS (or better, frame time) for now.
The problem is, this is the root directory if GZDoom is launched from Finder.
Probably, we should do something with this. Workaround is to run from Terminal.
Moreover, I completely forgot that high resolution time measurement is not implemented yet for Apple ARM64.
So, you can just compare FPS (or better, frame time) for now.
-
- Posts: 78
- Joined: Thu Aug 08, 2013 2:00 pm
Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC
Even from the terminal it does not work for me. Anyway, here are my results for the attached save file.
Resolution: 5120x2880 (oversampling by macOS for a display resolution of 3840x2160)
Vulkan: 24ms / 42 fps
OpenGL: 29ms / 34 fps
Vulkan with Rosetta Emulation: 36ms / 28fps
OpenGL with Rosetta Emulation: 47ms / 22fps
Resolution: 5120x2880 (oversampling by macOS for a display resolution of 3840x2160)
Vulkan: 24ms / 42 fps
OpenGL: 29ms / 34 fps
Vulkan with Rosetta Emulation: 36ms / 28fps
OpenGL with Rosetta Emulation: 47ms / 22fps
You do not have the required permissions to view the files attached to this post.
-
- Lead GZDoom+Raze Developer
- Posts: 49211
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC
How does it fare at 1920x1080? With this high resolution it's hard to tell how much of that depends on the CPU and how much on the GPU.
-
- Posts: 78
- Joined: Thu Aug 08, 2013 2:00 pm
Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC
Vulkan native:
57 fps @ 1080p
64 fps @ 320x200
OpenGL native:
38 fps @ 1080p
39 fps @ 320x200
57 fps @ 1080p
64 fps @ 320x200
OpenGL native:
38 fps @ 1080p
39 fps @ 320x200
-
- Lead GZDoom+Raze Developer
- Posts: 49211
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC
Not bad. 57 fps is what I get on my 8 year old desktop as well. That's actually quite a lot better than any other Mac I ever tested.