newtree/source
Joseph Carter 8d08bc4d86 This is a NON-TRIVIAL update which took LordHavoc and I about 3 days to
make work properly:

Win32 thing..  If you don't free textures explicitly, you can cause a
problem with nVidia drivers.

Colored lighting is now RGB instead of RGBA.  The alpha is kinda pointless
on a lightmap and the effect's not all that great.  Plus people stuck with
16 bit OpenGL (any other 3dfx people out there?) will be quite pleased
with the improvement in image quality.  This does include LordHavoc's
dynamic light optimization code which takes most of the pain out of having
gl_flashblend off.

All glColor*'s are now half of what they used to be, except where they
aren't.  If that doesn't make sense, don't worry.  If you see one that's
only half what you'd expect, don't worry---it probably is meant to be like
that..  (More below)

glDisable (GL_BLEND) is now a thing of the GL_PAST.  As is GL_REPLACE.
Instead, we _always_ use GL_MODULATE and leave GL_BLEND turned on.  This
seems at first like it might be a performance hit, but I swear it's much
more expensive to change blending modes and texture functions 20-30 times
every screen frame!

Win32 issue..  Even though we check for multitexture, we currently don't
use it.  Reason is that I am planning to replace SGIS_multitexture with
the preferred ARB_multitexture extension which is supported in most GL 1.1
implementations and is a requirement for GL 1.2 anyway.  I also wanted to
get rid of some duplicated code.  Since Linux doesn't support multitexture
yet, I just commented out the code keeping me from compiling to get it to
work.  Win32 should work without it until it's fixed, which shouldn't be
long since the differences between SGIS and ARB multitextures as far as
Quake is concerned is minimal AT BEST.

LordHavoc and I have been working tirelessly (well not quite, we both did
manage to sleep sometime during this ordeal) to fix the lighting in the GL
renderers!  It looks DAMNED CLOSE to software's lighting now, including
the ability to overbright a color.  You've gotta see this to know what I'm
talking about.  That's why the glColor*'s are halved in most places.  The
gamma table code and the general way it works is LordHavoc's design, but
over the course of re-implementing it in QF we did come up with a few more
small optimizations.


A lot of people have noticed that QF's fps count has gone to shit lately.
No promises that this undid whatever the problem was.  That means there
could be a huge optimization lurking somewhere in the shadows, waiting for
us to fix it for a massive FPS boost.  Even if there's not, the code in
this commit DOUBLED MY FPS COUNT.  Granted I was getting pathetic FPS as
it was (around 30, which is pathetic even for a Voodoo3 in Linux) but
still---60 is a big improvement over 30!

