]>
git.rm.cloudns.org Git - xonotic/darkplaces.git/log
tomaz tomaz@d7cf8633-e32d-0410-b094-e92efae38249 [Thu, 16 Sep 2010 22:20:24 +0000 (22:20 +0000)]
UNMERGE
Added debug shaderflags used by the shader compiler which is needed to debug the shaders in pix
Also added saving of vertstring and fragstring to disk and D3DXCompileShaderFromFileA to load them, this helps when debugging shaders in pix ( all commented out )
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10466
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::unmerge=
24d6306967a695130789ada49e6a7f0e58f4fbad
havoc havoc@d7cf8633-e32d-0410-b094-e92efae38249 [Fri, 17 Sep 2010 08:56:55 +0000 (08:56 +0000)]
UNMERGE
remove r_shadow_texturetype cvar (now always uses 2D textures), remove shadowmap cube and rect support
removed GL_ARB_texture_rectangle texture support throughout engine (nothing using it)
refactored D3D9 path in R_Mesh_SetRenderTargets in unsuccessful attempt to fix D3D9 shadowmapping
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10467
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::unmerge=
5896a10952478d0f0f805aca72f1bb268ace7d81
havoc havoc@d7cf8633-e32d-0410-b094-e92efae38249 [Fri, 17 Sep 2010 09:16:30 +0000 (09:16 +0000)]
UNMERGE
enable Tomaz's PIX-friendly shader debugging code if gl_paranoid is 1
made CHECKGLERROR not crash if qglGetError is NULL (as in D3D9 renderer for example)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10468
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::unmerge=
5f5982cec6cf87e5a9d729ba73ec387b03d1f58a
havoc havoc@d7cf8633-e32d-0410-b094-e92efae38249 [Fri, 17 Sep 2010 11:24:52 +0000 (11:24 +0000)]
UNMERGE
fix a crash in D3D9 with r_sky 0
cleaned up some shadowmap debugging code in D3D9 shader
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10469
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::unmerge=
9ed81e318d66aa533b9c494d61b0609ba19499de
havoc havoc@d7cf8633-e32d-0410-b094-e92efae38249 [Fri, 17 Sep 2010 11:28:24 +0000 (11:28 +0000)]
UNMERGE
in D3D9 mode do not use the VSDCT cubemap because the ShadowMap_Parameters are completely incompatible in the D3D9 renderer
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10470
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::unmerge=
f9e8d27908695f31f979cc07f96e5d8e312e4af4
havoc havoc@d7cf8633-e32d-0410-b094-e92efae38249 [Fri, 17 Sep 2010 14:19:14 +0000 (14:19 +0000)]
UNMERGE
fix some bugs in the HLSL shader, mostly to do with r_shadow_deferred
change texture unit for shadowmaps to 15 rather than 11 because this fixes a conflict between r_shadow_deferred 1 and r_shadows 2
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10471
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::unmerge=
30d2b84076b90be73d1838f1c396edcfd9989c69
tomaz tomaz@d7cf8633-e32d-0410-b094-e92efae38249 [Fri, 17 Sep 2010 22:47:20 +0000 (22:47 +0000)]
UNMERGE
More debug code for shaders, this time it preprocesses the shader before saving it as an .fx file
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10472
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::unmerge=
e1adc7df0732e7b25af3fc9ca3a82c2f1782fda4
tomaz tomaz@d7cf8633-e32d-0410-b094-e92efae38249 [Fri, 17 Sep 2010 22:47:57 +0000 (22:47 +0000)]
UNMERGE
Forgot to put back the paranoid code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10473
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::unmerge=
84e35ab21fc6f198614cf12441e8338af19058cb
tomaz tomaz@d7cf8633-e32d-0410-b094-e92efae38249 [Fri, 17 Sep 2010 22:58:16 +0000 (22:58 +0000)]
UNMERGE
Fix a couple HLSL shader warnings
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10474
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::unmerge=
36d70aa30a19f9e2fc038b6f82ea193736527292
havoc havoc@d7cf8633-e32d-0410-b094-e92efae38249 [Sat, 18 Sep 2010 12:47:03 +0000 (12:47 +0000)]
UNMERGE
don't use D3DPRESENTFLAG_DISCARD_DEPTHSTENCIL because it clears the backbuffer depth on SetDepthStencilSurface calls
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10475
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::unmerge=
886269645343d27bed3ea58c9b32ae9bc872ead2
tomaz tomaz@d7cf8633-e32d-0410-b094-e92efae38249 [Sat, 18 Sep 2010 22:45:49 +0000 (22:45 +0000)]
UNMERGE
Fixed the x axis flipped shadows, 1 step closer to getting all this to work perfecty in d3d9
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10476
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::unmerge=
633439b8c943def5f39a8be5b460733ba3c1fd07
tomaz tomaz@d7cf8633-e32d-0410-b094-e92efae38249 [Tue, 21 Sep 2010 19:35:20 +0000 (19:35 +0000)]
UNMERGE
Fixed dynamic light shadowmapping in D3D, still gotta fix them in deferred
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10477
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::unmerge=
4352792d696b5831ffd9ab0f3ec2b91b89f24708
havoc havoc@d7cf8633-e32d-0410-b094-e92efae38249 [Wed, 22 Sep 2010 16:21:11 +0000 (16:21 +0000)]
UNMERGE
fix a compile error and some warnings
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10480
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::unmerge=
c37fd1ded7fac519b126bd630360af1c3890003a
divverent divverent@d7cf8633-e32d-0410-b094-e92efae38249 [Fri, 24 Sep 2010 11:07:27 +0000 (11:07 +0000)]
UNMERGE
remove two unused vars
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10486
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::unmerge=
23e8d3a5f0d0e364566b87daaa59451ea59a6919
divverent divverent@d7cf8633-e32d-0410-b094-e92efae38249 [Fri, 24 Sep 2010 11:11:11 +0000 (11:11 +0000)]
UNMERGE
remove more unused code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10488
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::unmerge=
88f0fcbd983dae9880e48b6bc457eabd9bd7017d
divverent [Fri, 24 Sep 2010 11:11:11 +0000 (11:11 +0000)]
remove more unused code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10488
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
88f0fcbd983dae9880e48b6bc457eabd9bd7017d
divverent [Fri, 24 Sep 2010 11:07:38 +0000 (11:07 +0000)]
remove another unused variable
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10487
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
3abcf03e35e08fb069730d6b632e695b5a2eebe5
divverent [Fri, 24 Sep 2010 11:07:27 +0000 (11:07 +0000)]
remove two unused vars
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10486
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
23e8d3a5f0d0e364566b87daaa59451ea59a6919
divverent [Fri, 24 Sep 2010 10:36:53 +0000 (10:36 +0000)]
fix another bug in the prologic patch :)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10485
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
8c6316428e12d958ece5d75d2f7c4d28fd6a1a03
Rudolf Polzer [Fri, 24 Sep 2010 09:53:03 +0000 (11:53 +0200)]
Reset the stable branch to the current DP trunk, as D3D9 support seems to be quite stabilized regarding OpenGL issues now. Still about 5% slower than OpenGL, as it seems.
The old branch has been archived to divVerent/archive/div0-stable-before-d3d9.
::stable-branch::reset=
1710425a7fdf365e177bc70dae4b89eea90df13e
divverent [Thu, 23 Sep 2010 05:17:14 +0000 (05:17 +0000)]
allow bgmvolume to be > 1 to be able to exceed mastervolume (but this and other "> 1" values are still clamped to 10, i.e. 10 dB); apply ReplayGain in SND_Spatialize instead of early when setting channel volume to better guard against clipping
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10484
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Thu, 23 Sep 2010 05:17:09 +0000 (05:17 +0000)]
change clamping logic
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10483
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Thu, 23 Sep 2010 05:17:05 +0000 (05:17 +0000)]
expand volume accuracy from 8bit to 16bit; allow channel volume values to be > 1, and clamp the resulting volume
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10482
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Thu, 23 Sep 2010 04:40:22 +0000 (04:40 +0000)]
fix ambient sounds in prologic
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10481
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Wed, 22 Sep 2010 16:21:11 +0000 (16:21 +0000)]
fix a compile error and some warnings
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10480
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Wed, 22 Sep 2010 16:11:52 +0000 (16:11 +0000)]
ProLogic patch by Joris Nijnuis, with some fixes
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10479
d7cf8633 -e32d-0410-b094-
e92efae38249
vortex [Tue, 21 Sep 2010 21:49:23 +0000 (21:49 +0000)]
Fix GAME_XONOTIC beging misplaced in gamemode_t->gamemode_info causing "gamemode" to be initialized wrong. CSQC now knows "view_punchvector" and "view_punchangle" globals which is what it used to be.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10478
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
4f738fb758eadca11d76db88b8db2e2d45f9e261
vortex [Tue, 21 Sep 2010 21:49:23 +0000 (21:49 +0000)]
Fix GAME_XONOTIC beging misplaced in gamemode_t->gamemode_info causing "gamemode" to be initialized wrong. CSQC now knows "view_punchvector" and "view_punchangle" globals which is what it used to be.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10478
d7cf8633 -e32d-0410-b094-
e92efae38249
tomaz [Tue, 21 Sep 2010 19:35:20 +0000 (19:35 +0000)]
Fixed dynamic light shadowmapping in D3D, still gotta fix them in deferred
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10477
d7cf8633 -e32d-0410-b094-
e92efae38249
tomaz [Sat, 18 Sep 2010 22:45:49 +0000 (22:45 +0000)]
Fixed the x axis flipped shadows, 1 step closer to getting all this to work perfecty in d3d9
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10476
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sat, 18 Sep 2010 12:47:03 +0000 (12:47 +0000)]
don't use D3DPRESENTFLAG_DISCARD_DEPTHSTENCIL because it clears the backbuffer depth on SetDepthStencilSurface calls
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10475
d7cf8633 -e32d-0410-b094-
e92efae38249
tomaz [Fri, 17 Sep 2010 22:58:16 +0000 (22:58 +0000)]
Fix a couple HLSL shader warnings
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10474
d7cf8633 -e32d-0410-b094-
e92efae38249
tomaz [Fri, 17 Sep 2010 22:47:57 +0000 (22:47 +0000)]
Forgot to put back the paranoid code
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10473
d7cf8633 -e32d-0410-b094-
e92efae38249
tomaz [Fri, 17 Sep 2010 22:47:20 +0000 (22:47 +0000)]
More debug code for shaders, this time it preprocesses the shader before saving it as an .fx file
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10472
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Fri, 17 Sep 2010 14:19:14 +0000 (14:19 +0000)]
fix some bugs in the HLSL shader, mostly to do with r_shadow_deferred
change texture unit for shadowmaps to 15 rather than 11 because this fixes a conflict between r_shadow_deferred 1 and r_shadows 2
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10471
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Fri, 17 Sep 2010 11:28:24 +0000 (11:28 +0000)]
in D3D9 mode do not use the VSDCT cubemap because the ShadowMap_Parameters are completely incompatible in the D3D9 renderer
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10470
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Fri, 17 Sep 2010 11:24:52 +0000 (11:24 +0000)]
fix a crash in D3D9 with r_sky 0
cleaned up some shadowmap debugging code in D3D9 shader
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10469
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Fri, 17 Sep 2010 09:16:30 +0000 (09:16 +0000)]
enable Tomaz's PIX-friendly shader debugging code if gl_paranoid is 1
made CHECKGLERROR not crash if qglGetError is NULL (as in D3D9 renderer for example)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10468
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Fri, 17 Sep 2010 08:56:55 +0000 (08:56 +0000)]
remove r_shadow_texturetype cvar (now always uses 2D textures), remove shadowmap cube and rect support
removed GL_ARB_texture_rectangle texture support throughout engine (nothing using it)
refactored D3D9 path in R_Mesh_SetRenderTargets in unsuccessful attempt to fix D3D9 shadowmapping
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10467
d7cf8633 -e32d-0410-b094-
e92efae38249
tomaz [Thu, 16 Sep 2010 22:20:24 +0000 (22:20 +0000)]
Added debug shaderflags used by the shader compiler which is needed to debug the shaders in pix
Also added saving of vertstring and fragstring to disk and D3DXCompileShaderFromFileA to load them, this helps when debugging shaders in pix ( all commented out )
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10466
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Thu, 16 Sep 2010 10:58:28 +0000 (10:58 +0000)]
change D3D9 implementation of TEXTYPE_SHADOWMAP textures to use CreateDepthStencilSurface instead of CreateTexture, this fixes lots of errors (PIX works, REF rasterizer works, etc)
implement freeing of D3D9 textures
disable the texture size padding on D3D9 as it was not the cause of PIX trouble
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10465
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Thu, 16 Sep 2010 09:14:39 +0000 (09:14 +0000)]
restructure the previous fix so it actually does something
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10464
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Thu, 16 Sep 2010 08:45:34 +0000 (08:45 +0000)]
on D3D9 renderer do not allow textures to be uploaded with a size smaller than 2xN or Nx2 because the REF rasterizer refuses these (which makes PIX debugging hard)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10463
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Tue, 14 Sep 2010 19:17:37 +0000 (19:17 +0000)]
fix leaktest
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10461
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
dbba88193908a87435fae15ccf8c28d76f36def7
divverent [Tue, 14 Sep 2010 18:46:45 +0000 (18:46 +0000)]
add comments so I know which plane type is which
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10460
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
175ee5655dc60d9bce48e942716fde78503dc514
divverent [Tue, 14 Sep 2010 18:46:41 +0000 (18:46 +0000)]
TraceBrush: use in Collision_ClipToGenericEntity
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10459
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
8932241cf6202daaa27b839eba3198eae61f75f7
divverent [Tue, 14 Sep 2010 18:46:37 +0000 (18:46 +0000)]
add a TraceBrush function to all model types, and implement it for BIH and Q3BSP
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10458
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
b86dc159d01c93c80a00afe9f40e48dd0a8206d6
tomaz [Tue, 14 Sep 2010 20:49:41 +0000 (20:49 +0000)]
Set r_shadow_shadowmap2dcolortexture as first rendertarget when doing shadowmaps, sadly this didn't fix the shadowmaps but it at least fixed the white sky.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10462
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Tue, 14 Sep 2010 19:17:37 +0000 (19:17 +0000)]
fix leaktest
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10461
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Tue, 14 Sep 2010 18:46:45 +0000 (18:46 +0000)]
add comments so I know which plane type is which
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10460
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Tue, 14 Sep 2010 18:46:41 +0000 (18:46 +0000)]
TraceBrush: use in Collision_ClipToGenericEntity
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10459
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Tue, 14 Sep 2010 18:46:37 +0000 (18:46 +0000)]
add a TraceBrush function to all model types, and implement it for BIH and Q3BSP
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10458
d7cf8633 -e32d-0410-b094-
e92efae38249
tomaz [Sun, 12 Sep 2010 01:38:43 +0000 (01:38 +0000)]
Fix stencil shadows in D3D9
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10457
d7cf8633 -e32d-0410-b094-
e92efae38249
tomaz [Sat, 11 Sep 2010 09:54:18 +0000 (09:54 +0000)]
Ignored MSVC build directories
Silenced a warning in MSVC 2008
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10456
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sat, 11 Sep 2010 00:20:09 +0000 (00:20 +0000)]
fix an inverted return value
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10455
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sat, 11 Sep 2010 00:20:09 +0000 (00:20 +0000)]
fix an inverted return value
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10455
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
e31ea19a584eb7675ebb9133d665d44ef9438a3e
divverent [Fri, 10 Sep 2010 23:23:22 +0000 (23:23 +0000)]
add a type cast for C++
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10454
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
9e160a615b83477f8eec2ba38e16afff6ea9bac4
divverent [Fri, 10 Sep 2010 23:23:22 +0000 (23:23 +0000)]
add a type cast for C++
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10454
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 10 Sep 2010 11:42:56 +0000 (11:42 +0000)]
make the win32 case compile too (hope it doesn't break TOO horribly above 4G RAM, someone please test)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10453
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
abbafda6735457111f0fffa4e168d84b0a530d85
divverent [Fri, 10 Sep 2010 11:26:57 +0000 (11:26 +0000)]
add sys_memsize_virtual and sys_memsize_physical info cvars
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10452
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
36bcd3b371a113ce5cf3e91f7143e18672fe9c93
divverent [Fri, 10 Sep 2010 11:42:56 +0000 (11:42 +0000)]
make the win32 case compile too (hope it doesn't break TOO horribly above 4G RAM, someone please test)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10453
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 10 Sep 2010 11:26:57 +0000 (11:26 +0000)]
add sys_memsize_virtual and sys_memsize_physical info cvars
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10452
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Thu, 9 Sep 2010 07:37:50 +0000 (07:37 +0000)]
do sound occlusion only once per sound, not once per listener channel
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10451
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Thu, 9 Sep 2010 07:37:50 +0000 (07:37 +0000)]
do sound occlusion only once per sound, not once per listener channel
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10451
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
1c4c36dd5a6587988ac63db25c246c96fba749f4
divverent [Thu, 9 Sep 2010 06:55:01 +0000 (06:55 +0000)]
remove sparks if slower than sqrt(0.03)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10450
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Thu, 9 Sep 2010 06:54:58 +0000 (06:54 +0000)]
sound occlusion: use PVS by default, make the cvar able to toggle between PVS and LineOfSight occlusion
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10449
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Thu, 9 Sep 2010 06:54:55 +0000 (06:54 +0000)]
fix two warpzone related PVS bugs
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10448
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Thu, 9 Sep 2010 06:55:01 +0000 (06:55 +0000)]
remove sparks if slower than sqrt(0.03)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10450
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
a47d6d807b1b080ae1c56e6c17c2fec217cd8e89
divverent [Thu, 9 Sep 2010 06:54:58 +0000 (06:54 +0000)]
sound occlusion: use PVS by default, make the cvar able to toggle between PVS and LineOfSight occlusion
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10449
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
00f9f334acf035b06ca4381b1af3f3b75af5826a
divverent [Thu, 9 Sep 2010 06:54:55 +0000 (06:54 +0000)]
fix two warpzone related PVS bugs
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10448
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
44eae3fb425b13b170cbb479017715bb03e9d30c
divverent [Tue, 7 Sep 2010 07:37:02 +0000 (07:37 +0000)]
new option -benchmarkruns - if specified, the given number of benchmark runs is performed for -benchmark
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10447
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Tue, 7 Sep 2010 07:37:02 +0000 (07:37 +0000)]
new option -benchmarkruns - if specified, the given number of benchmark runs is performed for -benchmark
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10447
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
b035320854424884c174e6b33092f63c4158a3a3
divverent [Mon, 6 Sep 2010 06:21:51 +0000 (06:21 +0000)]
fix CSQC being unable to use the "effects" field as its fieldoffset never got initialized
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10446
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
e46b145fb645c005413c7f34360d1d02498f8898
divverent [Mon, 6 Sep 2010 05:09:56 +0000 (05:09 +0000)]
Allow to type the utf8 Euro currency sign (to work around windows-1252 encoding)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10445
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
2521205903a3cab3b36f3450485a266a4e86085f
divverent [Mon, 6 Sep 2010 05:09:53 +0000 (05:09 +0000)]
make ctrl-key shortcuts in message mode display chars from the charmap even with utf8 enabled
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10444
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
442772ff530cb93073f2ea7207de762ec74d34ce
divverent [Mon, 6 Sep 2010 06:21:51 +0000 (06:21 +0000)]
fix CSQC being unable to use the "effects" field as its fieldoffset never got initialized
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10446
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Mon, 6 Sep 2010 05:09:56 +0000 (05:09 +0000)]
Allow to type the utf8 Euro currency sign (to work around windows-1252 encoding)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10445
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Mon, 6 Sep 2010 05:09:53 +0000 (05:09 +0000)]
make ctrl-key shortcuts in message mode display chars from the charmap even with utf8 enabled
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10444
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 5 Sep 2010 17:34:29 +0000 (17:34 +0000)]
new cvars: r_drawparticles_nearclip_min and r_drawparticles_nearclip_max, use a range and fading for near clip of particles for speed optimization (fade them out before they become fullscreen)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10443
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
6f6da45f360f10451ac20ca2c1fa1c64dd992239
divverent [Sun, 5 Sep 2010 17:34:29 +0000 (17:34 +0000)]
new cvars: r_drawparticles_nearclip_min and r_drawparticles_nearclip_max, use a range and fading for near clip of particles for speed optimization (fade them out before they become fullscreen)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10443
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 5 Sep 2010 15:48:51 +0000 (15:48 +0000)]
reorganize sv_public code; add a level -3 that blocks at getchallenge level, but -2 blocks at connect level (srcon needs getchallenge, so -3 also blocks srcon); also sv_public -2 will make connect attempts show the string in sv_public_rejectreason
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10442
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
62b1a43c04dd50f4e8a0bfa00974eb880c3b0795
divverent [Sun, 5 Sep 2010 15:48:51 +0000 (15:48 +0000)]
reorganize sv_public code; add a level -3 that blocks at getchallenge level, but -2 blocks at connect level (srcon needs getchallenge, so -3 also blocks srcon); also sv_public -2 will make connect attempts show the string in sv_public_rejectreason
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10442
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sat, 4 Sep 2010 15:39:43 +0000 (15:39 +0000)]
optimize R_AnimCache_UpdateEntityMeshBuffers to use memcpy instead of VectorCopy, Steel Storm 150fps -> 167fps (now only effective in D3D mode, as this path is usually not used any more in OpenGL)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10441
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sat, 4 Sep 2010 15:32:12 +0000 (15:32 +0000)]
clean up u8_StringLengthNoColors
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10440
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
bb3eeea785546930f5820116a01058a0b86718c9
divverent [Sat, 4 Sep 2010 15:32:09 +0000 (15:32 +0000)]
Since u8_prevbyte skips invalid chars on purpose, it can go before the ] if invalid utf8 chars get pasted in the console edit line. It's even possible to delete the ].
Fix this bug by giving to u8_prevbyte the edit line without ].
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10439
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
de39b9746aa912589462b418e2a9af3d69b063c2
divverent [Sat, 4 Sep 2010 15:32:06 +0000 (15:32 +0000)]
Fix u8_COM_StringLengthNoColors not counting many ASCII chars (up to '?')
Better handling of invalid chars in u8_COM_StringLengthNoColors
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10438
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
f0eda58867febcd4dc0f6c6be401d37000d136c5
divverent [Sat, 4 Sep 2010 15:32:12 +0000 (15:32 +0000)]
clean up u8_StringLengthNoColors
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10440
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sat, 4 Sep 2010 15:32:09 +0000 (15:32 +0000)]
Since u8_prevbyte skips invalid chars on purpose, it can go before the ] if invalid utf8 chars get pasted in the console edit line. It's even possible to delete the ].
Fix this bug by giving to u8_prevbyte the edit line without ].
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10439
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sat, 4 Sep 2010 15:32:06 +0000 (15:32 +0000)]
Fix u8_COM_StringLengthNoColors not counting many ASCII chars (up to '?')
Better handling of invalid chars in u8_COM_StringLengthNoColors
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10438
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sat, 4 Sep 2010 14:47:52 +0000 (14:47 +0000)]
Adding GAME_XONOTIC and recognizing xonotic executable names
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10437
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
1c1d251ba80d985f8b7f641f3e9baa0584eb2a86
divverent [Sat, 4 Sep 2010 14:47:52 +0000 (14:47 +0000)]
Adding GAME_XONOTIC and recognizing xonotic executable names
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10437
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 3 Sep 2010 05:32:15 +0000 (05:32 +0000)]
build the string correctly
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10436
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 3 Sep 2010 05:32:15 +0000 (05:32 +0000)]
build the string correctly
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10436
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
e8d1f7bc14b8bed1bf23c4256b22830f1c2ffe0b
divverent [Fri, 3 Sep 2010 05:23:15 +0000 (05:23 +0000)]
fix connect help
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10435
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 3 Sep 2010 05:20:33 +0000 (05:20 +0000)]
added arg: connect-userinfo; works like this: "connect server password foobar" will connect to server, and add \password\foobar to the infostring (works to connect to FTEQW passworded servers)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10434
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 3 Sep 2010 05:23:15 +0000 (05:23 +0000)]
fix connect help
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10435
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
1b8df685ec8616067bea6a892c294239c27e94f5
divverent [Fri, 3 Sep 2010 05:20:33 +0000 (05:20 +0000)]
added arg: connect-userinfo; works like this: "connect server password foobar" will connect to server, and add \password\foobar to the infostring (works to connect to FTEQW passworded servers)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10434
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
e20a7791af80303078df78c93a261d291f3f0b19
divverent [Tue, 31 Aug 2010 10:53:54 +0000 (10:53 +0000)]
generate s- and t-vector of deformVertexes only if really needed (optimization for depthfirst pass mainly)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10432
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Tue, 31 Aug 2010 07:28:24 +0000 (07:28 +0000)]
get rid of calculating vertexmesh animcache buffers if we do not need the vertexmesh... fixes performance of steel storm
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10431
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Mon, 30 Aug 2010 00:36:32 +0000 (00:36 +0000)]
fix components parameter on a few TexCoordPointer normal3f calls, thanks
to kyre for reporting this bug
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10430
d7cf8633 -e32d-0410-b094-
e92efae38249