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

Bugs that have been investigated and resolved somehow.

Moderator: GZDoom Developers

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

Postby Warrex » Wed Jan 27, 2021 11:30 pm

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
 
Joined: 08 Aug 2013

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

Postby Warrex » Thu Jan 28, 2021 1:04 am

The same is true for the last development build of Raze.
Warrex
 
Joined: 08 Aug 2013

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

Postby _mental_ » Thu Jan 28, 2021 1:19 am

Please do a process sampling of GZDoom, and post the report.
_mental_
 
 
 
Joined: 07 Aug 2011

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

Postby Warrex » Thu Jan 28, 2021 3:36 am

_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.
Warrex
 
Joined: 08 Aug 2013

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

Postby _mental_ » Thu Jan 28, 2021 5:20 am

I think I found a bug that was causing an infinite loop. A new devbuild with the fix is available.
_mental_
 
 
 
Joined: 07 Aug 2011

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

Postby Warrex » Thu Jan 28, 2021 6:11 am

_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.
Warrex
 
Joined: 08 Aug 2013

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

Postby _mental_ » Thu Jan 28, 2021 6:40 am

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.
_mental_
 
 
 
Joined: 07 Aug 2011

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

Postby Warrex » Thu Jan 28, 2021 8:35 am

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.
Warrex
 
Joined: 08 Aug 2013

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

Postby _mental_ » Thu Jan 28, 2021 9:46 am

How do you run GZDoom? From Finder, Terminal, or something else?
_mental_
 
 
 
Joined: 07 Aug 2011

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

Postby Warrex » Thu Jan 28, 2021 9:46 am

Finder

Screenshots and saves go to Documents/GZDoom as they should.
Warrex
 
Joined: 08 Aug 2013

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

Postby _mental_ » Thu Jan 28, 2021 10:10 am

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.
_mental_
 
 
 
Joined: 07 Aug 2011

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

Postby Warrex » Thu Jan 28, 2021 11:11 am

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.
Warrex
 
Joined: 08 Aug 2013

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

Postby Graf Zahl » Thu Jan 28, 2021 1:06 pm

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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

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

Postby Warrex » Thu Jan 28, 2021 1:58 pm

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

OpenGL native:
38 fps @ 1080p
39 fps @ 320x200
Warrex
 
Joined: 08 Aug 2013

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

Postby Graf Zahl » Thu Jan 28, 2021 2:49 pm

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.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
 
Joined: 19 Jul 2003
Location: Germany

Next

Return to Closed Bugs

Who is online

Users browsing this forum: No registered users and 0 guests