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 Sep 15, 2022
1 parent 6676071 commit 888b626
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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
2 changes: 1 addition & 1 deletion sys_win.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ __attribute__((dllexport)) DWORD AmdPowerXpressRequestHighPerformance = 0x000000
#endif

#define MINIMUM_WIN_MEMORY 0x0c00000
#define MAXIMUM_WIN_MEMORY 0x8000000
#define MAXIMUM_WIN_MEMORY 0xfffffff

#define PAUSE_SLEEP 50 // sleep time on pause or minimization
#define NOT_FOCUS_SLEEP 20 // sleep time when not focus
Expand Down

0 comments on commit 888b626

Please sign in to comment.