[2.0.7] Frequent FPS slowdowns during gameplay (Apple Silicon)
Re: [2.0.7] Frequent FPS slowdowns during gameplay (Apple Silicon)
For me update to Sequoia has not changed the behavior. It is going well first, but then starts to degrade. It looks like a typical garbage collection problem in Java, and as it is seen, that it goes worse and worse - IMHO looks like a leak problem.
- brunzenstein
- Smart Inserter
- Posts: 1090
- Joined: Tue Mar 01, 2016 2:27 pm
- Contact:
Re: [2.0.7] Frequent FPS slowdowns during gameplay
With all due respect, Sir e.g.@posilaposila wrote: ↑Thu Nov 07, 2024 2:12 pmHello, to say it clearly. Factorio 2.0 is more demanding on GPU than 1.1 was, and Space Age significantly so.posila wrote: ↑Tue Oct 22, 2024 10:49 amDropping bellow 60 FPS, or stuttering sucks
For macOS players, I recommend to disable "Render in native resolution" in graphics settings, if you run into FPS issues.
Space Age has lot more complicated rendering to compose all the sprites and shader effects in somewhat acceptable way. We are always trying to find good compromises between visual fidelity and performance costs.
If you could play 1.1 on high resolution display with "Render in native resolution" graphics option enabled and 60 FPS, your might not keep 60 FPS on highest graphics settings in Space Age, and possibly even in base 2.0.
To improve the framerate, at the moment you can:
Our plan is:
- Disable "Render in native resolution" (and restart the game)
- Disable individual effects like Show clouds, Show fog, Animated water, ...
- Implement Resolution scaling option, so that the game can be rendered in lower resolution (for example 70% scale) but GUI can be rendered in native resolution.
- Explore optimizations that would utilize high power of Apple Silicon CPUs to lessen workload put on its GPU.
— as a vivid supporter since 2016.
(I even sent a Sacher-cake to Prague to celebrate when the first real Factorio edition came out - ask Kovarex)
As you certainly know yourself:
Apple Silikon runs the most demanding games available, one can think of, without any hiccup.
Except Factorio on the Mac (I have a M2 Mac) , which is by a far shot not as graphical refined as many shootouts or e.g. Frostpunk.
It seems like a problem for everybody bought Factorio to be solved at your side asap - isn't it?
Last edited by brunzenstein on Sun Nov 10, 2024 12:32 pm, edited 1 time in total.
- BlueTemplar
- Smart Inserter
- Posts: 2881
- Joined: Fri Jun 08, 2018 2:16 pm
- Contact:
Re: [2.0.7] Frequent FPS slowdowns during gameplay (Apple Silicon)
Apple Silicon just seems to be particularly poorly (graphically ?) suited to run Factorio ?
And with the additional complication that most Apple Silicon users seem to be using laptops with limited power and heat dissipation ?
EDIT : You will note how the Nintendo Switch isn't planned to get Space Age at all, and hasn't even gotten v2.0 yet, though that seems to be worked on.
(Also remember how it isn't even an x64 CPU, it's quite a feat that games designed first for x86, especially those designed when Apple Silicon wasn't even on the radar, even run at all on it !)
(emphasis mine)posila wrote: ↑Tue Nov 05, 2024 5:08 pm[...]
I do agree M1 is powerful chip, and it's possible we'll find a good way to use power of the CPU to reduce workload put on the GPU (which is something we always try to balance, but what makes it complicated is that it needs to be ballanced for different systems differently - essentially M1 Macs being near one extreme of the spectrum and Nintendo Switch being on the opposite extreme)
[...]
[discussion of what changed graphically on non-SA v2.0 compared to v1.1]
And with the additional complication that most Apple Silicon users seem to be using laptops with limited power and heat dissipation ?
EDIT : You will note how the Nintendo Switch isn't planned to get Space Age at all, and hasn't even gotten v2.0 yet, though that seems to be worked on.
(Also remember how it isn't even an x64 CPU, it's quite a feat that games designed first for x86, especially those designed when Apple Silicon wasn't even on the radar, even run at all on it !)
Last edited by BlueTemplar on Sun Nov 10, 2024 2:30 pm, edited 1 time in total.
BobDiggity (mod-scenario-pack)
-
- Inserter
- Posts: 25
- Joined: Wed Oct 23, 2024 6:01 am
- Contact:
Re: [2.0.7] Frequent FPS slowdowns during gameplay (Apple Silicon)
BlueTemplar wrote: ↑Sun Nov 10, 2024 11:45 amApple Silicon just seems to be particularly poorly (graphically ?) suited to run Factorio ?(emphasis mine)posila wrote: ↑Tue Nov 05, 2024 5:08 pm[...]
I do agree M1 is powerful chip, and it's possible we'll find a good way to use power of the CPU to reduce workload put on the GPU (which is something we always try to balance, but what makes it complicated is that it needs to be ballanced for different systems differently - essentially M1 Macs being near one extreme of the spectrum and Nintendo Switch being on the opposite extreme)
[...]
[discussion of what changed graphically on non-SA v2.0 compared to v1.1]
And with the additional complication that most Apple Silicon users seem to be using laptops with limited power and heat dissipation ?
(Also remember how it isn't even an x64 CPU, it's quite a feat that games designed first for x86, especially those designed when Apple Silicon wasn't even on the radar, even run at all on it !)
I want to note that many games really warm my Macbook, BG3 warms it up to 80-85 degrees, with a processor load of about 40-45%. Factorio does not raise the temperature above 55 degrees, and loads the processor by 10-15%. I am for the exploits of course. I think that we are all here for the reason that no one warned about the deterioration of the game on the MacBook. A short post about this, or a release on the MacBook a month after the official release, would probably fix the situation. I am also far from programming, dear Templar, and I cannot correctly assess whether it was possible to foresee in advance the reason for the failure of the game on the Mac OS? after all, all failures have a single massive harkater, how did it get past the testers? P.S. - in general, the half-year patch helped me, the SDL change, the comfort of the game at 95% (I'm looking forward to the promised scaling of 70%) WUBE are great fellows!
Re: [2.0.7] Frequent FPS slowdowns during gameplay (Apple Silicon)
I just experienced this issue on Linux (Wayland with Nvidia GPU). The framerate drops when Factorio is rendered on my 4k monitor, but the framerate increases when it is moved back to my 1k monitor, *or* when the window size of Factorio on the 4k display is sufficiently small relative to screen size.
This was not an issue in the past, but seems to occur even on older releases. So far I have tested on 2.0.16, 2.0.15, 2.0.14, and 2.0.9 (the last of which I did not experience the framerate decrease on the external monitor earlier when it first came out).
I am not sure what has changed on my setup in this timeframe. I am updating my nvidia driver from 6.6.59 to 6.6.60, and will report back if anything improves.
This was not an issue in the past, but seems to occur even on older releases. So far I have tested on 2.0.16, 2.0.15, 2.0.14, and 2.0.9 (the last of which I did not experience the framerate decrease on the external monitor earlier when it first came out).
I am not sure what has changed on my setup in this timeframe. I am updating my nvidia driver from 6.6.59 to 6.6.60, and will report back if anything improves.
- BlueTemplar
- Smart Inserter
- Posts: 2881
- Joined: Fri Jun 08, 2018 2:16 pm
- Contact:
Re: [2.0.7] Frequent FPS slowdowns during gameplay (Apple Silicon)
Are you testing with exactly the same save, with the same actions, and not a different one where the factory is bigger ?
What about 1.1 ?
You are trying to drive ~4 times the pixels after all.
What about 1.1 ?
You are trying to drive ~4 times the pixels after all.
BobDiggity (mod-scenario-pack)
-
- Manual Inserter
- Posts: 1
- Joined: Wed Nov 13, 2024 4:56 pm
- Contact:
Re: [2.0.7] Frequent FPS slowdowns during gameplay (Apple Silicon)
I'm also experiencing this issue with the latest M4 Pro 16-inch MacBook Pro
My base is rather small as I'm still starting up in Nauvis, playing it on my old Intel i7 2017 15-inch MacBook Pro and my Ryzen 3600 / RTX 3070 PC is totally fine (albeit with loud fans on my Intel MacBook), but playing it on my M4 Pro I have stutters and FPS drops to 40ish and unstable. Both Macs are using built-in display.
My base is rather small as I'm still starting up in Nauvis, playing it on my old Intel i7 2017 15-inch MacBook Pro and my Ryzen 3600 / RTX 3070 PC is totally fine (albeit with loud fans on my Intel MacBook), but playing it on my M4 Pro I have stutters and FPS drops to 40ish and unstable. Both Macs are using built-in display.
Re: [2.0.7] Frequent FPS slowdowns during gameplay (Apple Silicon)
Indeed, but the slowdown only started happening recently. I have been able to run Factorio both 1.* and 2.* on the external monitor at full resolution without issue before. What is odd is that the versions that did not slow down earlier now do do so. I am not sure whether this is a bug that occurs rarely, or whether a setup detail on my end has caused this change.BlueTemplar wrote: ↑Mon Nov 11, 2024 10:00 amAre you testing with exactly the same save, with the same actions, and not a different one where the factory is bigger ?
What about 1.1 ?
You are trying to drive ~4 times the pixels after all.
-
- Fast Inserter
- Posts: 230
- Joined: Mon Aug 22, 2022 5:27 am
- Contact:
Re: [2.0.7] Frequent FPS slowdowns during gameplay (Apple Silicon)
A m1 (or later) mac should be able to run SA without performance issues. My Steam deck runs it fine and that is a less powerful device.
-
- Manual Inserter
- Posts: 2
- Joined: Fri Nov 08, 2024 8:55 am
- Contact:
Re: [2.0.7] Frequent FPS slowdowns during gameplay (Apple Silicon)
Can we somehow help to narrow down the cause? Some metrics or debug info you need? I am a developer and know how valuable good feedback and "error logs" are
- BlueTemplar
- Smart Inserter
- Posts: 2881
- Joined: Fri Jun 08, 2018 2:16 pm
- Contact:
Re: [2.0.7] Frequent FPS slowdowns during gameplay (Apple Silicon)
That's not how it works, you can't reduce «computing power» to a single number (see above).Panzerknacker wrote: ↑Thu Nov 14, 2024 5:12 amA m1 (or later) mac should be able to run SA without performance issues. My Steam deck runs it fine and that is a less powerful device.
BobDiggity (mod-scenario-pack)
-
- Inserter
- Posts: 25
- Joined: Wed Oct 23, 2024 6:01 am
- Contact:
Re: [2.0.7] Frequent FPS slowdowns during gameplay (Apple Silicon)
We are looking forward to solutions from the WUBE team! M4 Pro failed; (hope for programmers!
Re: [2.0.7] Frequent FPS slowdowns during gameplay
I am sorry we have not met your expectations with Factorio's performance.brunzenstein wrote: ↑Sun Nov 10, 2024 11:25 amIt seems like a problem for everybody bought Factorio to be solved at your side asap - isn't it?
What expectation is that exactly, thought? I can see you'd like us to solve a problem ASAP, but what are the conditions under which you'll consider it solved? For example: "When Factorio 2.0 will run 60 FPS on 8-core M2 Mac in 1280x800 HiDPI, in any scene with 100k sprites or less, with clouds, animated water, smoke and render in native resolution graphics options enabled" ... or maybe "When the game with default graphics settings will run at 60 FPS in any scene with 100k sprites or less on any computer manufactured at most 5 years ago"
Re: [2.0.7] Frequent FPS slowdowns during gameplay (Apple Silicon)
When you say it like that, it is unachievable. Given a single planet is 2000000x2000000 tiles large, so at minimum you can always build bigger factory until there will be performance issues on any computer.Panzerknacker wrote: ↑Thu Nov 14, 2024 5:12 amA m1 (or later) mac should be able to run SA without performance issues.
So M1 (or later) mac should be able to run SA without performance issues on what map, and on what graphics settings (and in which resolution of screen)?
- brunzenstein
- Smart Inserter
- Posts: 1090
- Joined: Tue Mar 01, 2016 2:27 pm
- Contact:
Re: [2.0.7] Frequent FPS slowdowns during gameplay
"When the game with default graphics settings will run at least at 50 FPS in any scene with 100k sprites or less on any Mac computer M1 upwards.posila wrote: ↑Thu Nov 14, 2024 10:07 am... or maybe "When the game with default graphics settings will run at 60 FPS in any scene with 100k sprites or less on any computer manufactured at most 5 years ago"brunzenstein wrote: ↑Sun Nov 10, 2024 11:25 amIt seems like a problem for everybody bought Factorio to be solved at your side asap - isn't it?
This would do it.
- BlueTemplar
- Smart Inserter
- Posts: 2881
- Joined: Fri Jun 08, 2018 2:16 pm
- Contact:
Re: [2.0.7] Frequent FPS slowdowns during gameplay (Apple Silicon)
EDIT : Eh, ninjaed by your edit, I'll still post it though, just in case...
«Any Mac», maybe (Apple only seems to release high-end computers ?), but «any computer»... I shudder to think what bargain bin horrors netbook manufacturers can come up with (also, have they finally stopped selling laptops without any SSDs ?)
«Any Mac», maybe (Apple only seems to release high-end computers ?), but «any computer»... I shudder to think what bargain bin horrors netbook manufacturers can come up with (also, have they finally stopped selling laptops without any SSDs ?)
BobDiggity (mod-scenario-pack)
-
- Inserter
- Posts: 25
- Joined: Wed Oct 23, 2024 6:01 am
- Contact:
Re: [2.0.7] Frequent FPS slowdowns during gameplay (Apple Silicon)
AAAAAAAAA, it seems to me that we will soon be left without MAC OS support. Let's live together comrades
- brunzenstein
- Smart Inserter
- Posts: 1090
- Joined: Tue Mar 01, 2016 2:27 pm
- Contact:
Re: [2.0.7] Frequent FPS slowdowns during gameplay (Apple Silicon)
It seems to me that the whole factorio developer team has very limited resources for the AppleOS.Oleg_7777776 wrote: ↑Thu Nov 14, 2024 11:20 amAAAAAAAAA, it seems to me that we will soon be left without MAC OS support. Let's live together comrades
It is rumored that only one single developer is responsible for the whole Apple environment.
I would love to be proven wrong - @posila?
-
- Inserter
- Posts: 25
- Joined: Wed Oct 23, 2024 6:01 am
- Contact:
Re: [2.0.7] Frequent FPS slowdowns during gameplay (Apple Silicon)
is there a check mark to shift the load from GUI to GUI? And we will be happybrunzenstein wrote: ↑Thu Nov 14, 2024 11:39 amIt seems to me that the whole factorio developer team has very limited resources for the AppleOS.Oleg_7777776 wrote: ↑Thu Nov 14, 2024 11:20 amAAAAAAAAA, it seems to me that we will soon be left without MAC OS support. Let's live together comrades
It is rumored that only one single developer is responsible for the whole Apple environment.
I would love to be proven wrong - @posila?
Re: [2.0.7] Frequent FPS slowdowns during gameplay (Apple Silicon)
Even only 1 dev out of 30 is probably still greater than the proportion of Mac players to total playersbrunzenstein wrote: ↑Thu Nov 14, 2024 11:39 amIt seems to me that the whole factorio developer team has very limited resources for the AppleOS.Oleg_7777776 wrote: ↑Thu Nov 14, 2024 11:20 amAAAAAAAAA, it seems to me that we will soon be left without MAC OS support. Let's live together comrades
It is rumored that only one single developer is responsible for the whole Apple environment.
I would love to be proven wrong - @posila?
(Not to mention that only ~half of those 30 are programmers, the other half are GFX/sound/devops/websites)
My mods
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings
Content: Lunar Landings | Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings