mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-01-30 15:38:23 +03:00
parent
10510e879e
commit
3ca6b6d944
6
proton
6
proton
@ -1580,6 +1580,12 @@ class Session:
|
|||||||
if hard_limit < 524288:
|
if hard_limit < 524288:
|
||||||
self.log_file.write(f"WARNING: Low file descriptor limit: {hard_limit} (see https://github.com/ValveSoftware/Proton/wiki/File-Descriptors)\n")
|
self.log_file.write(f"WARNING: Low file descriptor limit: {hard_limit} (see https://github.com/ValveSoftware/Proton/wiki/File-Descriptors)\n")
|
||||||
|
|
||||||
|
if os.path.exists("/proc/sys/vm/max_map_count"):
|
||||||
|
with open("/proc/sys/vm/max_map_count", "r") as f:
|
||||||
|
max_map_count = int(f.read())
|
||||||
|
if max_map_count < 1048576:
|
||||||
|
self.log_file.write(f"WARNING: Low /proc/sys/vm/max_map_count: {max_map_count} will prevent some games from working\n")
|
||||||
|
|
||||||
self.log_file.write("======================\n")
|
self.log_file.write("======================\n")
|
||||||
self.log_file.flush()
|
self.log_file.flush()
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user