OpenArena's fork of ioquake3 increases various arbitrary limits. Quake III Arena was designed for machines with less memory than a modern smartphone, let alone a modern PC, so it seems safe to push some limits up a bit.
Created attachment 3106[details]
Double the maximum number of cvars
OpenArena has had problems with hitting the cvar limit, and it only costs
52K of memory (on i386/armel) to double the arbitrary limit. That should
hopefully be plenty.
(This patch is used in Debian. For context, OpenArena sets this limit to 2000, which is a bit less than doubling it.)
Created attachment 3108[details]
Double the default com_hunkMegs, to 128M
OpenArena apparently aims for double the detail level, texture size etc.
of vanilla Quake 3, so it needs more memory.
---
Having an arbitrary limit may have made more sense when Mac OS 9 was a current thing, but modern OSs can overcommit memory and won't actually allocate it all if it isn't used, so the only remaining purpose of an arbitrary limit seems to be terminating the engine somewhat gracefully if it leaks memory?
Hmm, not sure really. If these various limits are increased it could potentially lead to the situation where somebody creates a mod/map with ioq3 which *requires* said limits meaning it won't run on baseq3 or older ioq3s/other forks. Having said that, I don't feel particularly strongly either way.
Comment 7Zachary J. Slater
2013-01-06 04:41:41 EST
Created attachment 3106 [details] Double the maximum number of cvars OpenArena has had problems with hitting the cvar limit, and it only costs 52K of memory (on i386/armel) to double the arbitrary limit. That should hopefully be plenty. (This patch is used in Debian. For context, OpenArena sets this limit to 2000, which is a bit less than doubling it.)
Created attachment 3107 [details] Increase the command buffer from 16K to 128K, following OpenArena From OpenArena.
Created attachment 3108 [details] Double the default com_hunkMegs, to 128M OpenArena apparently aims for double the detail level, texture size etc. of vanilla Quake 3, so it needs more memory. --- Having an arbitrary limit may have made more sense when Mac OS 9 was a current thing, but modern OSs can overcommit memory and won't actually allocate it all if it isn't used, so the only remaining purpose of an arbitrary limit seems to be terminating the engine somewhat gracefully if it leaks memory?
Created attachment 3109 [details] Increase maximum number of flares to 256 From OpenArena 0.8.8's engine. (0.8.5 didn't have this.)