Commit graph

781 commits

Author SHA1 Message Date
Bill Currie
e4fd746f71 this adds some stats to hash tables and a command to get at them for commands
and aliases
2001-11-10 01:13:29 +00:00
Ragnvald Maartmann-Moe IV
1dfd2d4eaf More use of mathlib, and some small optimizations. 2001-11-09 18:51:33 +00:00
Ragnvald Maartmann-Moe IV
3d572df460 Bug fix (we weren't removing particles from the list until the frame after they died, which caused particle slots to be wasted).
Fix for a bug in particle trail pre-aging (sometimes created some 0 age particles).
And a couple small optimizations.
2001-11-09 12:09:46 +00:00
Bill Currie
4be5c86f36 forgot to add "uinteger" to the array of type name strings 2001-11-09 01:03:35 +00:00
Bill Currie
928d343295 pr_comp.h:
o	add ev_uniteger to the types enum
	o	add opcodes for ifbe, ifb, ifae, ifa, jump, lt.ui, gt.ui, le.ui, ge.ui
progs.h:
	o	add uinteger accessors
pr_exec.c:
	o	implement ifbe, ifb, ifae, ifa, jump, lt.ui, gt.ui, le.ui, ge.ui
pr_opcode.c:
	o	add opcodes for ifbe, ifb, ifae, ifa, jump, lt.ui, gt.ui, le.ui, ge.ui
expr.h:
	o	prototype inc_users
qfcc.h:
	o	add externs for op_ifbe, op_ifb, op_ifae and op_ifa
emit.c:
	o	don't bother emiting an assignment to a temp def that's only used once
		(ie, it's never read, only written to)
	o	support the new if* instructions
expr.c:
	o	support the new if* insructions
	o	dectect expression loops in append_expr
	o	support unsigned integers
	o	re-work temp def usage counting
pr_def.c
	o	debugging for temp def usage counts
pr_opcode.c:
	o	support the new if* instructions
qc-parse.y:
	o	provide defines for IFBE IFB IFAE IFA
switch.c:
	o	do binary searches for strings, floats and ints if there are more than
		8 cases in a switch. Strings need more testing.
2001-11-09 00:58:16 +00:00
Ragnvald Maartmann-Moe IV
f60c39e0bc Whitespace. 2001-11-07 06:59:10 +00:00
Ragnvald Maartmann-Moe IV
14aa428871 Switch to dot texture for sparks, and drop particle size. A little less cartoony effect. 2001-11-07 06:57:34 +00:00
Bill Currie
ae8c255eb0 re-anable the sorting. I guess snax was testing other things and forgot about
it.
2001-11-06 21:37:33 +00:00
Bill Currie
f3fcfea62a fully specify the type for the comparison opcodes 2001-11-06 21:29:53 +00:00
Ragnvald Maartmann-Moe IV
f2f8513141 Reduce number of rand() calls in teleport and lava splash effects. Also preserves entropy, and we all know how important that is! 2001-11-06 21:02:18 +00:00
Bill Currie
469fd1b023 more mathlib usage 2001-11-06 20:36:20 +00:00
Brian Koropoff
ccd665e80c This commit removes maplist.c and replaces it with filelist.c, which
contains general functions for creating lists of a type of file and
provides the commands maplist, skinlist, skyboxlist, and demolist.
2001-11-06 07:14:29 +00:00
Ragnvald Maartmann-Moe IV
ceb307aead Cleanups, whitespace, convert some ints to unsigned int. Whee! 2001-11-06 05:06:37 +00:00
Ragnvald Maartmann-Moe IV
1c5701f51f Fix a few minor quirks with particle trails. 2001-11-06 04:42:17 +00:00
Bill Currie
15b381909e move maplist from quakefs.c to console/maplist.c. Unfortunatly, until the
client console plugin is usable, this means the clients link maplist.o
directly.
2001-11-05 22:24:16 +00:00
Bill Currie
460b53e9ee rework the maplist code to use Con_DisplayList. this results in both
prettier code and prettier output.
2001-11-05 21:30:53 +00:00
Adam Olsen
ded1b4c057 - add some missing boundschecking to CDAudio_Play's track remap (in
specific plugins only)
- convert updateping, updatepl, updateentertime, updatestat,
  updatestatlong, cdtrack intermission, finale, muzzleflashchokecount,
  maxspeed, entgravity, and setpause on the client.  Can you say all
  that in one breath? :)
2001-11-05 16:17:45 +00:00
Ragnvald Maartmann-Moe IV
6af4eae1e5 Couple of cleanups (remove unused variables) and a small optimization. 2001-11-05 14:59:05 +00:00
Ragnvald Maartmann-Moe IV
069ad1bfb1 Change r_lightmap_components default to 3. Looks like Nvidia fixed that horrid slowdown for 3 component texture uploads. :) 2001-11-05 10:11:21 +00:00
Brian Koropoff
008b59b777 The beginnings of an f_* reply system have been added. f_version works
like normal, f_skins reports the average percent fullbright for all loaded
skins, and f_skins skinname reports the fullbright percent for a signle
skin.  cl_freply controls the time in seconds before another query can be
made.  Set it to 0 to disable them.  More queries will be added later.
The table for accessing special characters from the console has been
tweaked a bit.  Expect it to get tweaked more in the future.
2001-11-05 07:23:51 +00:00
Bill Currie
dc779acdb5 build the texture chains such that they get rendered front to back. seems to
only get about 0.17% speedup in overkill (with just about every thing off),
but it might make more of a difference in-game.
2001-11-05 06:20:35 +00:00
Bill Currie
9f4a565523 rename some get_key functions so they're all uniqely named (matters only for
profiling purposes thanks to static:)
2001-11-05 03:21:42 +00:00
Bill Currie
c443e2c024 info.c:
support unlimited info strings when maxsize is 0
sv_main.c:
	make localinfo unlimited
