Add -brighten arg to GL targets, to replace -gamma but still look nice.
"-brighten 2.5" brightens the palette by 2.5 times, to give a similar
effect to the brightness cvar, but without the dithering brightness
gives. This is a palette hack, which means it _can't_ be a cvar.
code.
Then we have the completely purge of treating 'unsigned' as a type, it
is NOT a type, it is a TYPE MODIFIER!
Under gcc for x86 it happens to try and do something sane, just treat it
as a unsigned int, but that is EVIL, it is a MODIFIER and if ANYONE adds
code which uses unsigned as a type in itself I /WILL/ harm them!!!
#if 0 the signal code. wouldn't compile otherwise, but not game to
nuke it just yet
include/win32/version.h:
buggered if I know. fscking configure/cvs :)
include/glquake.h:
remove size declarations from bubble_sintable and bubble_costable
source/gl_part.c source/gl_rlight.c:
32 segments in a circle now instead of 16 and change the pointer
math to cope
source/gl_warp.c:
nothing much. just almost double my fps. (hint: the above tables)
gl_ztrick - here's the hat, but no rabbit
considering that a buggy driver can make gl_ztrick into a sort of cheat if
you can stand the flicker, it's gone. gl_finish was already a zombie Cvar
so I just removed its definition.
SGIS_multitexture (I assure you, unless you're on IRIX, you don't have
it!) Added a Sbar_Changed () to fix the sbar overbright for a few people
and the very beginnings of ARB_multitexture are now in glquake.h
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.
Some minor changes to DGA code I couldn't be bothered to back out before
I committed. They don't hurt anything, but they don't really improve
matters much either. The mouse cursor still doesn't get warped off the
screen, but it's no longer bright blue - now it's black and white like
normal. I'm rewriting the damned DGA code from scratch to Get It Right
this time.