[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.
[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.
Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC
The same is true for the last development build of Raze.
Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC
Please do a process sampling of GZDoom, and post the report.
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.
- Attachments
-
- Process_sampling.txt
- (61.65 KiB) Downloaded 68 times
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.
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.
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.
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.
Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC
How do you run GZDoom? From Finder, Terminal, or something else?
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.
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.
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
- Attachments
-
Archive.zip- (145 KiB) Downloaded 60 times
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- 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.
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
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- 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.