[g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC)

Bugs that have been investigated and resolved somehow.

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.
Warrex
Posts: 78
Joined: Thu Aug 08, 2013 2:00 pm

[g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC)

Post by Warrex »

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.
Warrex
Posts: 78
Joined: Thu Aug 08, 2013 2:00 pm

Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC

Post by Warrex »

The same is true for the last development build of Raze.
_mental_
 
 
Posts: 3819
Joined: Sun Aug 07, 2011 4:32 am

Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC

Post by _mental_ »

Please do a process sampling of GZDoom, and post the report.
Warrex
Posts: 78
Joined: Thu Aug 08, 2013 2:00 pm

Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC

Post by Warrex »

_mental_ wrote:Please do a process sampling of GZDoom, and post the report.
Here you go.
You do not have the required permissions to view the files attached to this post.
_mental_
 
 
Posts: 3819
Joined: Sun Aug 07, 2011 4:32 am

Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC

Post by _mental_ »

I think I found a bug that was causing an infinite loop. A new devbuild with the fix is available.
Warrex
Posts: 78
Joined: Thu Aug 08, 2013 2:00 pm

Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC

Post by Warrex »

_mental_ wrote:I think I found a bug that was causing an infinite loop. A new devbuild with the fix is available.
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).

Please also fix Raze! Thank you.
_mental_
 
 
Posts: 3819
Joined: Sun Aug 07, 2011 4:32 am

Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC

Post by _mental_ »

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.
Warrex
Posts: 78
Joined: Thu Aug 08, 2013 2:00 pm

Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC

Post by Warrex »

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.
_mental_
 
 
Posts: 3819
Joined: Sun Aug 07, 2011 4:32 am

Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC

Post by _mental_ »

How do you run GZDoom? From Finder, Terminal, or something else?
Warrex
Posts: 78
Joined: Thu Aug 08, 2013 2:00 pm

Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC

Post by Warrex »

Finder

Screenshots and saves go to Documents/GZDoom as they should.
_mental_
 
 
Posts: 3819
Joined: Sun Aug 07, 2011 4:32 am

Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC

Post by _mental_ »

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.
Warrex
Posts: 78
Joined: Thu Aug 08, 2013 2:00 pm

Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC

Post by Warrex »

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
You do not have the required permissions to view the files attached to this post.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
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

Post by Graf Zahl »

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.
Warrex
Posts: 78
Joined: Thu Aug 08, 2013 2:00 pm

Re: [g4.6pre-65-g6701cd284] Freezes on Apple Silicon (M1 SoC

Post by Warrex »

Vulkan native:
57 fps @ 1080p
64 fps @ 320x200

OpenGL native:
38 fps @ 1080p
39 fps @ 320x200
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
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

Post by Graf Zahl »

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.

Return to “Closed Bugs [GZDoom]”