]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
15 years agonew shader keyword: dp_specularpowermod 2, makes gloss have 2x the usual specular...
divverent [Mon, 5 Oct 2009 07:59:44 +0000 (07:59 +0000)]
new shader keyword: dp_specularpowermod 2, makes gloss have 2x the usual specular power

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9305 d7cf8633-e32d-0410-b094-e92efae38249

15 years ago-added game Blood Omnicide
vortex [Sun, 4 Oct 2009 22:38:47 +0000 (22:38 +0000)]
-added game Blood Omnicide
-added r_shadow_gloss2exponent (gloss exponent for forced gloss surfaces), this don't work for Dot3 pieline however, i'm used this to make "wet surfaces when rain falls" in Blood Omnicide
-added DP_CSQC_ENTITYTRANSPARENTSORTING_OFFSET, DP_CSQC_ENTITYNOCULL, DP_CSQC_SPAWNPARTICLE. Definitions are here: http://darkmaster.quakedev.com/work/csqc_new_ext.qc

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9304 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoalso don't call PostThink on disconnected clients ;)
divverent [Sun, 4 Oct 2009 18:35:00 +0000 (18:35 +0000)]
also don't call PostThink on disconnected clients ;)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9303 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded sv_gameplayfix_consistentplayerprethink which defaults on - this
havoc [Sun, 4 Oct 2009 12:35:50 +0000 (12:35 +0000)]
added sv_gameplayfix_consistentplayerprethink which defaults on - this
cvar causes SV_Physics to call all PlayerPreThink functions, then move
all players, then call PlayerPostThink functions, then move all
entities, to improve consistency of firing/moving in multiplayer
in singleplayer this has no effect at all (because there is only one
client)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9302 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded DP_ENT_GLOWMOD extension, like DP_ENT_COLORMOD but alters glow
havoc [Sun, 4 Oct 2009 11:35:47 +0000 (11:35 +0000)]
added DP_ENT_GLOWMOD extension, like DP_ENT_COLORMOD but alters glow
color (fullbrights or glow texture) instead of diffuse

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9300 d7cf8633-e32d-0410-b094-e92efae38249

15 years agotell QC about pixelheight too
divverent [Sun, 4 Oct 2009 10:12:57 +0000 (10:12 +0000)]
tell QC about pixelheight too

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9299 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged uniform GlowScale to GlowColor
havoc [Sun, 4 Oct 2009 02:59:46 +0000 (02:59 +0000)]
changed uniform GlowScale to GlowColor

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9298 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoduplicated PRVM_ExecuteProgram to become MVM_ExecuteProgram,
havoc [Sun, 4 Oct 2009 02:10:35 +0000 (02:10 +0000)]
duplicated PRVM_ExecuteProgram to become MVM_ExecuteProgram,
CLVM_ExecuteProgram, SVVM_ExecuteProgram - all identical but this
greatly improves profiling reports
split calls to SV_LinkEdict into SV_LinkEdict and
SV_LinkEdict_TouchAreaGrid because the SV_LinkEdict profile report
looked nasty but it was only SV_LinkEdict_TouchAreaGrid to blame

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9297 d7cf8633-e32d-0410-b094-e92efae38249

15 years agouse one markframe variable
havoc [Sun, 4 Oct 2009 02:07:05 +0000 (02:07 +0000)]
use one markframe variable

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9296 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoaudited trace.endpos code
havoc [Sun, 4 Oct 2009 00:32:47 +0000 (00:32 +0000)]
audited trace.endpos code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9295 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix another case of Trace.endpos being set too early
havoc [Sun, 4 Oct 2009 00:31:48 +0000 (00:31 +0000)]
fix another case of Trace.endpos being set too early

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9294 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix bug in last patch - must set trace.endpos AFTER calling TracePoint
havoc [Sun, 4 Oct 2009 00:31:17 +0000 (00:31 +0000)]
fix bug in last patch - must set trace.endpos AFTER calling TracePoint
function, because it memsets the trace

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9293 d7cf8633-e32d-0410-b094-e92efae38249

