Return-To-The-Roots / s25client

Return To The Roots (Settlers II(R) Clone)
http://www.rttr.info
GNU General Public License v2.0
478 stars 77 forks source link

SWAP File is getting bigger and bigger #1481

Open Runshak opened 2 years ago

Runshak commented 2 years ago

Hi, I´m playing on a new MacBook Air with M1 CPU. I am playing a quite large MAP with 7 Players.

So far so good. But during playing the Game is building a SWAP-File. At the beginning it was just 50GB but now its already over 100GB. Is this normal? The Software is at the newest Version (0.9.1 )

Performance is until now acceptable. Only during saving the FPS are dropping down.

Spikeone commented 2 years ago

@Runshak what does "quite large" exactly mean? What sizes are we talking about here?

stefson commented 2 years ago

can you please provide us with the map you're playing?

Runshak commented 2 years ago

Just need to know how to find out from a running game how big the size is. Or which files I have to attach

Flamefire commented 2 years ago

The map file or the savegame would help. Anyway I think this is a configuration issue of your system as RttR doesn't "build a SWAP-File", the system does if the RAM is exhausted. And I don't see how RttR could consume >100GB of memory and especially run with acceptable performance.

Runshak commented 2 years ago

Hi,

The big swap-file I could solve after restarting my MacBook. I guess it was not an initial problem from RTTR. Maybe something went wrong because of MacOS. After restarting the whole System the SWAP file didn’t grow again and was just 5 GB.

Other issues during the game are:

The newest Replay, the newest Savegame, config.ini and ingameoptions.ini are attached to this mail (follow the Link).

Mit freundlichen Gruessen / Kind regards / 诚 挚 的 问 候

Markus Musterle

Spikeone commented 2 years ago

The newest Replay, the newest Savegame, config.ini and ingameoptions.ini are attached to this mail (follow the Link).

There is no link - at least I can't see any, please attach a zip file

Runshak commented 2 years ago

Hi, the files are too big. Here the link again

https://www.icloud.com/iclouddrive/0a90ZYwSXSEXQxvgU0AEOkdhA#RTTR

Am 24.01.2022 um 17:15 schrieb Spike @.***>:

The newest Replay, the newest Savegame, config.ini and ingameoptions.ini are attached to this mail (follow the Link).

There is no link - at least I can't see any, please attach a zip file

— Reply to this email directly, view it on GitHub https://github.com/Return-To-The-Roots/s25client/issues/1481#issuecomment-1019878856, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADR2SFTPN5DO4PITDYJMF5TUXUKE3ANCNFSM5K5MK7AA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.

Spikeone commented 2 years ago

@Runshak requires a login

grafik

Runshak commented 2 years ago

Hallo,

Markus Musterle @.***) hat Sie eingeladen, den Ordner „ RTTR “ in Dropbox anzusehen.

Markus Musterle schreibt dazu: „Sorry für die Probleme...“

1 Viel Spaß! Das Dropbox-Team Markus Musterle und weitere Nutzer können sehen, wenn Sie Dateien in diesem Ordner aufrufen. Auch bei anderen für Sie über Dropbox freigegebenen Dateien kann es sein, dass diese Informationen angezeigt werden. Mehr darüber erfahren2 Sie in unserem Hilfecenter.

Runshak commented 2 years ago

Dann eben Dropbox…scheiß iCloud Mist…

https://www.dropbox.com/sh/4d3tsuzqic62spz/AAAtx8AaCkbmX-hSHONCNuAIa?dl=0

Am 24.01.2022 um 17:37 schrieb Spike @.***>:

@Runshak https://github.com/Runshak requires a login

https://user-images.githubusercontent.com/1276342/150757883-724a3bcc-8712-4483-adf9-1f439e43a4cd.png — Reply to this email directly, view it on GitHub https://github.com/Return-To-The-Roots/s25client/issues/1481#issuecomment-1019899246, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADR2SFQTNUETGXISEDUGSILUXUMURANCNFSM5K5MK7AA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.

Spikeone commented 2 years ago

Files: RTTR.zip

@Flamefire well, the savegame doesn't load for me (nothing happens, looks like an endless loop) and the replay crashes the game - so I sadly can't check anything :-/

Flamefire commented 2 years ago

The savegame does load. It is just so huge it takes ages to transmit due to our capping to 60FPS which limits even local transmission. However it doesn't load then due to a dependency chain so large it crashes the stack.

So this might indeed be a bug: During saving the game might run out of stack space similar to on load. This is a known issue due to our saving approach caused by something like this: a flag has a ware which is for a warehouse which has a ware for a workplace which has a worker carrying a ware for another flag which has a ware for...

We currently don't support another approach to serialization than depth-first which leads to those issues. This needs a rework of the save-load stuff which will make all current savegames/replays unloadable :(

Runshak commented 2 years ago

Hi there,

In case you missed it, Markus Musterle @.***) shared "RTTR" with you on Dropbox.

Markus Musterle said: "Sorry für die Probleme..."

View on Dropbox1

Thanks!


Dropbox, Inc. PO Box 77767, San Francisco, CA 94107 View Privacy Policy2 | Unsubscribe3