havoc [Mon, 30 Sep 2002 03:37:53 +0000 (03:37 +0000)]
fix changelevel, and simplify restart code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2481
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 30 Sep 2002 02:34:37 +0000 (02:34 +0000)]
fix view blends
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2480
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 30 Sep 2002 02:19:36 +0000 (02:19 +0000)]
newline to keep gcc3 happy
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2479
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 30 Sep 2002 02:07:32 +0000 (02:07 +0000)]
forgot to commit this
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2478
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 30 Sep 2002 01:57:43 +0000 (01:57 +0000)]
new experimental shadow volumes, try r_shadows 2 to see the shadow volumes cast by dlights
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2477
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 30 Sep 2002 01:09:13 +0000 (01:09 +0000)]
added radius and radius2 (squared radius) fields to model structure
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2476
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 30 Sep 2002 01:05:10 +0000 (01:05 +0000)]
ent field added back to dlight structures
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2475
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 30 Sep 2002 01:00:31 +0000 (01:00 +0000)]
now uses more smoke particles for gunshots, looks better
more WORKINGLQUAKE stuff
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2474
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 30 Sep 2002 00:55:17 +0000 (00:55 +0000)]
added -gl_driver commandline option, and cleaned up some glX init stuff a bit
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2473
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 29 Sep 2002 02:06:55 +0000 (02:06 +0000)]
fix DrawQ_Fill rendering (Pic with no string)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2469
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 28 Sep 2002 23:59:46 +0000 (23:59 +0000)]
fixed vid_restart
now destroys the window (did not before)
fixed stupid behavior in MainWndProc handling of WM_DESTROY (it's no longer caught)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2468
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 28 Sep 2002 12:41:50 +0000 (12:41 +0000)]
needed one more prototype
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2467
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 28 Sep 2002 12:34:15 +0000 (12:34 +0000)]
trying to fix many forward references in input code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2466
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 28 Sep 2002 10:54:36 +0000 (10:54 +0000)]
major speedup to alias model fake shadow rendering
now traces in direction of light instead of straight down, this causes a shadow to be cast on a wall in some cases (desirable)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2465
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 28 Sep 2002 10:50:34 +0000 (10:50 +0000)]
disabled smoke from explosions, it was a minor effect and used too much fillrate
added fractalnoise to the WORKINGLQUAKE section at the top, and fixed an oldtime reference in WORKINGLQUAKE code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2464
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 28 Sep 2002 10:23:16 +0000 (10:23 +0000)]
fix restart command (can't do the "connect local" for a restart)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2463
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 28 Sep 2002 05:35:21 +0000 (05:35 +0000)]
map and load commands are now delayed until the video system is started, this fixes crashs caused by the video system starting after the configs are read
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2457
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 28 Sep 2002 04:44:44 +0000 (04:44 +0000)]
2D is now drawn using R_Mesh system
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2456
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 28 Sep 2002 04:43:45 +0000 (04:43 +0000)]
fixed glOrtho call
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2455
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 28 Sep 2002 04:42:02 +0000 (04:42 +0000)]
added sparks and smoke to explosions
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2454
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 27 Sep 2002 12:02:23 +0000 (12:02 +0000)]
CL_TraceLine can now return what entity was hit (this isn't actually used, and accounts for most of the changed files)
r_shadows returns, currently only supported on alias models (they are the only ones with a DrawFakeShadow function)
added Matrix4x4_Transform3x3
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2453
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 27 Sep 2002 07:30:05 +0000 (07:30 +0000)]
stencil is now supported (optional, off by default, use vid_stencil to enable)
vid_ cvars are updated when VID_Mode succeeds
GL stencil functions enabled
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2452
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 27 Sep 2002 05:49:29 +0000 (05:49 +0000)]
alias mdl/md2 models now have a mdlmd2data_triangleneighbors array
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2451
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 27 Sep 2002 05:23:34 +0000 (05:23 +0000)]
added Mod_FindTriangleWithEdge and Mod_BuildTriangleNeighbors functions (not used by anything)
added Mod_LoadModels function, which is called when renderer is restarted or "modelflush" is used, it reloads all models that are used
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2450
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 27 Sep 2002 05:06:51 +0000 (05:06 +0000)]
added newline to end of Draw_CachePic error message
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2449
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Thu, 26 Sep 2002 07:28:53 +0000 (07:28 +0000)]
Updated Transfusion map list
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2447
d7cf8633-e32d-0410-b094-
e92efae38249
molivier [Thu, 26 Sep 2002 07:20:59 +0000 (07:20 +0000)]
The call to alloca has been removed. This function has a quite bad reputation and MinGW didn't want it anyway.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2446
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 26 Sep 2002 02:55:14 +0000 (02:55 +0000)]
increased maximum stack depth
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2445
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 26 Sep 2002 02:38:38 +0000 (02:38 +0000)]
limit entity movement lerp to 10th of a second
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2444
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 26 Sep 2002 01:45:12 +0000 (01:45 +0000)]
fix for repeated mode switchs losing keyboard/mouse focus
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2443
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 26 Sep 2002 01:24:41 +0000 (01:24 +0000)]
this commit adds video mode switching, and preferred mode is saved to config, no more need for -window/-width/-height/-bpp (they still work)
IN_Init and IN_Shutdown code has been merged into VID_InitMode and VID_Shutdown code in each of the video systems
VID_InitCvars renamed to VID_Shared_Init
VID_Open and VID_Close functions added in vid_shared, Host_Init now calls VID_Open
S_Open/Close and CDAudio_Open/Close added (none of these do anything yet)
VID_Open and VID_Close call R_Modules_Start, S_Open, and CDAudio_Open and their corresponding Close functions
VID_Restart_f added (vid_restart command)
vid_hidden now starts true (to avoid any refreshs until video is started)
vid_fullscreen/width/height/bitsperpixel are now saved to config
VID_Open is called after configs are parsed
Render_Init now longer starts/stops modules
IN_MouseEvent in vid_wgl.c no longer clamps pitch (since that's done by IN_PostMove)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2442
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 25 Sep 2002 02:38:01 +0000 (02:38 +0000)]
added -gl_driver commandline option, it's useless though (crashs when I try it on my voodoo2)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2441
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 24 Sep 2002 22:17:31 +0000 (22:17 +0000)]
fix warnings
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2437
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 24 Sep 2002 22:11:44 +0000 (22:11 +0000)]
fix some prototype warnings
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2436
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 24 Sep 2002 22:11:08 +0000 (22:11 +0000)]
update file list
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2435
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 24 Sep 2002 22:10:21 +0000 (22:10 +0000)]
fix a warning on argv
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2434
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 24 Sep 2002 22:09:40 +0000 (22:09 +0000)]
remove an unused extension function list
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2433
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 24 Sep 2002 12:16:28 +0000 (12:16 +0000)]
Thanks to Elric for adding dpmaster support!
slist command renamed to net_slist, net_inetslist command added
"heartbeat" command notifies master server(s) of your server's presence (this is automatic, but you can force a heartbeat)
sv_master1 through sv_master4 cvars contain master server addresses, they all default to "" (none), this may change if someone hosts a darkplaces master server and wants it added to the defaults... (note: these cvars ARE saved to config)
com_modname contains the currently running mod directory name (for example id1, darkplaces, transfusion, etc)
some Con_DPrintf's have been added to the server query code, so if you want to know if people are checking out your server, it should tell you about it now (I think?)
some Con_DPrintf's exist in the inetslist code so you can watch the packet flow
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2432
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 24 Sep 2002 08:38:27 +0000 (08:38 +0000)]
whitespace changes by Elric
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2428
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 24 Sep 2002 07:42:04 +0000 (07:42 +0000)]
static crosshair is now drawn during sbar stage (where it should be), fixes the bug where it appeared infront of the menus
world crosshair size is now constant on the screen
rearranged code greatly
it just works better, ok?
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2427
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 24 Sep 2002 07:05:13 +0000 (07:05 +0000)]
now pretends gfx.wad pics are in the gfx/ directory, this changes the override path for gfx.wad pics (statusbar images in other words) to be for example gfx/blah.tga, however the old override path (no prepended gfx/) is still supported for compatibility with previous versions (mainly just for sake of conchars and conback)
Sbar_Init now called from Render_Init instead of Host_Init (it was being called before the texture system was started...)
Sbar_Init now registers an sbar module, with corresponding start/shutdown/newmap functions, so when the renderer is restarted, the pics are precached again
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2426
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 24 Sep 2002 06:59:49 +0000 (06:59 +0000)]
fixed.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2425
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 23 Sep 2002 06:13:17 +0000 (06:13 +0000)]
default to 640x480x16 again, just for consistency with other engines
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2424
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 23 Sep 2002 05:59:01 +0000 (05:59 +0000)]
wglGetExtensionsString is properly detected now (was checking for an extension string, but none is present outside the wgl extensions list, which is a chicken and egg problem, now just checks if the function exists, like the spec says to do)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2423
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 23 Sep 2002 05:56:04 +0000 (05:56 +0000)]
VID_CompareMode removed
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2422
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 23 Sep 2002 04:37:33 +0000 (04:37 +0000)]
almost completely rewrote vid_wgl's mode code, there is no modelist of any kind anymore
vid_wgl works again
VID_Init renamed to VID_InitMode, it returns false if it was unsuccessful
VID_Mode added, which prints mode change message to console and passes on to VID_InitMode
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2421
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 23 Sep 2002 04:24:51 +0000 (04:24 +0000)]
now uses VID_Shutdown instead of VID_SetDefaultMode (which hardly does anything in vid_wgl anyway)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2420
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 23 Sep 2002 04:20:04 +0000 (04:20 +0000)]
no need to include winquake.h
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2419
d7cf8633-e32d-0410-b094-
e92efae38249
eviltypeguy [Mon, 23 Sep 2002 02:02:33 +0000 (02:02 +0000)]
Make formatting sane
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2418
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 22 Sep 2002 00:29:49 +0000 (00:29 +0000)]
fixed crash on startup and shutdown
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2414
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 22 Sep 2002 00:19:43 +0000 (00:19 +0000)]
VID_Init now takes an int bpp parameter
finished some work on the wgl VID_Init code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2413
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 22 Sep 2002 00:17:46 +0000 (00:17 +0000)]
const.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2412
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 22 Sep 2002 00:16:50 +0000 (00:16 +0000)]
Mem_Free on a const pointer apparently irritates MSVC but not gcc... hush MSVC
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2411
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 21 Sep 2002 23:18:41 +0000 (23:18 +0000)]
DOS line endings
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2410
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 20 Sep 2002 05:29:09 +0000 (05:29 +0000)]
fix for glowing invisible models showing up (artifact items staying visible after pickup in darkplaces mod - the glow still stays though)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2397
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 19 Sep 2002 23:51:53 +0000 (23:51 +0000)]
fix for beams coming from invisible objects
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2396
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 19 Sep 2002 18:01:45 +0000 (18:01 +0000)]
shuffled cl_light and some of cl_tent into cl_main and remaining cl_tent code into cl_parse
got rid of bitprofile console command because it only worked for old protocol (probably should add it back for new protocol though)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2392
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 18 Sep 2002 05:02:10 +0000 (05:02 +0000)]
disable profiling by default
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2391
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 18 Sep 2002 04:57:21 +0000 (04:57 +0000)]
move CL_RelinkBeams after CL_RelinkNetworkEntities so position is up to date
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2390
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 18 Sep 2002 04:51:59 +0000 (04:51 +0000)]
make lightning come from player's gun
fix lightning visibility (wasn't calculating bounding box before)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2389
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 18 Sep 2002 03:50:21 +0000 (03:50 +0000)]
matchpattern can now be case insensitive if desired
pak filename matching is now case insensitive
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2388
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 17 Sep 2002 23:23:45 +0000 (23:23 +0000)]
you can now build a darkplaces-dedicated executable as well as a darkplaces-glx executable (and infact this is done automatically :)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2387
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 17 Sep 2002 21:47:10 +0000 (21:47 +0000)]
sparks and rain are now beam particles
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2386
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 17 Sep 2002 21:27:46 +0000 (21:27 +0000)]
added R_CalcBeamVerts function, calculates vertex array for beam polygon
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2385
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 17 Sep 2002 21:25:51 +0000 (21:25 +0000)]
colors for DrawQ_Mesh are now float rather than byte, and vertices are padded to 4 floats per vertex
R_DrawQueue conversion to R_Mesh is getting closer to done
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2384
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 17 Sep 2002 01:40:59 +0000 (01:40 +0000)]
m.wantoverbright is gone
done manually by the few things that wanted it (tweaking the texrgbscale in other words, and their own local colorscale variables)
mesh_colorscale renamed to r_colorscale, and now available throughout rendering (no need to wait for the results of R_Mesh_State before scaling your colors)
lightscalebit renamed to r_lightmapscalebit
lightscale is gone (wasn't used)
msurface_t cached_lightscalebit renamed accordingly to cached_lightmapscalebit
starting work on converting the 2D system to use R_Mesh calls
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2383
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 15 Sep 2002 20:13:59 +0000 (20:13 +0000)]
integer dlight code is now 32bit (instead of 64bit)
stain creation code is now floating point
stain creation code is now linear falloff instead of 1/(x*x), to make stains more consistent with respect to radius (their center density is exactly known)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2379
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 14 Sep 2002 00:25:02 +0000 (00:25 +0000)]
enlarge bbox for visibility purposes if there is a glow or other such effect
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2378
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 13 Sep 2002 04:03:54 +0000 (04:03 +0000)]
GL_SetupView_* functions added, they replace most of R_Mesh_Start's functionality (it still exists and does the remaining things), GL_SetupView_* functions should be used for setting up a view (obviously) for rendering, view orientation and perspective and all that...
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2376
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 13 Sep 2002 03:33:36 +0000 (03:33 +0000)]
unused variable arraylocked removed
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2375
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 12 Sep 2002 22:31:18 +0000 (22:31 +0000)]
got rid of gl_mesh_drawmode, now only gl_mesh_drawrangeelements remains, this got rid of support for non-vertex-array rendering, also now c_meshs and c_meshtris are counted by GL_DrawRangeElements (c_meshtris was renamed to c_meshelements)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2373
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 12 Sep 2002 16:07:13 +0000 (16:07 +0000)]
varray_element is gone, instead you pass your own element array to R_Mesh_Draw
this got a 3.5% speed gain in cavetest2bench
also, R_Mesh_ResizeCheck now takes only a numverts parameter, since numtriangles was only used for the varray_element array
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2372
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 12 Sep 2002 14:55:25 +0000 (14:55 +0000)]
manually inlined GL_LockArray and GL_UnlockArray in the only places they were used
RGB fragment textures are no longer aligned on 3 pixel boundaries, changed UNPACK_ALIGNMENT to allow this
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2371
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 12 Sep 2002 12:20:01 +0000 (12:20 +0000)]
added pr_traceqc cvar, to enable serious spew (printing every opcode executed to console) for extreme debugging
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2365
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 12 Sep 2002 12:15:34 +0000 (12:15 +0000)]
a little extra error checking in keynum lookup
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2364
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 11 Sep 2002 15:05:44 +0000 (15:05 +0000)]
VID_Init now takes mode settings (fullscreen, width, height)
commandline options like -window and -width are now parsed by vid_shared code
vid_width, vid_height, and vid_bitsperpixel cvars added, vid_mode removed
VID_CompareMode added, for simpler mode matching (returns a double, smaller value is better match)
GL_OpenLibrary takes a library name to load
GL_OpenLibrary, GL_CloseLibrary, and GL_GetProcAddress have been moved to platform specific vid_ files (wgl and glx)
gl_platform added (example values: "WGL", "GLX")
gl_platformextensions added (containing any extensions reported by platform specific strings)
gl_checkextension renamed to GL_CheckExtension for consistency
glXQueryExtensionsString and glXGetProcAddressARB support
looks up GLX_SGI_video_sync extension
removed halfscreen hack from vid_wgl (the code that tried to identify dual monitor configurations and use only one of them)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2363
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 11 Sep 2002 14:55:46 +0000 (14:55 +0000)]
whitespace
lots of things are now const pointers
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2362
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 11 Sep 2002 14:12:30 +0000 (14:12 +0000)]
check for -safe
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2361
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 11 Sep 2002 13:59:53 +0000 (13:59 +0000)]
R_SetSkyBox now takes a const char *
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2360
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 11 Sep 2002 13:57:54 +0000 (13:57 +0000)]
whitespace
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2359
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 11 Sep 2002 13:54:36 +0000 (13:54 +0000)]
check for -safe
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2358
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 11 Sep 2002 13:49:07 +0000 (13:49 +0000)]
whitespace
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2357
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 11 Sep 2002 13:48:31 +0000 (13:48 +0000)]
check for -safe
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2356
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 11 Sep 2002 04:03:27 +0000 (04:03 +0000)]
BoxOnPlaneSideFunc code - gone, replaced by BoxOnPlaneSide
BOX_ON_PLANE_SIDE macro - gone, no replacement necessary (use BoxOnPlaneSide)
R_CullBox and R_CulledBox macros have been replaced by optimized functions
this gets a minor speed gain overall
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2355
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 11 Sep 2002 01:19:39 +0000 (01:19 +0000)]
major speed gain in cavetest2 by checking if the portal is facing the wrong way
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2354
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 11 Sep 2002 00:15:23 +0000 (00:15 +0000)]
memheaders are now doubly linked, so Mem_Free goes faster than it used to
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2353
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 10 Sep 2002 23:04:07 +0000 (23:04 +0000)]
corrected an error message in .lights code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2352
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 10 Sep 2002 22:47:05 +0000 (22:47 +0000)]
no need to update lightmaps if using r_vertexsurfaces
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2351
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 10 Sep 2002 22:27:59 +0000 (22:27 +0000)]
optimizing R_DrawSurfaces and WorldNode functions
visframe and pvsframe are now arrays rather than part of the surface struct, resulting in less cache misses
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2350
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 10 Sep 2002 17:17:18 +0000 (17:17 +0000)]
enable optimizations again (oops)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2349
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 10 Sep 2002 17:12:15 +0000 (17:12 +0000)]
surfaces are now texture sorted rather than shader sorted, OpaqueWall renderers have been reorganized to minimize state checks, which offers a minor speedup
r_vertexsurfacesthreshold is gone, no longer supported...
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2348
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 10 Sep 2002 16:54:12 +0000 (16:54 +0000)]
fixed combine overbright behavior
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2347
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 9 Sep 2002 15:58:36 +0000 (15:58 +0000)]
expanded console buffer from 16k to 128k, and changed scroll amount to be dependent on visible console height (scrolls half the visible area instead of just 2 lines)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2346
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 9 Sep 2002 15:31:26 +0000 (15:31 +0000)]
fixed typo
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2345
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 9 Sep 2002 15:30:16 +0000 (15:30 +0000)]
svs.clients is now allocated dynamically according to svs.maxclients, and there is now a function for updating svs.maxclients called SV_SetMaxClients
this cuts the memory usage in singleplayer by 17mb
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2344
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 9 Sep 2002 14:30:09 +0000 (14:30 +0000)]
removed modelsortedsurfaces
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2343
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 6 Sep 2002 16:51:51 +0000 (16:51 +0000)]
mempools now have sentinel checks, for completeness
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2342
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 6 Sep 2002 12:05:29 +0000 (12:05 +0000)]
whitespace cleanup
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2341
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 6 Sep 2002 11:48:47 +0000 (11:48 +0000)]
transform matrix is now separate from R_Mesh_State, a new function called R_Mesh_Matrix takes up the task of changing transforms, and is used a lot less frequently in the engine than R_Mesh_State, this gets a nice speed gain in cavetest2
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2340
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 6 Sep 2002 09:45:51 +0000 (09:45 +0000)]
now uses hardware transforms
fixed a bunch of bugs in matrixlib
view matrix is now calculated using Matrix4x4 functions instead of GL calls
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2339
d7cf8633-e32d-0410-b094-
e92efae38249