15 years agosplit CL_Move into CL_TracePoint, CL_TraceLine, CL_TraceBox and similar
havoc [Sat, 3 Oct 2009 22:53:55 +0000 (22:53 +0000)]
split CL_Move into CL_TracePoint, CL_TraceLine, CL_TraceBox and similar
for SV_Move
split code paths for tracing lines and points out from box code
this is for better profiling reports because single statistics for Box,
Line and Point traces are unfair to the performance of line and point
traces

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9292 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded r_renderview cvar (similar to scr_refresh but disables only 3D
havoc [Sat, 3 Oct 2009 22:47:13 +0000 (22:47 +0000)]
added r_renderview cvar (similar to scr_refresh but disables only 3D
renders)
reworked scr_refresh and r_render cvars to only disable certain
rendering operations
changed where Sbar_ShowFPS code is called so that it appears even if
r_letterbox is on, and updates even while scr_refresh is 0

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9291 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix two not freed search handles
divverent [Sat, 3 Oct 2009 17:37:04 +0000 (17:37 +0000)]
fix two not freed search handles

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9290 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoremove now unneeded code
divverent [Sat, 3 Oct 2009 11:44:02 +0000 (11:44 +0000)]
remove now unneeded code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9289 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix connect after getchallenge, rcon, getchallenge sequence
divverent [Sat, 3 Oct 2009 11:37:12 +0000 (11:37 +0000)]
fix connect after getchallenge, rcon, getchallenge sequence

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9288 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix two bugs in srcon/rcon_secure 2. It now WORKS.
divverent [Sat, 3 Oct 2009 11:06:49 +0000 (11:06 +0000)]
fix two bugs in srcon/rcon_secure 2. It now WORKS.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9287 d7cf8633-e32d-0410-b094-e92efae38249

15 years agominor optimization to CL_RelinkLightFlashes
havoc [Sat, 3 Oct 2009 04:07:39 +0000 (04:07 +0000)]
minor optimization to CL_RelinkLightFlashes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9286 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoenable networking clients as legacy even with sv_onlycsqcnetworking
havoc [Sat, 3 Oct 2009 02:09:51 +0000 (02:09 +0000)]
enable networking clients as legacy even with sv_onlycsqcnetworking

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9285 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded cvar sv_onlycsqcnetworking which disables legacy entity
havoc [Sat, 3 Oct 2009 02:01:16 +0000 (02:01 +0000)]
added cvar sv_onlycsqcnetworking which disables legacy entity
networking, improving server performance for games that do not use
legacy entities

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9284 d7cf8633-e32d-0410-b094-e92efae38249

15 years agocompile separate index lists for each cubemap shadowmap side
eihrul [Sat, 3 Oct 2009 01:20:51 +0000 (01:20 +0000)]
compile separate index lists for each cubemap shadowmap side

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9283 d7cf8633-e32d-0410-b094-e92efae38249

15 years agotry making srcon work better with many rcon comamnds queued
divverent [Fri, 2 Oct 2009 10:25:17 +0000 (10:25 +0000)]
try making srcon work better with many rcon comamnds queued

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9282 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoanother fix
havoc [Fri, 2 Oct 2009 09:57:06 +0000 (09:57 +0000)]
another fix

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9281 d7cf8633-e32d-0410-b094-e92efae38249

15 years agopossible bugfix for r_water bugs introduced recently
havoc [Fri, 2 Oct 2009 09:44:41 +0000 (09:44 +0000)]
possible bugfix for r_water bugs introduced recently

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9280 d7cf8633-e32d-0410-b094-e92efae38249

15 years agosorry for this 100% untested change... making srcon use the new challenge-based proto...
divverent [Fri, 2 Oct 2009 09:22:33 +0000 (09:22 +0000)]
sorry for this 100% untested change... making srcon use the new challenge-based protocol (but rcon_secure 1 and rcon still uses the time-based one as that's faster and more reliable).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9279 d7cf8633-e32d-0410-b094-e92efae38249

15 years agorcon_secure: alternative getchallenge-based authentication that doesn't rely on the...
divverent [Fri, 2 Oct 2009 08:19:58 +0000 (08:19 +0000)]
rcon_secure: alternative getchallenge-based authentication that doesn't rely on the system time (server side only at the moment)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9278 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded cvar r_shadow_shadowmapping_precision to control minimum shadowmap depth precision
eihrul [Fri, 2 Oct 2009 04:47:56 +0000 (04:47 +0000)]
added cvar r_shadow_shadowmapping_precision to control minimum shadowmap depth precision

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9277 d7cf8633-e32d-0410-b094-e92efae38249

15 years agostub out face culling for shadowmapping temporarily
eihrul [Fri, 2 Oct 2009 04:13:31 +0000 (04:13 +0000)]
stub out face culling for shadowmapping temporarily

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9276 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoenable backface culling for shadowmap rendering
eihrul [Fri, 2 Oct 2009 02:55:06 +0000 (02:55 +0000)]
enable backface culling for shadowmap rendering

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9275 d7cf8633-e32d-0410-b094-e92efae38249

15 years agouse nearest filtering on VSDCT
eihrul [Thu, 1 Oct 2009 18:32:29 +0000 (18:32 +0000)]
use nearest filtering on VSDCT

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9274 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoavoid unnecessary texture offset scaling in shadowmap lookups
eihrul [Thu, 1 Oct 2009 17:30:00 +0000 (17:30 +0000)]
avoid unnecessary texture offset scaling in shadowmap lookups

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9273 d7cf8633-e32d-0410-b094-e92efae38249

15 years agobetter VSDCT transform
eihrul [Thu, 1 Oct 2009 16:09:44 +0000 (16:09 +0000)]
better VSDCT transform

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9272 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoGLSL compiler variable declaration workaround
eihrul [Thu, 1 Oct 2009 06:31:41 +0000 (06:31 +0000)]
GLSL compiler variable declaration workaround

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9271 d7cf8633-e32d-0410-b094-e92efae38249

15 years agodefault to using texture rectangle shadowmaps when available
eihrul [Thu, 1 Oct 2009 06:08:31 +0000 (06:08 +0000)]
default to using texture rectangle shadowmaps when available

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9270 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoautomagically select best shadowmapping filter mode depending on hardware
eihrul [Thu, 1 Oct 2009 05:43:23 +0000 (05:43 +0000)]
automagically select best shadowmapping filter mode depending on hardware

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9269 d7cf8633-e32d-0410-b094-e92efae38249

15 years agouse 4 periods in ALSA instead of 2 for lower latency if possible
havoc [Thu, 1 Oct 2009 03:05:06 +0000 (03:05 +0000)]
use 4 periods in ALSA instead of 2 for lower latency if possible
request a power of 2 buffer size in ALSA (maybe better compatibility)
thanks to Diablo-D3 for a patch I based this functionality on

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9268 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded a cheaper 3x3 PCF settings for shadowmaps
eihrul [Thu, 1 Oct 2009 02:36:37 +0000 (02:36 +0000)]
added a cheaper 3x3 PCF settings for shadowmaps

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9267 d7cf8633-e32d-0410-b094-e92efae38249

15 years agodepth texture mode fixes
eihrul [Thu, 1 Oct 2009 01:32:42 +0000 (01:32 +0000)]
depth texture mode fixes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9266 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofixed water rendering in shrunken views
havoc [Wed, 30 Sep 2009 19:40:12 +0000 (19:40 +0000)]
fixed water rendering in shrunken views

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9265 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoshadowmap projection fixes
eihrul [Wed, 30 Sep 2009 15:26:55 +0000 (15:26 +0000)]
shadowmap projection fixes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9264 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomake use of virtual shadow depth cube texture optional
eihrul [Wed, 30 Sep 2009 12:49:54 +0000 (12:49 +0000)]
make use of virtual shadow depth cube texture optional

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9263 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoALU cubemap indirection fixes
eihrul [Wed, 30 Sep 2009 11:39:12 +0000 (11:39 +0000)]
ALU cubemap indirection fixes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9262 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoclarify surfedge handling with a comment about surfedge 0
havoc [Wed, 30 Sep 2009 10:51:36 +0000 (10:51 +0000)]
clarify surfedge handling with a comment about surfedge 0

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9261 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded support for more shadowmap2D PCF modes and provisional fetch4 PCF
eihrul [Wed, 30 Sep 2009 10:20:58 +0000 (10:20 +0000)]
added support for more shadowmap2D PCF modes and provisional fetch4 PCF

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9260 d7cf8633-e32d-0410-b094-e92efae38249

15 years agouse hash lookups on shader permutations to greatly reduce memory usage
havoc [Wed, 30 Sep 2009 09:59:33 +0000 (09:59 +0000)]
use hash lookups on shader permutations to greatly reduce memory usage

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9259 d7cf8633-e32d-0410-b094-e92efae38249

15 years agodisable compare mode on shadowmapcube when not using filtering
eihrul [Wed, 30 Sep 2009 09:05:19 +0000 (09:05 +0000)]
disable compare mode on shadowmapcube when not using filtering

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9258 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded in stub permutations for shadowmap2d and shadowmapcube cases
eihrul [Wed, 30 Sep 2009 08:59:11 +0000 (08:59 +0000)]
added in stub permutations for shadowmap2d and shadowmapcube cases

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9257 d7cf8633-e32d-0410-b094-e92efae38249

15 years agorestoring scaffolding for cubemap and 2D shadowmaps
eihrul [Wed, 30 Sep 2009 08:22:10 +0000 (08:22 +0000)]
restoring scaffolding for cubemap and 2D shadowmaps

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9256 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded indirection cube map for shadowmapping and revised filtering modes
eihrul [Wed, 30 Sep 2009 06:00:37 +0000 (06:00 +0000)]
added indirection cube map for shadowmapping and revised filtering modes

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9255 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix two bugs related to textype_t pointed out by Lee Salzman, both
havoc [Mon, 28 Sep 2009 23:06:34 +0000 (23:06 +0000)]
fix two bugs related to textype_t pointed out by Lee Salzman, both
affecting shadowmap setup

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9254 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix stencil clear
havoc [Mon, 28 Sep 2009 22:20:32 +0000 (22:20 +0000)]
fix stencil clear

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9253 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix allocation of 2D shadowmap textures when the first light LOD is
havoc [Mon, 28 Sep 2009 22:09:19 +0000 (22:09 +0000)]
fix allocation of 2D shadowmap textures when the first light LOD is
below maxsize

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9252 d7cf8633-e32d-0410-b094-e92efae38249

15 years agowhen fixing vertex indexes, reject the map instead of segfaulting if vertex index...
divverent [Mon, 28 Sep 2009 14:47:36 +0000 (14:47 +0000)]
when fixing vertex indexes, reject the map instead of segfaulting if vertex index 0 is invalid too

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9251 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix screenshot hw gamma check
divverent [Sun, 27 Sep 2009 20:23:44 +0000 (20:23 +0000)]
fix screenshot hw gamma check

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9250 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix inverse logic in "important" local
divverent [Sun, 27 Sep 2009 19:08:23 +0000 (19:08 +0000)]
fix inverse logic in "important" local

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9249 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochange cl.time check back
havoc [Sun, 27 Sep 2009 18:09:38 +0000 (18:09 +0000)]
change cl.time check back

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9248 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix outgoing netgraph anomalies (caused by cl_maxfps > cl_netfps)
havoc [Sun, 27 Sep 2009 17:59:14 +0000 (17:59 +0000)]
fix outgoing netgraph anomalies (caused by cl_maxfps > cl_netfps)
made msecdelta checks a bit more sane

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9247 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochange MAX_CLIP_PLANES from 32 to 5 (back to old value)
havoc [Sun, 27 Sep 2009 05:15:30 +0000 (05:15 +0000)]
change MAX_CLIP_PLANES from 32 to 5 (back to old value)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9246 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix several bugs with viewport code (r_shadows works again, r_water
havoc [Sat, 26 Sep 2009 18:40:01 +0000 (18:40 +0000)]
fix several bugs with viewport code (r_shadows works again, r_water
works again)
fixed a bug where r_hdr might cause multiple reallocations of textures
every frame in r_water code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9245 d7cf8633-e32d-0410-b094-e92efae38249

15 years agorename r_shadows_drawafterrtlightning to r_shadows_drawafterrtlighting
havoc [Sat, 26 Sep 2009 18:30:05 +0000 (18:30 +0000)]
rename r_shadows_drawafterrtlightning to r_shadows_drawafterrtlighting

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9244 d7cf8633-e32d-0410-b094-e92efae38249

15 years agonetwork CSQC and network entities separately (should prevent bugs when an entity...
divverent [Sat, 26 Sep 2009 18:15:41 +0000 (18:15 +0000)]
network CSQC and network entities separately (should prevent bugs when an entity suddenly gets SendEntity assigned, which can happen during entity reuse)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9243 d7cf8633-e32d-0410-b094-e92efae38249

15 years agorenamed prvm_startupreuseedicttime to prvm_reuseedicts_startuptime
havoc [Sat, 26 Sep 2009 17:21:19 +0000 (17:21 +0000)]
renamed prvm_startupreuseedicttime to prvm_reuseedicts_startuptime
added cvar prvm_reuseedicts_neverinsameframe

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9242 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded prvm_startupreuseedicttime cvar
havoc [Sat, 26 Sep 2009 17:15:25 +0000 (17:15 +0000)]
added prvm_startupreuseedicttime cvar

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9241 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix typo in cube side freeing
divverent [Sat, 26 Sep 2009 11:51:44 +0000 (11:51 +0000)]
fix typo in cube side freeing

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9240 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoinitilaize the lightscissor array before drawing r_shadows
divverent [Fri, 25 Sep 2009 22:42:58 +0000 (22:42 +0000)]
initilaize the lightscissor array before drawing r_shadows

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9239 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix more bugs in the reflection hack
divverent [Fri, 25 Sep 2009 21:35:45 +0000 (21:35 +0000)]
fix more bugs in the reflection hack

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9238 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix a compile error FruitieX gets
divverent [Fri, 25 Sep 2009 21:21:50 +0000 (21:21 +0000)]
fix a compile error FruitieX gets

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9237 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoimprove the fix to work for reflection-only and refraction-only too
divverent [Fri, 25 Sep 2009 21:11:15 +0000 (21:11 +0000)]
improve the fix to work for reflection-only and refraction-only too

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9236 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochange the hack to work separately for reflection and refraction; MAY help a little
divverent [Fri, 25 Sep 2009 21:00:01 +0000 (21:00 +0000)]
change the hack to work separately for reflection and refraction; MAY help a little

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9235 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadd an ugly hack to reflections/refractions to "behave" when otherwise black edges...
divverent [Fri, 25 Sep 2009 20:58:44 +0000 (20:58 +0000)]
add an ugly hack to reflections/refractions to "behave" when otherwise black edges would appear

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9234 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadd a COMMANDLINEOPTION block for -sndseqin
divverent [Fri, 25 Sep 2009 13:04:49 +0000 (13:04 +0000)]
add a COMMANDLINEOPTION block for -sndseqin

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9233 d7cf8633-e32d-0410-b094-e92efae38249

15 years agosnd_alsa: MIDI input support! MIDI events get mapped to MIDINOTE<n> events (n = 0...
divverent [Fri, 25 Sep 2009 12:59:45 +0000 (12:59 +0000)]
snd_alsa: MIDI input support! MIDI events get mapped to MIDINOTE<n> events (n = 0 to 127)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9232 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadd misisng include
divverent [Thu, 24 Sep 2009 05:40:19 +0000 (05:40 +0000)]
add misisng include

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9231 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoprevent information leakage from trace_ globals to prvm_global client to prevent...
divverent [Wed, 23 Sep 2009 20:55:24 +0000 (20:55 +0000)]
prevent information leakage from trace_ globals to prvm_global client to prevent very simple console in/out parsing based triggerbots

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9230 d7cf8633-e32d-0410-b094-e92efae38249

15 years agonew commands: prvm_edictget, prvm_globalget - read values from edicts/globals into...
divverent [Wed, 23 Sep 2009 20:16:22 +0000 (20:16 +0000)]
new commands: prvm_edictget, prvm_globalget - read values from edicts/globals into cvars

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9229 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoclear trace globals after CSQC execution, to prevent possible triggerbots working...
divverent [Wed, 23 Sep 2009 20:15:53 +0000 (20:15 +0000)]
clear trace globals after CSQC execution, to prevent possible triggerbots working by parsing DP console output of "prvm_global client trace_networkentity" and issuing +attack/-attack based on result

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9228 d7cf8633-e32d-0410-b094-e92efae38249

15 years agounbreak v_flipped :(
divverent [Wed, 23 Sep 2009 10:21:38 +0000 (10:21 +0000)]
unbreak v_flipped :(

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9227 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoreduce code a bit more
havoc [Wed, 23 Sep 2009 08:59:37 +0000 (08:59 +0000)]
reduce code a bit more

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9226 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoreduced shadowmaps from 32bit to 24bit depth format
havoc [Wed, 23 Sep 2009 08:58:24 +0000 (08:58 +0000)]
reduced shadowmaps from 32bit to 24bit depth format
some tweaks to shadowmap texture handling to reduce code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9225 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomake shader permutatiosn eat less memory again. 864MB was justt oo much.
divverent [Wed, 23 Sep 2009 08:06:14 +0000 (08:06 +0000)]
make shader permutatiosn eat less memory again. 864MB was justt oo much.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9224 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoonly skip input if time is actually increasing (should fix pause)
divverent [Wed, 23 Sep 2009 06:57:31 +0000 (06:57 +0000)]
only skip input if time is actually increasing (should fix pause)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9223 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix default values for the r_shadow_shadowmapping_lod cvars
havoc [Tue, 22 Sep 2009 21:27:00 +0000 (21:27 +0000)]
fix default values for the r_shadow_shadowmapping_lod cvars

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9222 d7cf8633-e32d-0410-b094-e92efae38249

15 years agodisable an annoying debug print
havoc [Tue, 22 Sep 2009 21:16:27 +0000 (21:16 +0000)]
disable an annoying debug print

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9221 d7cf8633-e32d-0410-b094-e92efae38249

15 years agochanged r_shadow_shadowmapping values (now 1 = 2d, 2 = rect, 3 = cube)
havoc [Tue, 22 Sep 2009 20:20:53 +0000 (20:20 +0000)]
changed r_shadow_shadowmapping values (now 1 = 2d, 2 = rect, 3 = cube)
disabled some debugging code for shadowmaps which produced large files

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9220 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoimplemented omnidirectional shadowmapping using depth textures (2D, Rect
havoc [Tue, 22 Sep 2009 20:18:12 +0000 (20:18 +0000)]
implemented omnidirectional shadowmapping using depth textures (2D, Rect
and Cube texture types supported)
overhauled viewport handling (now has r_refdef.view.viewport),
R_Viewport functions replace GL_SetupView_ functions, R_SetViewport
makes a viewport current

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9219 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoadded float GL/D3D array conversions
havoc [Tue, 22 Sep 2009 20:16:13 +0000 (20:16 +0000)]
added float GL/D3D array conversions

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9218 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofixed shadow culling bug caused by bad frustumcorner generation math
havoc [Sun, 20 Sep 2009 12:00:43 +0000 (12:00 +0000)]
fixed shadow culling bug caused by bad frustumcorner generation math

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9217 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix framerate limiting - when cl_maxfps is 0, run client frames even if
havoc [Fri, 18 Sep 2009 11:20:31 +0000 (11:20 +0000)]
fix framerate limiting - when cl_maxfps is 0, run client frames even if
cl_timer has not advanced, this allows framerates above 1000, and
makes framerates very consistent (rather than chaotic) in the 200-1000
range as well

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9215 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoenable host_sleep 1 by default
havoc [Fri, 18 Sep 2009 09:25:42 +0000 (09:25 +0000)]
enable host_sleep 1 by default

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9214 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix red-coloring logic again
divverent [Fri, 18 Sep 2009 09:21:51 +0000 (09:21 +0000)]
fix red-coloring logic again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9213 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoshowfps 2: always show mspf
divverent [Fri, 18 Sep 2009 09:19:57 +0000 (09:19 +0000)]
showfps 2: always show mspf

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9212 d7cf8633-e32d-0410-b094-e92efae38249

15 years agouse different showfps math
havoc [Fri, 18 Sep 2009 09:15:20 +0000 (09:15 +0000)]
use different showfps math

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9211 d7cf8633-e32d-0410-b094-e92efae38249

15 years agosv_gameplayfix_q2airaccelerate: use Quake2/3/Nexuiz-style air acceleration (clamped...
divverent [Fri, 18 Sep 2009 07:24:41 +0000 (07:24 +0000)]
sv_gameplayfix_q2airaccelerate: use Quake2/3/Nexuiz-style air acceleration (clamped by maxairspeed, not by maxspeed as in Q1/Q2)
This is also supported by cl_movement
Mods that now experience prediction errors must set sv_gameplayfix_q2airaccelerate to 1 in their default configuration

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9210 d7cf8633-e32d-0410-b094-e92efae38249

15 years agorewrote netgraph code
havoc [Thu, 17 Sep 2009 16:42:55 +0000 (16:42 +0000)]
rewrote netgraph code
netgraph now uses line graph (doesn't look very good though)
netgraph now shows last 4 seconds (rather than 100 packets)
netgraph now shows rate estimate

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9209 d7cf8633-e32d-0410-b094-e92efae38249

15 years agostop predicting movement when no server packets have been received for
havoc [Thu, 17 Sep 2009 12:20:45 +0000 (12:20 +0000)]
stop predicting movement when no server packets have been received for
300ms (by default), this prevents major performance issues with
prediction of long queues

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9208 d7cf8633-e32d-0410-b094-e92efae38249

15 years agoreduce CL_MAX_USERCMDS to 128 (from 256)
havoc [Thu, 17 Sep 2009 12:11:49 +0000 (12:11 +0000)]
reduce CL_MAX_USERCMDS to 128 (from 256)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9207 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix callprofile by making some CSQC builtins that call the renderer (or QC) exempt...
divverent [Thu, 17 Sep 2009 10:14:17 +0000 (10:14 +0000)]
fix callprofile by making some CSQC builtins that call the renderer (or QC) exempt from prvm_callprofile

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9206 d7cf8633-e32d-0410-b094-e92efae38249

15 years agomake profile output more verbous (including time of child functions)
divverent [Thu, 17 Sep 2009 09:43:47 +0000 (09:43 +0000)]
make profile output more verbous (including time of child functions)
add new command prvm_childprofile to instead sort by the total time (including children)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9205 d7cf8633-e32d-0410-b094-e92efae38249

15 years agofix more C++ warnings/errors in MSVC
havoc [Thu, 17 Sep 2009 05:31:05 +0000 (05:31 +0000)]
fix more C++ warnings/errors in MSVC

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9204 d7cf8633-e32d-0410-b094-e92efae38249