havoc [Thu, 15 Mar 2007 08:34:05 +0000 (08:34 +0000)]
made cl_bob 0 also disable cl_bobmodel
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6974
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 15 Mar 2007 08:28:10 +0000 (08:28 +0000)]
changed default value of con_closeontoggleconsole due to a never ending stream of complaints about the ~ key not closing the console
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6973
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 15 Mar 2007 08:10:30 +0000 (08:10 +0000)]
set pmodel/emodel keys in userinfo for qw servers
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6972
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 14 Mar 2007 10:33:43 +0000 (10:33 +0000)]
add apple_multithreadedgl cvar (offloads OpenGL driver to a second thread if possible), off by default (may change to on if I get feedback from testers)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6971
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 14 Mar 2007 08:48:51 +0000 (08:48 +0000)]
added cl_particles_rain and cl_particles_snow cvars to allow disabling of these types of particles, based on a patch from esteel
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6970
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 14 Mar 2007 08:48:00 +0000 (08:48 +0000)]
added a missing return statement in the 'any-dimension' bspline example code (which is in a comment so this has no effect on code)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6969
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 14 Mar 2007 03:09:29 +0000 (03:09 +0000)]
fix bug where transparent models used an out of date material (generated earlier in the same frame), which caused problems when multiple instances of the same model exist in the same frame and one or more of them are transparent
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6968
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 14 Mar 2007 02:08:28 +0000 (02:08 +0000)]
loc file parsing now supports whitespace following commas (I did not previously have such a test file)
now rejects malformed proquake-format loc file lines that do not have a quoted string directly after the 6 numbers
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6967
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 12 Mar 2007 12:30:57 +0000 (12:30 +0000)]
removed duplicate entries in the cvar list
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6966
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 12 Mar 2007 12:28:00 +0000 (12:28 +0000)]
removed "Future supported games" section as it really serves no purpose
sorted cvar list
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6965
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 12 Mar 2007 11:39:11 +0000 (11:39 +0000)]
442
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6964
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 12 Mar 2007 11:29:40 +0000 (11:29 +0000)]
446
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6963
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 12 Mar 2007 11:29:20 +0000 (11:29 +0000)]
updated readme
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6962
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 12 Mar 2007 06:21:21 +0000 (06:21 +0000)]
multiline cvar_t descriptions cause problems when building the readme
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6961
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 12 Mar 2007 05:58:29 +0000 (05:58 +0000)]
removed trailing comments on cvar declarations and Cmd_AddCommand calls
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6960
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 12 Mar 2007 05:44:45 +0000 (05:44 +0000)]
corrected some comments
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6959
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 12 Mar 2007 05:31:02 +0000 (05:31 +0000)]
removed -demolooponly commandline option as it did precisely the same thing as -demo, and I don't feel like implementing the feature its name implies
corrected a mention of host_maxfps to cl_maxfps in host_framerate cvar description
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6958
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 12 Mar 2007 05:26:59 +0000 (05:26 +0000)]
added vid_grabkeyboard cvar which defaults to 0, this means that the glx client no longer locks out window manager hotkeys (such as volume control and music player control keys, as well as alt-tab)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6957
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 12 Mar 2007 04:18:32 +0000 (04:18 +0000)]
implemented proper handling of .frame2/.lerpfrac/.frame1time/.frame2time fields in csqc entities
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6956
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 12 Mar 2007 02:33:27 +0000 (02:33 +0000)]
added support for locs/something.loc naming in loc file loading code, for proquake filename compatibility
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6955
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Mon, 12 Mar 2007 02:28:15 +0000 (02:28 +0000)]
disable interpolation of predicted movement locations when a teleport occurred (just like unpredicted movement is not interpolated in this case)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6954
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 11 Mar 2007 23:56:44 +0000 (23:56 +0000)]
don't abort a download if a level change occurs during the download, instead just wait for it to finish before signing in to the new level
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6953
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 11 Mar 2007 23:54:14 +0000 (23:54 +0000)]
make gamedir command work on dedicated servers
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6952
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 11 Mar 2007 23:53:31 +0000 (23:53 +0000)]
increased minimum developer cvar level for several spammy messages (new engine string, sample frames missing) from 100 to 200, to make 100 more usable
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6951
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 11 Mar 2007 07:41:47 +0000 (07:41 +0000)]
implemented .loc file support, including some editing (add command, and removenearest command) and viewing capability (r_speeds now shows the current location name, and locs_show 1 displays the actual boxes/points as translucent boxes)
implemented proquake message macros (%l, %d, %h, %a, etc), can be disabled by locs_enable 0
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6950
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sun, 11 Mar 2007 03:34:50 +0000 (03:34 +0000)]
changed brightness of unlit q1bsp maps from 2x white to 1x white (so textures show as their true colors rather than twice as bright)
fixed bug that made models black in unlit q1bsp maps
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6949
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 9 Mar 2007 10:41:10 +0000 (10:41 +0000)]
fix incorrect parameter count check on setspawnparms, this was causing coop servers to suddenly quit when someone respawned
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6948
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 9 Mar 2007 02:39:07 +0000 (02:39 +0000)]
removed master 12.166.196.192 (run by Venim) because it hasn't been responding for a long time
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6947
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 9 Mar 2007 00:13:19 +0000 (00:13 +0000)]
added cl_dlights_decayradius and cl_dlights_decaybrightness cvars, both default on, this brings back the quake-style radius decay, and keeps the more recently added brightness decay, benchmarks suffered when radius decay was removed, so its return should restore any losses associated with that
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6946
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 8 Mar 2007 23:50:28 +0000 (23:50 +0000)]
implemented shadow caster culling by creating a frustum plane set that includes the light origin, any object that is not within this frustum (which encloses the screen and a triangular-shaped volume extending to the light origin) can not possibly cast a shadow onto the visible geometry, this reduces cpu work in a few cases (off-screen explosion with several entities further off-screen)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6945
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 8 Mar 2007 23:39:14 +0000 (23:39 +0000)]
fixed bug in portal culling code that allowed a leaf to be revisited multiple times, causing it to be counted multiple times, and wasting a small amount of time marking surfaces redundantly
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6944
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 8 Mar 2007 23:36:23 +0000 (23:36 +0000)]
reworked prediction code to work better when riding lifts
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6943
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 8 Mar 2007 23:33:57 +0000 (23:33 +0000)]
refactored csqc entity sending code so that it properly obeys msg->maxsize, undoing writes that could not fit
added comment about how csqc entity sending code needs some changes to avoid packet loss problems
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6942
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 8 Mar 2007 23:32:45 +0000 (23:32 +0000)]
added a few more Vector4 macros
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6941
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 3 Mar 2007 22:06:57 +0000 (22:06 +0000)]
changed entity networking prioritization code to use the center of the model rather than the origin, this fixes prioritization of doors and lifts which typically have their origin near '0 0 0' rather than inside the entity box
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6940
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 3 Mar 2007 21:59:03 +0000 (21:59 +0000)]
fix weapon jitters when walking up ramps, and prediction failures when doing rampjumps, unfortunately this also ends up predicting quake2-style double jumps (which do not occur on the server)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6939
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 3 Mar 2007 17:47:15 +0000 (17:47 +0000)]
patch from div0 fixing his previous patch that he told me had prediction visibility tests but actually lacked it
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6938
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 3 Mar 2007 01:49:43 +0000 (01:49 +0000)]
quick hack to get rid of twitchy onground state in prediction when running up ramps, this really needs a better fix sometime
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6937
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 3 Mar 2007 01:37:22 +0000 (01:37 +0000)]
fixed bug that was causing prediction to fail periodically in singleplayer games, especially with cl_maxfps 125 (negative packet times were causing sv_clmovement_minping 0 tests to pass occasionally, disabling prediction, and causing a major stall in input handling)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6936
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 3 Mar 2007 00:57:01 +0000 (00:57 +0000)]
server now executes predicted moves of more than 50ms as two separate moves like QWSV does (the client prediction expects this)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6935
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 3 Mar 2007 00:51:48 +0000 (00:51 +0000)]
minor cleanup of CL_SendMove comments regarding packet timing
changed predicted move sending code to not care about the value of cls.signon
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6934
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 2 Mar 2007 22:37:36 +0000 (22:37 +0000)]
changed sendcvar command to send a reply (with no value parameter) if the cvar does not exist
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6933
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 2 Mar 2007 22:23:08 +0000 (22:23 +0000)]
reworked cvar checks in VID_UpdateGamma to simply set gamma_forcenextframe if they have changed, this is somewhat in preparation for eventual use of cvar callbacks
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6932
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 2 Mar 2007 15:33:59 +0000 (15:33 +0000)]
less hacky solution to resetting movesequence on a level change
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6931
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 2 Mar 2007 13:05:39 +0000 (13:05 +0000)]
fix really stupid bug introduced in sv_user.c revision 1.83 (sv_waterfriction was being used, even if it's -1 which means use sv_friction instead), now properly uses sv_friction if sv_waterfriction < 0
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6930
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 1 Mar 2007 23:11:26 +0000 (23:11 +0000)]
fixed problems with playing on QW server caused by the use of _cl_name and similar config variables
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6929
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 1 Mar 2007 21:36:55 +0000 (21:36 +0000)]
fix bug where only the first portal to see a surface was able to mark triangles as worth of receiving light
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6928
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 1 Mar 2007 20:07:20 +0000 (20:07 +0000)]
implemented r_shadow_culltriangles cvar (on by default), this improves lighting performance by reducing the amount of geometry to render, it does not add any additional cpu w
ork because similar forms of culling were already used on shadow casting triangles (which are now replaced by this), this just applies the same already computed culling to the lighting as well as the shadowing
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6927
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 1 Mar 2007 18:49:26 +0000 (18:49 +0000)]
fix bug that was causing r_editlights light indicators to not render
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6926
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 28 Feb 2007 16:49:54 +0000 (16:49 +0000)]
remove stray \n characters in Cmd_AddCommand calls
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6925
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 28 Feb 2007 11:08:30 +0000 (11:08 +0000)]
eliminated RENDER_NOCULLFACE (now uses MATERIALFLAG_NOCULLFACE on a texture)
eliminated RENDER_TRANSPARENT (it was only used by the client code briefly, it did not need to be stored, it only turned off RENDER_SHADOW)
added TriangleOverlapsBox macro (and changed several pieces of code to use it)
changed some code to use the BoxInsideBox macro
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6924
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 28 Feb 2007 09:50:36 +0000 (09:50 +0000)]
improved detection of q3 terrain blend shaders to reduce chances of a misidentification
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6923
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 28 Feb 2007 09:35:29 +0000 (09:35 +0000)]
remove an unused extern
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6922
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 28 Feb 2007 09:34:34 +0000 (09:34 +0000)]
fix a cvar name
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6921
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 27 Feb 2007 21:15:48 +0000 (21:15 +0000)]
fix missing { character
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6920
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 27 Feb 2007 19:24:48 +0000 (19:24 +0000)]
use CVAR_SAVE not 1 for flags on curl cvars
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6919
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 24 Feb 2007 10:05:38 +0000 (10:05 +0000)]
allow 0 parameters in VM_SV_makestatic due to a bug in id1 qc
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6918
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 24 Feb 2007 07:12:56 +0000 (07:12 +0000)]
added optimized case in R_Q1BSP_GetLightInfo surface culling that skips checking individual triangle bounding boxes if the entire surface is inside the light bounding box (as is often the case)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6917
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Sat, 24 Feb 2007 07:09:31 +0000 (07:09 +0000)]
optimized entity culling loop for shadow casting entities that are not directly seen
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6916
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 15:31:06 +0000 (15:31 +0000)]
added BoxInsideBox macro
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6915
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 13:49:12 +0000 (13:49 +0000)]
minor optimization of R_Q1BSP_RecursiveLightInfo
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6914
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 13:48:42 +0000 (13:48 +0000)]
minor optimization
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6913
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 13:09:11 +0000 (13:09 +0000)]
forgot to re-sort the todo
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6912
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 13:07:36 +0000 (13:07 +0000)]
audited R_Mesh_Matrix calls and RSurf_ActiveEntity calls and moved them to more appropriate locations in some cases
split R_DrawSurfaces into R_DrawWorldSurfaces and R_DrawModelSurfaces to make profile reports more useful
split RSurf_ActiveEntity into RSurf_ActiveWorldEntity and RSurf_ActiveModelEntity to make profile reports more useful, and very slightly improve performance
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6911
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 12:53:07 +0000 (12:53 +0000)]
remove ; that was causing crashes/breakage
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6910
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 12:47:02 +0000 (12:47 +0000)]
remove unused variables
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6909
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 12:45:35 +0000 (12:45 +0000)]
fixed bug that caused the wrong texture to be used on rtlight lighting when two or more textures were involved in a single batch
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6908
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 12:05:14 +0000 (12:05 +0000)]
small cleanup of R_DrawSurfaces (separated r_showcollisionbrushes and r_showtris/r_shownormals code into functions)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6907
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 11:43:03 +0000 (11:43 +0000)]
split model_brushq3_t num_lightmaps field into num_originallightmaps (for lightmapindex checking) and num_mergedlightmaps (for loops), this fixes lightmap indexing errors on deluxemapped maps
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6906
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 10:46:00 +0000 (10:46 +0000)]
patch from div0 that makes curl downloads stay connected to the game server while downloading (like the direct downloads)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6905
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 09:36:47 +0000 (09:36 +0000)]
patch from div0 that adds clientside culling of entities by TraceLineOfSight (like sv_cullentities_trace does), and merges the client and server code for this culling, this also adds traces for predicted player movement on the server to reduce the "items popping up" problem when running into a new room
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6904
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 09:19:36 +0000 (09:19 +0000)]
memset arrays before writing skeletal vertices into them (as the code did long ago), this is an 8% improvement in Mod_Alias_GetMesh_Vertices in my benchmarking (7.58 seconds in profile before, 6.95 seconds after)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6903
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 09:02:48 +0000 (09:02 +0000)]
further optimizations to batching code, not much gain if any from these, but it may play nicer with cpu cache
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6902
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Fri, 23 Feb 2007 05:12:05 +0000 (05:12 +0000)]
check __GNUC__ version before defining printf attribute, only define it on gcc 3 and later
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6901
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 15:22:37 +0000 (15:22 +0000)]
changed default mod_q3bsp_lightmapmergepower from 5 (4096x4096) to 4 (2048x2048), this means that the textures won't use more than 16MB each, which is a bit friendlier to 128MB cards than a 64MB texture (note: this is only the upper limit, if the map does not need this much lightmap space it already picks a smaller size)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6900
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 15:17:24 +0000 (15:17 +0000)]
fix dedicated server crashes caused by new lightmap merging
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6899
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 14:37:43 +0000 (14:37 +0000)]
fixed bug that made some models invisible in nexuiz (if they have skin != 0 and skin 0 was never rendered yet on this model, they were using skin 0, which was often uninitialized)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6898
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 11:55:01 +0000 (11:55 +0000)]
disabled collision_enternudge by default again, due to intermittent problems with getting stuck on ramps
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6897
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 11:45:12 +0000 (11:45 +0000)]
changed light attenuation equation in the default.glsl shader in the engine
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6896
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 11:30:29 +0000 (11:30 +0000)]
added r_shadow_lightradiusscale cvar (similar to r_shadow_lightintensityscale)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6895
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 11:29:38 +0000 (11:29 +0000)]
don't compute tangents or normals on non-deluxemapped world surfaces, or tangents on models if the shader does not use normalmapping
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6894
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 11:25:51 +0000 (11:25 +0000)]
really fixed deluxemapping this time
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6893
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 11:19:51 +0000 (11:19 +0000)]
fixed deluxemapping detection bug that made it never work
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6892
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 08:45:28 +0000 (08:45 +0000)]
now merges all q3bsp lightmap textures into one huge lightmap texture if possible, this doubled benchmark framerates for me
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6891
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 08:44:01 +0000 (08:44 +0000)]
added some debugging code to RSurf_DrawBatch_WithLightmapSwitching to print out how many surfaces are rendered in each batch and each subbatch by lightmap (this revealed that q3map2's surface sorting is horrible)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6890
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 04:42:10 +0000 (04:42 +0000)]
split RSurf_DrawBatch_Lightmap function into 4 main functions (previously there were only 3 modes, causing rendering problems) and 2 utility functions, this cleaned up the code somewhat
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6889
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 03:42:25 +0000 (03:42 +0000)]
fix a bug in transparent mesh rendering which often caused crashes
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6888
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 01:13:31 +0000 (01:13 +0000)]
reorganized surface batching to batch visible surfaces first, and then pass them to a function that breaks the list down by texture, also reorganized batching code to use a forward-search approach rather than state machine approach, this got a small (2%) speed gain in benchmarks
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6887
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 00:39:49 +0000 (00:39 +0000)]
some cleanup of GL20 code (removed rsurface_glsl_texture and rsurface_glsl_uselightmaptexture caching, because with the change to not batching by lightmap texture there are no longer redundant batches)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6886
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Thu, 22 Feb 2007 00:34:20 +0000 (00:34 +0000)]
merged some surface rendering setup code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6885
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 21 Feb 2007 11:56:29 +0000 (11:56 +0000)]
default gl_lockarrays to 0, I'm not aware of any cards that actually benefit from it
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6884
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 21 Feb 2007 11:55:37 +0000 (11:55 +0000)]
modified surface renderer batching to batch all lightmapped surfaces with the same texture together, rather than a separate batch for each lightmap texture, this means that the lightmap switching overhead is lower than before, no apparent improvement in benchmarks though
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6883
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 21 Feb 2007 04:38:56 +0000 (04:38 +0000)]
fixed bug that was causing seta commands to usually not save to config.cfg (due to the value being copied to their default when they are created, causing the default matching to prevent them from being saved before)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6882
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Wed, 21 Feb 2007 03:23:13 +0000 (03:23 +0000)]
changed collision nudging to behave like quake2/3, properly handling shallow impacts (not allowing them to go any deeper if they are within epsilon)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6881
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 20 Feb 2007 12:34:38 +0000 (12:34 +0000)]
added model->brush.TraceLineOfSight function, this traces the rendering hull and treats leafs with no pvs as solid (meaning it traces the structural rendering hull in q3bsp, ignoring detail brushes and patches), this function is now used by sv_cullentities_trace for higher performance, and it does not stop at solid transparent surfaces such as the chainlink fences in the nexuiz map toxic.bsp
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6880
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 20 Feb 2007 12:32:03 +0000 (12:32 +0000)]
fix some crashes related to particles when csqc is not active
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6879
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 20 Feb 2007 08:07:48 +0000 (08:07 +0000)]
added mleaf_t->containscollisionsurfaces variable which indicates if the leafsurfaces array contains any q3 patches to collide against, checking this saves a substantial amount of time on collision detection in q3bsp (as few leafs actually contain patches, but many contain other kinds of surfaces)
added combinedsupercontents variable to mnode_t and mleaf_t, this was intended for collision culling but is not actually used (checks are implemented but commented out, because there was no measurable speed increase, and it could cause inconsistent results for startcontents when tracing objects larger than a point test - since point tests are always about contents there is no such culling performed in that case)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6878
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 20 Feb 2007 08:04:28 +0000 (08:04 +0000)]
added scr_refresh cvar which is similar to r_render but disables the entire render code rather than merely disabling the glDraw calls
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6877
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 20 Feb 2007 03:27:08 +0000 (03:27 +0000)]
changed reconnect command description
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6876
d7cf8633-e32d-0410-b094-
e92efae38249
havoc [Tue, 20 Feb 2007 03:25:24 +0000 (03:25 +0000)]
made reconnect command reconnect to the last server you were on, even if it was an nq server (previously this only worked on qw servers)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6875
d7cf8633-e32d-0410-b094-
e92efae38249