Skip to content

Commit

Permalink
MEM: Increase default mem size to 256MB.
Browse files Browse the repository at this point in the history
Stop gap fix for QW-Group#665. Could include some detection of memory to avoid
allocating 256MB if system is puny. Ideal solution would be dynamic
allocation. This at least allows modern maps to load.
  • Loading branch information
dsvensson committed Aug 31, 2022
1 parent f9e2b5a commit 3df07e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sv_sys_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ int main(int ac, char *av[])

GetConsoleTitle(title, sizeof(title));

Host_Init(argc, argv, DEFAULT_MEM_SIZE);
Host_Init(argc, argv, 256 * 1024 * 1024);

// run one frame immediately for first heartbeat
SV_Frame (0.1);
Expand Down
2 changes: 1 addition & 1 deletion sys_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ int main(int argc, char **argv)
if (COM_CheckParm(cmdline_param_client_nostdoutput))
sys_nostdout.value = 1;

Host_Init (argc, argv, 128 * 1024 * 1024);
Host_Init (argc, argv, 256 * 1024 * 1024);

oldtime = Sys_DoubleTime ();
while (1) {
Expand Down

0 comments on commit 3df07e6

Please sign in to comment.