After about 1-1.5 hours of playing the game, no more RAM is left.
From what I can tell, there might be either a memory leak.
The end user sees the game crashing and the steam deck rebooting.
I ran `journalctl` to check the logs and saw that it was probably a soft reboot. Meaning that there is supposed to be a crash to the desktop.
However, being in Wayland mode (default on steam deck), we see steam crashing, and then the deck appears to reboot, which would be steam restarting. There is no "desktop" per se.
To note is the fact that the game would not crash depending on the number of assets in the scene/sector. After the steam deck has recovered and the game starts, it would work perfectly fine until the next OOM error. Running the performance overlay, I saw the ram usage creeping up slowly but steadily.
Here are the logs of my crashes that were filtered by running `journalctl | grep oom` (give me all the logs with oom in them)
Code: Select all
Mar 25 15:20:41 steamdeck kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/user@1000.service/app.slice/gamescope-session.service,task=X4.exe,pid=5461,uid=1000
Mar 25 15:20:41 steamdeck kernel: Out of memory: Killed process 5461 (X4.exe) total-vm:15636312kB, anon-rss:7564632kB, file-rss:0kB, shmem-rss:3656kB, UID:1000 pgtables:25624kB oom_score_adj:200
Mar 25 15:20:42 steamdeck kernel: oom_reaper: reaped process 5461 (X4.exe), now anon-rss:0kB, file-rss:0kB, shmem-rss:2316kB
Mar 25 15:22:11 steamdeck systemd[1103]: gamescope-session.service: Failed with result 'oom-kill'.
Mar 25 19:48:20 steamdeck kernel: steamwebhelper invoked oom-killer: gfp_mask=0x100cca(GFP_HIGHUSER_MOVABLE), order=0, oom_score_adj=200
Mar 25 19:48:20 steamdeck kernel: oom_kill_process.cold+0xb/0x10
Mar 25 19:48:20 steamdeck kernel: [ pid ] uid tgid total_vm rss pgtables_bytes swapents oom_score_adj name
Mar 25 19:48:20 steamdeck kernel: oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=/,mems_allowed=0,global_oom,task_memcg=/user.slice/user-1000.slice/user@1000.service/app.slice/gamescope-session.service,task=X4.exe,pid=10456,uid=1000
Mar 25 19:48:20 steamdeck kernel: Out of memory: Killed process 10456 (X4.exe) total-vm:14529452kB, anon-rss:7440836kB, file-rss:0kB, shmem-rss:21492kB, UID:1000 pgtables:23984kB oom_score_adj:200
Mar 25 19:48:21 steamdeck kernel: oom_reaper: reaped process 10456 (X4.exe), now anon-rss:0kB, file-rss:0kB, shmem-rss:19864kB
Mar 25 19:49:50 steamdeck systemd[1103]: gamescope-session.service: Failed with result 'oom-kill'.
I was getting solid 25 fps. When playing on high/ultra, it would fluctuate between 18-23. Still, it IS playable.
I haven't been able to test out the late-game performance yet, but I think the biggest blocker there would be the CPU and the ram due to the requirement to manage all the NPCs, but then again, it is a steam deck... If I want the full X4 "experience" might as well stream from my laptop.
If any other info is required, then I can provide it. Note this x4 version was the one from March 25th. I received an update at 01:00 AM EDT that was about 600MB so I cannot fully confirm the version I was on...