Bug 5463 - increase various arbitrary limits
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: GIT MASTER
Hardware: PC Linux
: P3 enhancement
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2012-03-31 12:27 EDT by Simon McVittie
Modified: 2013-01-06 04:41:41 EST
2 users (show)

See Also:


Attachments
Double the maximum number of cvars (756 bytes, patch)
2012-03-31 12:29 EDT, Simon McVittie
Increase the command buffer from 16K to 128K, following OpenArena (653 bytes, patch)
2012-03-31 12:29 EDT, Simon McVittie
Double the default com_hunkMegs, to 128M (813 bytes, patch)
2012-03-31 12:32 EDT, Simon McVittie
Increase maximum number of flares to 256 (611 bytes, patch)
2012-03-31 12:32 EDT, Simon McVittie

Description Simon McVittie 2012-03-31 12:27:55 EDT
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.
Comment 1 Simon McVittie 2012-03-31 12:29:11 EDT
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.)
Comment 2 Simon McVittie 2012-03-31 12:29:44 EDT
Created attachment 3107 [details]
Increase the command buffer from 16K to 128K, following OpenArena

From OpenArena.
Comment 3 Simon McVittie 2012-03-31 12:32:24 EDT
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?
Comment 4 Simon McVittie 2012-03-31 12:32:52 EDT
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.)
Comment 5 Thilo Schulz 2012-07-01 12:41:56 EDT
Timbo? Your opinion?
Comment 6 Tim Angus 2012-07-01 16:15:57 EDT
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.