Please be sure to "test" this code thuroughly.
2000-06-03 19:56:09 +00:00
..
.gitignore ignore Makefile 2000-05-17 12:14:53 +00:00
buildnum.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
cd_audio.c Cvar fixups... 2000-05-24 02:07:53 +00:00
cd_linux.c Cvar fixups... 2000-05-24 02:07:53 +00:00
cd_null.c Added CDAudio_Pause 2000-05-17 20:11:55 +00:00
cd_win.c Cvar fixups... 2000-05-24 02:07:53 +00:00
checksum.c C done 2000-05-22 06:46:35 +00:00
cl_cam.c Cvar fixups... 2000-05-24 02:07:53 +00:00
cl_cmd.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
cl_cvar.c port in some improvements from OT (namely fs_basepath, etc, though commandline parsing isn't finished yet) 2000-05-21 08:24:45 +00:00
cl_demo.c revert back to using f* for file io. I hope this fixes the catapult, but I wouldn't be suprised if it doesn't. 2000-05-23 22:43:36 +00:00
cl_ents.c New cvar: gl_colorlights, default 1 for GL_RBGA lightmaps, set to 0 for 2000-05-25 04:16:41 +00:00
cl_input.c Cvar fixups... 2000-05-24 02:07:53 +00:00
cl_main.c Added maplist command. The function was in, but it was never registered. 2000-05-31 14:16:08 +00:00
cl_math.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
cl_misc.c C done 2000-05-22 06:46:35 +00:00
cl_model.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
cl_parse.c a little debugging code for the intermission weirdness 2000-06-03 18:56:52 +00:00
cl_pred.c Client jump prediction fix; 2000-05-22 07:03:41 +00:00
cl_slist.c Rename all Server_List_* to SL_* as well as some code cleanup. Does not fix 2000-05-25 01:38:52 +00:00
cl_sys_unix.c some fixes to make quakeforge build on solaris. not quite done yet as the 2000-05-25 05:01:20 +00:00
cl_sys_win.c Remove all remaining references to cachedir. 2000-05-24 10:44:29 +00:00
cl_tent.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
cl_trans.c borked GPL header. 2000-05-26 17:19:16 +00:00
cmd.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
com.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
console.c Cvar fixups... 2000-05-24 02:07:53 +00:00
context_x11.c bring across the VID and IN modules for svga, x11 and glx from OT. 2000-05-23 06:36:33 +00:00
crc.c port in some improvements from OT (namely fs_basepath, etc, though commandline parsing isn't finished yet) 2000-05-21 08:24:45 +00:00
cvar.c I feel stupid now, typo fixed 2000-05-28 11:09:59 +00:00
d_copy.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
d_draw.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
d_draw16.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
d_edge.c Cvar fixups... 2000-05-24 02:07:53 +00:00
d_fill.c GPL thingy 2000-05-22 06:58:14 +00:00
d_init.c Cvar fixups... 2000-05-24 02:07:53 +00:00
d_modech.c GPL thingy 2000-05-22 06:58:14 +00:00
d_part.c GPL thingy 2000-05-22 06:58:14 +00:00
d_parta.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
d_polysa.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
d_polyse.c GPL thingy 2000-05-22 06:58:14 +00:00
d_scan.c GPL thingy 2000-05-22 06:58:14 +00:00
d_scana.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
d_sky.c all files now include config.h 2000-05-17 10:03:19 +00:00
d_spr8.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
d_sprite.c GPL thingy 2000-05-22 06:58:14 +00:00
d_surf.c GPL thingy 2000-05-22 06:58:14 +00:00
d_vars.c GPL thingy 2000-05-22 06:58:14 +00:00
d_varsa.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
d_zpoint.c GPL thingy 2000-05-22 06:58:14 +00:00
dga_check.c +set_vidfullscreen is 95% working for -x11 and -glx. only remaining known problem is mouse grabbing. 2000-05-23 07:33:03 +00:00
dirent.c GPL thingy 2000-05-22 06:58:14 +00:00
draw.c Need <string.h> here. 2000-05-31 22:49:53 +00:00
fnmatch.c removed a silly #else case on an ifdef 2000-05-22 07:07:01 +00:00
gl_draw.c This is a NON-TRIVIAL update which took LordHavoc and I about 3 days to 2000-06-03 19:56:09 +00:00
gl_mesh.c GL fixes, partial Q{open,close,read,write,getc} -> f* 2000-05-23 17:05:34 +00:00
gl_model.c This is a NON-TRIVIAL update which took LordHavoc and I about 3 days to 2000-06-03 19:56:09 +00:00
gl_ngraph.c This is a NON-TRIVIAL update which took LordHavoc and I about 3 days to 2000-06-03 19:56:09 +00:00
gl_part.c This is a NON-TRIVIAL update which took LordHavoc and I about 3 days to 2000-06-03 19:56:09 +00:00
gl_refrag.c GL fixes, partial Q{open,close,read,write,getc} -> f* 2000-05-23 17:05:34 +00:00
gl_rlight.c This is a NON-TRIVIAL update which took LordHavoc and I about 3 days to 2000-06-03 19:56:09 +00:00
gl_rmain.c This is a NON-TRIVIAL update which took LordHavoc and I about 3 days to 2000-06-03 19:56:09 +00:00
gl_rmisc.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
gl_rsurf.c This is a NON-TRIVIAL update which took LordHavoc and I about 3 days to 2000-06-03 19:56:09 +00:00
gl_screen.c This is a NON-TRIVIAL update which took LordHavoc and I about 3 days to 2000-06-03 19:56:09 +00:00
gl_test.c all files now include config.h 2000-05-17 10:03:19 +00:00
gl_trans.c GPL thingy 2000-05-22 06:58:14 +00:00
gl_view.c This is a NON-TRIVIAL update which took LordHavoc and I about 3 days to 2000-06-03 19:56:09 +00:00
gl_warp.c This is a NON-TRIVIAL update which took LordHavoc and I about 3 days to 2000-06-03 19:56:09 +00:00
in_null.c GPL thingy 2000-05-22 06:58:14 +00:00
in_svgalib.c bring across the VID and IN modules for svga, x11 and glx from OT. 2000-05-23 06:36:33 +00:00
in_win.c GPL thingy 2000-05-22 06:58:14 +00:00
in_x11.c in_x11.c - always define in_dgamouse, so it can be false when there is no DGA 2000-06-01 03:37:48 +00:00
info.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
keys.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
link.c GPL thingy 2000-05-22 06:58:14 +00:00
Makefile.am Remember to ./bootstrap with this update - doesn't seem to happen for you 2000-06-03 12:15:49 +00:00
makefile.winc My stuff. :P 2000-05-20 04:48:51 +00:00
makefile.wingl My stuff. :P 2000-05-20 04:48:51 +00:00
makefile.wins My stuff. :P 2000-05-20 04:48:51 +00:00
math.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
mathlib.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
mdfour.c all files now include config.h 2000-05-17 10:03:19 +00:00
menu.c Segfault fixed. Yes, I know I'm stupid ;P 2000-05-25 03:57:25 +00:00
model.c *sigh* 2000-05-22 07:10:16 +00:00
msg.c port in q* from OT, and split of other things in prep for removing common.* 2000-05-20 09:42:02 +00:00
net_chan.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
net_com.c all files now include config.h 2000-05-17 10:03:19 +00:00
net_udp.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
nonintel.c *sigh* 2000-05-22 07:10:16 +00:00
pmove.c port in some improvements from OT (namely fs_basepath, etc, though commandline parsing isn't finished yet) 2000-05-21 08:24:45 +00:00
pmovetst.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
pr_cmds.c revert back to using f* for file io. I hope this fixes the catapult, but I wouldn't be suprised if it doesn't. 2000-05-23 22:43:36 +00:00
pr_edict.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
pr_exec.c port in some improvements from OT (namely fs_basepath, etc, though commandline parsing isn't finished yet) 2000-05-21 08:24:45 +00:00
qargs.c some oldtree cruft for rogue/hipnotic removed (we'll support them in a 2000-05-29 12:45:05 +00:00
qendian.c port in q* from OT, and split of other things in prep for removing common.* 2000-05-20 09:42:02 +00:00
quakefs.c in_x11.c - always define in_dgamouse, so it can be false when there is no DGA 2000-06-01 03:37:48 +00:00
quakeio.c fix the +gamedir problem and fix my QFile removal 2000-05-22 21:32:14 +00:00
qw_client.dsp removed gl_test.c from the client vc project... 2000-05-22 06:36:33 +00:00
qw_server.dsp Project files update due to common.c split 2000-05-22 00:52:13 +00:00
r_aclip.c pretty much finishes source/* 2000-05-22 07:46:47 +00:00
r_aclipa.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
r_alias.c pretty much finishes source/* 2000-05-22 07:46:47 +00:00
r_aliasa.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
r_bsp.c port in some improvements from OT (namely fs_basepath, etc, though commandline parsing isn't finished yet) 2000-05-21 08:24:45 +00:00
r_draw.c Changed #if USE_INTEL_ASM to #ifdef USE_INTEL_ASM and 2000-05-17 20:50:22 +00:00
r_drawa.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
r_edge.c port in some improvements from OT (namely fs_basepath, etc, though commandline parsing isn't finished yet) 2000-05-21 08:24:45 +00:00
r_edgea.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
r_efrag.c port in some improvements from OT (namely fs_basepath, etc, though commandline parsing isn't finished yet) 2000-05-21 08:24:45 +00:00
r_light.c all files now include config.h 2000-05-17 10:03:19 +00:00
r_main.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
r_misc.c port in some improvements from OT (namely fs_basepath, etc, though commandline parsing isn't finished yet) 2000-05-21 08:24:45 +00:00
r_part.c revert back to using f* for file io. I hope this fixes the catapult, but I wouldn't be suprised if it doesn't. 2000-05-23 22:43:36 +00:00
r_sky.c loadsky command implemented: 2000-05-18 20:32:11 +00:00
r_sprite.c Need <string.h> here. 2000-05-31 22:49:53 +00:00
r_surf.c pretty much finishes source/* 2000-05-22 07:46:47 +00:00
r_vars.c pretty much finishes source/* 2000-05-22 07:46:47 +00:00
r_varsa.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
r_view.c Cvar fixes. 2000-05-23 17:01:12 +00:00
sbar.c pretty much finishes source/* 2000-05-22 07:46:47 +00:00
screen.c bring across the VID and IN modules for svga, x11 and glx from OT. 2000-05-23 06:36:33 +00:00
sizebuf.c pretty much finishes source/* 2000-05-22 07:46:47 +00:00
skin.c port in some improvements from OT (namely fs_basepath, etc, though commandline parsing isn't finished yet) 2000-05-21 08:24:45 +00:00
snd_alsa.c all files now include config.h 2000-05-17 10:03:19 +00:00
snd_dma.c 64-bit fix 2000-05-31 22:49:17 +00:00
snd_mem.c pretty much finishes source/* 2000-05-22 07:46:47 +00:00
snd_mix.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
snd_mixa.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
snd_null.c some fixes to make quakeforge build on solaris. not quite done yet as the 2000-05-25 05:01:20 +00:00
snd_oss.c port in some improvements from OT (namely fs_basepath, etc, though commandline parsing isn't finished yet) 2000-05-21 08:24:45 +00:00
snd_sun.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
snd_win.c Fixed includes. 2000-05-21 18:40:10 +00:00
surf8.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
surf16.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
sv_ccmds.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
sv_cvar.c port in some improvements from OT (namely fs_basepath, etc, though commandline parsing isn't finished yet) 2000-05-21 08:24:45 +00:00
sv_ents.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
sv_init.c Moved svs definition to sys_win/unix.c as both the client and server need it. 2000-05-21 19:59:44 +00:00
sv_main.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
sv_misc.c pretty much finishes source/* 2000-05-22 07:46:47 +00:00
sv_model.c pretty much finishes source/* 2000-05-22 07:46:47 +00:00
sv_move.c pretty much finishes source/* 2000-05-22 07:46:47 +00:00
sv_nchan.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
sv_phys.c port in some improvements from OT (namely fs_basepath, etc, though commandline parsing isn't finished yet) 2000-05-21 08:24:45 +00:00
sv_send.c revert back to using f* for file io. I hope this fixes the catapult, but I wouldn't be suprised if it doesn't. 2000-05-23 22:43:36 +00:00
sv_sys_unix.c some oldtree cruft for rogue/hipnotic removed (we'll support them in a 2000-05-29 12:45:05 +00:00
sv_sys_win.c Remove all remaining references to cachedir. 2000-05-24 10:44:29 +00:00
sv_user.c revert back to using f* for file io. I hope this fixes the catapult, but I wouldn't be suprised if it doesn't. 2000-05-23 22:43:36 +00:00
sw_view.c pretty much finishes source/* 2000-05-22 07:46:47 +00:00
sys_null.c forgot to rename some SendKeyEvents functions 2000-05-23 09:52:17 +00:00
sys_unix.c Moved svs definition to sys_win/unix.c as both the client and server need it. 2000-05-21 19:59:44 +00:00
sys_win.c pretty much finishes source/* 2000-05-22 07:46:47 +00:00
sys_x86.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
va.c pretty much finishes source/* 2000-05-22 07:46:47 +00:00
vid_ggi.c forgot to rename some SendKeyEvents functions 2000-05-23 09:52:17 +00:00
vid_glx.c This is a NON-TRIVIAL update which took LordHavoc and I about 3 days to 2000-06-03 19:56:09 +00:00
vid_mgl.c Added K_CAPSLOCK and KP_* keys support for windows targets 2000-05-22 07:59:30 +00:00
vid_null.c pretty much finishes source/* 2000-05-22 07:46:47 +00:00
vid_svgalib.c bring across the VID and IN modules for svga, x11 and glx from OT. 2000-05-23 06:36:33 +00:00
vid_wgl.c This is a NON-TRIVIAL update which took LordHavoc and I about 3 days to 2000-06-03 19:56:09 +00:00
vid_x11.c +set_vidfullscreen is 95% working for -x11 and -glx. only remaining known problem is mouse grabbing. 2000-05-23 07:33:03 +00:00
wad.c port in some improvements from OT (namely fs_basepath, etc, though commandline parsing isn't finished yet) 2000-05-21 08:24:45 +00:00
world.c Reapply changes - this time tested w/ svga under Linux 2000-05-26 03:55:27 +00:00
worlda.S revert lsh's checkins. They broke newtree for everybody but him. 2000-05-25 09:48:21 +00:00
zone.c port in some improvements from OT (namely fs_basepath, etc, though commandline parsing isn't finished yet) 2000-05-21 08:24:45 +00:00