2001-11-05 02:08:20 +00:00
Bill Currie
9829cf3993 do not include \key\value pairs in the output of Info_MakeString for
backwards compatability with the old info key system.
2001-11-05 01:29:45 +00:00
Bill Currie
96a2ac9a70 put the info string tolower/highchar handling back in 2001-11-04 22:00:32 +00:00
Ragnvald Maartmann-Moe IV
a856cbc413 Fix for r_lightmap_components 4 weirdness. 2001-11-04 20:58:46 +00:00
Bill Currie
23a2760194 change formating for Info_Print 2001-11-04 20:48:12 +00:00
Ragnvald Maartmann-Moe IV
a2ed608ee7 Some more small speedups.
Not entirely thrilled with R_BuildLightMap inside 'store:'. Macros are a pain to work around...
2001-11-04 16:57:47 +00:00
Adam Olsen
3417167e7e - compile fix for info.c. We can't call any functions until /after/
all variables are declared.
2001-11-04 15:42:26 +00:00
Ragnvald Maartmann-Moe IV
6d62497934 Typo fix. 2001-11-04 15:31:17 +00:00
Ragnvald Maartmann-Moe IV
dbb6e37bb7 Remove some unneeded variables.
Speed lightmap calculations up for r_lightmap_components 1.
Enough to give a 4.4% speedup to timedemo overkill.
Hint: int/float/int conversions are expensive.
2001-11-04 11:20:35 +00:00
Ragnvald Maartmann-Moe IV
fd19f9332d Tiny comment cleanup 2001-11-04 08:50:16 +00:00
Bill Currie
b0e9bd3ddc fix a bogus leak in info strings 2001-11-04 08:18:54 +00:00
Bill Currie
dcd9b0040e rewrite the info strings to use hash tables instead of a static string.
This required changes to the api (info_t instead of char *) but should be
a net gain in speed (not a lot, admittedly: it was pretty fast to begin
with, but this paves the way for some other changes I have in mind).
2001-11-04 07:50:39 +00:00
Ragnvald Maartmann-Moe IV
de0b4f65fa modelalpha and currenentity cleanups. 2001-11-04 07:40:35 +00:00
Ragnvald Maartmann-Moe IV
961ea0b693 Move cshift render to before hud/text render, so that you can still read it while heavy cshift action is happening. 2001-11-03 07:50:57 +00:00
Ragnvald Maartmann-Moe IV
e8b36b1a71 Remove unused R_CullBlocked. 2001-11-03 07:30:15 +00:00
Bill Currie
5bf5278c2b pr_comp.h:
- new opcodes for pointers
progs.h:
	- prototype PR_Check_Opcodes
pr_edict.c:
	- move the static bounds checking to PR_Check_Opcodes in pr_opcode.c
pr_exec.c:
	- vector instruction cleanup
	- temporarily nuke bounds checking from storep.*
	- move base of address results from pr->edicts to pr->pr_globals
	- implement new pointer related instructions
	- nuke proposed global pointer instructions (not flexible enough)
pr_opcode.c:
	- add new pointer instuctions
	- re-implement static bounds/invalid opcode checking. no more multiple
	  case statements to keep track of.
2001-11-02 22:41:11 +00:00
Ragnvald Maartmann-Moe IV
08a211385f Optimize some redundant math out of the particle aging loop. 2001-11-02 21:12:09 +00:00
Ragnvald Maartmann-Moe IV
3958b4a4b3 Age particle trails based on position in trail, during creation. 2001-11-02 20:47:47 +00:00
Bill Currie
7b4e5e69af now actually works (especially for double scan modes and the like) 2001-11-02 06:43:41 +00:00
Ragnvald Maartmann-Moe IV
c19c237e0e Whitespace. 2001-11-02 06:35:32 +00:00
Bill Currie
a98c5bb4c1 fix vid_fullscreen toggling (sgl) and archiving (all) 2001-11-02 06:11:32 +00:00
Bill Currie
166ce6d8ce redundant code removal 2001-11-02 03:04:01 +00:00
Bill Currie
a45b78b622 make all 8 X buffers available. no args uses the default buffer, giving 0-7
as an agument to in_paste_buffer specifies which buffer to use.
2001-11-01 22:52:22 +00:00
Bill Currie
fa976d4461 cvarlist cfg will now give output suitable for a config file 2001-10-30 23:33:47 +00:00
Bill Currie
9b8995b836 fix win32's missing clipboard support (bringing it back). some trickery will
be required to get ctrl-V working, but... *shrug*
2001-10-30 22:46:15 +00:00
Ragnvald Maartmann-Moe IV
d1c115da05 Whitespace. 2001-10-30 19:58:01 +00:00
Ragnvald Maartmann-Moe IV
7ea1051b9a Code cleanups. 2001-10-30 19:55:34 +00:00
Ragnvald Maartmann-Moe IV
3ad79cc970 Change particle limit from a short to an unsigned int. Possibly a tiny speedup, also allows for absurd particle counts... 2001-10-30 19:42:29 +00:00