]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
14 years agoinitial work for DETACHED signatures
divverent [Thu, 25 Nov 2010 20:30:42 +0000 (20:30 +0000)]
initial work for DETACHED signatures

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10633 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e4e06ca028a8aa4d33db30946a8909a86c141f99

14 years agofix a cast
divverent [Thu, 25 Nov 2010 19:51:49 +0000 (19:51 +0000)]
fix a cast

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10632 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=acd8646648b6a54d5e0c2aac2e51eeb2572def11

14 years agomove base64 to common code
divverent [Thu, 25 Nov 2010 19:51:46 +0000 (19:51 +0000)]
move base64 to common code

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10631 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=4bee24a5cf254a418660db56e4e67e105937565e

14 years agofix warnings by adding type casts
vortex [Thu, 25 Nov 2010 19:23:41 +0000 (19:23 +0000)]
fix warnings by adding type casts

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10630 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7bdd10be8ff88baba813e984eccc7cf934961ad7

14 years agosupport passing extra headers in POST requests; but this is not used yet
divverent [Thu, 25 Nov 2010 18:59:39 +0000 (18:59 +0000)]
support passing extra headers in POST requests; but this is not used yet

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10629 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a9a9fc7be3154f84c3de2f1f7c6ad15a3c806198

14 years agofix a typo
divverent [Thu, 25 Nov 2010 18:46:32 +0000 (18:46 +0000)]
fix a typo

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10628 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f7f3c8ac391aa197c33579aa4d9997dbc0712063

14 years agoDP_QC_URI_POST extension (uri_post, uri_postbuf, crypto_uri_postbuf)
divverent [Thu, 25 Nov 2010 12:56:30 +0000 (12:56 +0000)]
DP_QC_URI_POST extension (uri_post, uri_postbuf, crypto_uri_postbuf)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10627 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1dfae27462dba735f317cac38f3b7deb415ed154

14 years agomove r_stereo adjustments into R_RenderView so that it executes AFTER CSQC may have...
divverent [Wed, 24 Nov 2010 20:58:27 +0000 (20:58 +0000)]
move r_stereo adjustments into R_RenderView so that it executes AFTER CSQC may have adjusted the view. Makes redblue stereo work even in steel storm.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10626 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=d404f9aaa347ec6506ecff1de63ff55673e91881

14 years agofix a stupid warning on OS X
divverent [Wed, 24 Nov 2010 20:35:56 +0000 (20:35 +0000)]
fix a stupid warning on OS X

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10625 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=cca46dbd21559aef23c04c41fb714f2cc92c5cb9

14 years agorefactored and optimized the R_Q1BSP_RecursiveGetLightInfo function
havoc [Mon, 22 Nov 2010 00:57:14 +0000 (00:57 +0000)]
refactored and optimized the R_Q1BSP_RecursiveGetLightInfo function
properly clear the leaf, surface, and triangle visibility data on a
light, this might fix performance issues with the SVBSP culling method
added a BIH (bounding interval hierarchy) culling method for lights
rather than just the BSP method used by default, however this has
yielded no performance gains outside of .obj maps, so by default it only
uses this new method on .obj maps (where the lack of vis culling is
unimportant)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10624 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7c5d0c667262e89b8b3ee68a5aafcbf76ec9c01d

14 years agofix a couple error messages on shutdown of dedicated server
havoc [Sun, 21 Nov 2010 12:34:31 +0000 (12:34 +0000)]
fix a couple error messages on shutdown of dedicated server

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10623 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ecb8d61815e931cc3ff9e0db0e3f64a86fc4400c

14 years agofix D3D9 build
havoc [Sun, 21 Nov 2010 12:30:54 +0000 (12:30 +0000)]
fix D3D9 build

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10622 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=1739bc4c7b59ff54fd2f3c0492ab4ca6ed6563ac

14 years agouse r_smoothnormals_areaweighting cvar on all calls to Mod_BuildNormals
havoc [Sun, 21 Nov 2010 12:26:19 +0000 (12:26 +0000)]
use r_smoothnormals_areaweighting cvar on all calls to Mod_BuildNormals
and Mod_BuildTextureVectorsFromNormals - rather than assuming the artist
wanted area weighted, as if the normalmap was baked for
non-area-weighted tangents this just yields wrong results

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10621 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=dd5644411f46bfeaf512d86eb5ae5fbc3a3b0adf

14 years agosomeone broke R_CompleteLightPoint, fix this call
havoc [Sun, 21 Nov 2010 12:25:55 +0000 (12:25 +0000)]
someone broke R_CompleteLightPoint, fix this call

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10620 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e4e9ebace60585c6cfb51cafda868761e8d21458

14 years agoCL_VM_GetLight: allow 2'nd optional parm which sets sampling mask: 1 lightmap (defaul...
vortex [Sat, 20 Nov 2010 23:59:28 +0000 (23:59 +0000)]
CL_VM_GetLight: allow 2'nd optional parm which sets sampling mask: 1 lightmap (default one), 2 worldrtlight, 4 - dlight. Added getlights2 to the csprogdefs.qc.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10619 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e5bd7b58a64bc25738028180da3c1990824d75ec

14 years ago::stable-branch::reset=2b2ce6d4f94d18b45451c9e648c1c0bb40557416
Rudolf Polzer [Sat, 20 Nov 2010 18:08:52 +0000 (19:08 +0100)]
::stable-branch::reset=2b2ce6d4f94d18b45451c9e648c1c0bb40557416

14 years agodon't load corrupt wav files
havoc [Fri, 19 Nov 2010 15:14:53 +0000 (15:14 +0000)]
don't load corrupt wav files

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10616 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=debad66a1a7af625005e58a5b7287770d3e50bc6

14 years agoprint more useful data when a corrupt input packet comes from a client
havoc [Sat, 20 Nov 2010 14:14:59 +0000 (14:14 +0000)]
print more useful data when a corrupt input packet comes from a client

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

14 years agofix camera texture colors
divverent [Sat, 20 Nov 2010 07:38:25 +0000 (07:38 +0000)]
fix camera texture colors

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

14 years agodon't load corrupt wav files
havoc [Fri, 19 Nov 2010 15:14:53 +0000 (15:14 +0000)]
don't load corrupt wav files

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

14 years agofix fog on particles (premultiplied alpha change was doing it wrong)
havoc [Fri, 19 Nov 2010 13:55:20 +0000 (13:55 +0000)]
fix fog on particles (premultiplied alpha change was doing it wrong)

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

14 years agoallow loading DXT2 and DXT4 dds files
havoc [Fri, 19 Nov 2010 13:53:04 +0000 (13:53 +0000)]
allow loading DXT2 and DXT4 dds files

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

14 years agoparticle rendering now uses premultiplied alpha (texture is
havoc [Fri, 19 Nov 2010 13:42:14 +0000 (13:42 +0000)]
particle rendering now uses premultiplied alpha (texture is
automatically converted on load, however dds may need to be DXT4 rather
than DXT5 now)
this should give an fps boost

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

14 years agonow that performance of cl_decals_newsystem is not terrible, enable it
havoc [Fri, 19 Nov 2010 12:31:55 +0000 (12:31 +0000)]
now that performance of cl_decals_newsystem is not terrible, enable it
by default

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10612 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=02ca98a2932d9a8963eb96f27453f672cd71947e

14 years agooptimize prologic inversion, it was really showing up in profiles
havoc [Fri, 19 Nov 2010 12:23:03 +0000 (12:23 +0000)]
optimize prologic inversion, it was really showing up in profiles

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10610 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=96c898c4a8f6d5033b1e2e9990817dcba4ee48f1

14 years agomatch sound radius in Quake 1.01, where it was effectively 1200
havoc [Fri, 19 Nov 2010 10:36:06 +0000 (10:36 +0000)]
match sound radius in Quake 1.01, where it was effectively 1200

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10609 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=ce83d5242178e506cfac7c267677cce203e07d87

14 years agochange default snd_soundradius back to 1000, matching Quake
havoc [Fri, 19 Nov 2010 10:10:43 +0000 (10:10 +0000)]
change default snd_soundradius back to 1000, matching Quake

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10608 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=62c92cc4613d76c62b7cf1561c05d85f47659e16

14 years agofor purposes of better compatibility with proquake servers, darkplaces
havoc [Thu, 18 Nov 2010 15:47:52 +0000 (15:47 +0000)]
for purposes of better compatibility with proquake servers, darkplaces
client now pretends to be proquake 3.40 when connecting to quake
protocol servers, this enables precise aim and the proquake NAT fix
(which the server only supports on proquake clients...  grr)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10607 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=4cea57335d11201c0c7eedc1dd15bdd56538b99f

14 years agochanged default status output to match ProQuake 4.51
havoc [Thu, 18 Nov 2010 14:09:20 +0000 (14:09 +0000)]
changed default status output to match ProQuake 4.51

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10606 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=578b5de9ecf597622f640cff987130283dd098ae

14 years agodon't spam warnings about bogus frame numbers in states, because FvF
havoc [Thu, 18 Nov 2010 02:45:31 +0000 (02:45 +0000)]
don't spam warnings about bogus frame numbers in states, because FvF
does this all the time, developer_extra 1 will reenable these

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10605 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7e3d1e3957d8b5f7c4586ac3a99af16f63e16c31

14 years agofix proquake rcon replies - use NetConn_Write, not NetConn_WriteString
havoc [Thu, 18 Nov 2010 01:53:31 +0000 (01:53 +0000)]
fix proquake rcon replies - use NetConn_Write, not NetConn_WriteString

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10604 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=5e61ba1b0bf8387dc28a22dce5e236a558c140b3

14 years agoadded server support for proquake rcon when running quake protocol
havoc [Thu, 18 Nov 2010 01:44:07 +0000 (01:44 +0000)]
added server support for proquake rcon when running quake protocol

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10603 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=59f4e5291192d918f06fe0b2f86c462441c9e204

14 years agodeveloper_extra: also spam some messages during model loading regarding .skin file...
divverent [Wed, 17 Nov 2010 21:05:48 +0000 (21:05 +0000)]
developer_extra: also spam some messages during model loading regarding .skin file parsing

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10602 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=c8572881a18c688dbabeebd204b6638792879327

14 years agoplayvideo: cl_video_keepaspectratio == 2 will do clip instead of stretch, added simpl...
vortex [Tue, 16 Nov 2010 22:14:27 +0000 (22:14 +0000)]
playvideo: cl_video_keepaspectratio == 2 will do clip instead of stretch, added simple fadein/fadeout effects via cl_video_fadein and cl_video_fadeout cvars (which sets seconds).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10601 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=961dbcdf0f9f71366dfd4eb78f800c3118b3d3bf

14 years agoilluminated surfaces are now sorted by texture, giving a good fps
havoc [Sun, 14 Nov 2010 13:24:27 +0000 (13:24 +0000)]
illuminated surfaces are now sorted by texture, giving a good fps
increase, especially in realtime world lighting, this can be turned off
with the r_shadow_sortsurfaces cvar if desired

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10599 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=14b5649a2b45037ad244a2d2c2dcae6049fc6ce6

14 years agonow that performance of cl_decals_newsystem is not terrible, enable it
havoc [Fri, 19 Nov 2010 12:31:55 +0000 (12:31 +0000)]
now that performance of cl_decals_newsystem is not terrible, enable it
by default

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

14 years agodo not generate vertexposition/vertexmesh arrays in
havoc [Fri, 19 Nov 2010 12:24:34 +0000 (12:24 +0000)]
do not generate vertexposition/vertexmesh arrays in
RSurf_ActiveCustomEntity, this is a major fps aid
use vertex3f rather than vertexposition array in entity decal handling
make fewer calls to R_Mesh_ResizeArrays

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

14 years agooptimize prologic inversion, it was really showing up in profiles
havoc [Fri, 19 Nov 2010 12:23:03 +0000 (12:23 +0000)]
optimize prologic inversion, it was really showing up in profiles

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

14 years agomatch sound radius in Quake 1.01, where it was effectively 1200
havoc [Fri, 19 Nov 2010 10:36:06 +0000 (10:36 +0000)]
match sound radius in Quake 1.01, where it was effectively 1200

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

14 years agochange default snd_soundradius back to 1000, matching Quake
havoc [Fri, 19 Nov 2010 10:10:43 +0000 (10:10 +0000)]
change default snd_soundradius back to 1000, matching Quake

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

14 years agofor purposes of better compatibility with proquake servers, darkplaces
havoc [Thu, 18 Nov 2010 15:47:52 +0000 (15:47 +0000)]
for purposes of better compatibility with proquake servers, darkplaces
client now pretends to be proquake 3.40 when connecting to quake
protocol servers, this enables precise aim and the proquake NAT fix
(which the server only supports on proquake clients...  grr)

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

14 years agochanged default status output to match ProQuake 4.51
havoc [Thu, 18 Nov 2010 14:09:20 +0000 (14:09 +0000)]
changed default status output to match ProQuake 4.51

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

14 years agodon't spam warnings about bogus frame numbers in states, because FvF
havoc [Thu, 18 Nov 2010 02:45:31 +0000 (02:45 +0000)]
don't spam warnings about bogus frame numbers in states, because FvF
does this all the time, developer_extra 1 will reenable these

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

14 years agofix proquake rcon replies - use NetConn_Write, not NetConn_WriteString
havoc [Thu, 18 Nov 2010 01:53:31 +0000 (01:53 +0000)]
fix proquake rcon replies - use NetConn_Write, not NetConn_WriteString

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

14 years agoadded server support for proquake rcon when running quake protocol
havoc [Thu, 18 Nov 2010 01:44:07 +0000 (01:44 +0000)]
added server support for proquake rcon when running quake protocol

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

14 years agodeveloper_extra: also spam some messages during model loading regarding .skin file...
divverent [Wed, 17 Nov 2010 21:05:48 +0000 (21:05 +0000)]
developer_extra: also spam some messages during model loading regarding .skin file parsing

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

14 years agoplayvideo: cl_video_keepaspectratio == 2 will do clip instead of stretch, added simpl...
vortex [Tue, 16 Nov 2010 22:14:27 +0000 (22:14 +0000)]
playvideo: cl_video_keepaspectratio == 2 will do clip instead of stretch, added simple fadein/fadeout effects via cl_video_fadein and cl_video_fadeout cvars (which sets seconds).

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

14 years agoilluminated surfaces are now sorted by texture, giving a good fps
havoc [Sun, 14 Nov 2010 13:24:27 +0000 (13:24 +0000)]
illuminated surfaces are now sorted by texture, giving a good fps
increase, especially in realtime world lighting, this can be turned off
with the r_shadow_sortsurfaces cvar if desired

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

14 years agorename meshes to draws in r_speeds report
havoc [Sun, 14 Nov 2010 13:23:32 +0000 (13:23 +0000)]
rename meshes to draws in r_speeds report
added drawn vertices count alongside the triangles count

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

14 years agofix some HLSL errors
havoc [Sat, 13 Nov 2010 15:32:14 +0000 (15:32 +0000)]
fix some HLSL errors
fix a warning on some ft2 code

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

14 years agoavoid NULL pointer access if a surface had an unsupported type
divverent [Sat, 13 Nov 2010 14:07:13 +0000 (14:07 +0000)]
avoid NULL pointer access if a surface had an unsupported type

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10596 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a0c28f5d37f75edd41a377b6eee32fa932097151

14 years agoshow more detail in "has no triangles" and "has no vertexes" warning
divverent [Sat, 13 Nov 2010 14:05:04 +0000 (14:05 +0000)]
show more detail in "has no triangles" and "has no vertexes" warning

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10595 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=6acdb81fe2b7489fb2fa6c7c07b73e4a9ba374d0

14 years agoavoid NULL pointer access if a surface had an unsupported type
divverent [Sat, 13 Nov 2010 14:07:13 +0000 (14:07 +0000)]
avoid NULL pointer access if a surface had an unsupported type

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

14 years agoshow more detail in "has no triangles" and "has no vertexes" warning
divverent [Sat, 13 Nov 2010 14:05:04 +0000 (14:05 +0000)]
show more detail in "has no triangles" and "has no vertexes" warning

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

14 years agoskip zero triangle batches, for good measure
havoc [Sat, 13 Nov 2010 12:39:52 +0000 (12:39 +0000)]
skip zero triangle batches, for good measure

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

14 years agofix wrong-texture rendering in stonekeep where a 0-triangles patch
havoc [Sat, 13 Nov 2010 12:35:42 +0000 (12:35 +0000)]
fix wrong-texture rendering in stonekeep where a 0-triangles patch
(probably degenerate) was causing the surface batcher to give up early,
and render the previous batch instead (drawing over a perfectly good
piece of geometry with the wrong texture...)

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

14 years agouse less R_Mesh_ResetTextureState calls for more performance
havoc [Sat, 13 Nov 2010 11:07:20 +0000 (11:07 +0000)]
use less R_Mesh_ResetTextureState calls for more performance

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

14 years agorender shownetgraph much faster by drawing an entire batch of lines at a
havoc [Sat, 13 Nov 2010 09:03:09 +0000 (09:03 +0000)]
render shownetgraph much faster by drawing an entire batch of lines at a
time

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

14 years agofix some warnings
havoc [Sat, 13 Nov 2010 09:02:45 +0000 (09:02 +0000)]
fix some warnings

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

14 years agofix serious bug with stencil shadows from world caused by a mysterious #if 0
havoc [Thu, 11 Nov 2010 00:39:20 +0000 (00:39 +0000)]
fix serious bug with stencil shadows from world caused by a mysterious #if 0

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10585 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=214432376054380f1f6ca38187510b8898057f52

14 years agofix leaked font fallbacks
divverent [Fri, 12 Nov 2010 18:40:51 +0000 (18:40 +0000)]
fix leaked font fallbacks

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10589 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=b7ca51ab466afc1058294fd91688da472d391293

14 years agoStore the data pointer and free it on Font_UnloadFont
divverent [Fri, 12 Nov 2010 18:40:47 +0000 (18:40 +0000)]
Store the data pointer and free it on Font_UnloadFont

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10588 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=179be6fd1f715bac570e73aa9cadb0e08d0f7979

14 years agoFree the data of each font attachment in Font_UnloadFont
divverent [Fri, 12 Nov 2010 18:40:44 +0000 (18:40 +0000)]
Free the data of each font attachment in Font_UnloadFont

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10587 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=277da881871d0b87f044765618f2b3297457bea7

14 years agobe more clear in the overflow message of OGG_FetchSound
divverent [Thu, 11 Nov 2010 14:05:27 +0000 (14:05 +0000)]
be more clear in the overflow message of OGG_FetchSound

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10586 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=d24de034fdb60c32bc0e6937362884443ad262f4

14 years agofix leaked font fallbacks
divverent [Fri, 12 Nov 2010 18:40:51 +0000 (18:40 +0000)]
fix leaked font fallbacks

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

14 years agoStore the data pointer and free it on Font_UnloadFont
divverent [Fri, 12 Nov 2010 18:40:47 +0000 (18:40 +0000)]
Store the data pointer and free it on Font_UnloadFont

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

14 years agoFree the data of each font attachment in Font_UnloadFont
divverent [Fri, 12 Nov 2010 18:40:44 +0000 (18:40 +0000)]
Free the data of each font attachment in Font_UnloadFont

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

14 years agobe more clear in the overflow message of OGG_FetchSound
divverent [Thu, 11 Nov 2010 14:05:27 +0000 (14:05 +0000)]
be more clear in the overflow message of OGG_FetchSound

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

14 years agofix serious bug with stencil shadows from world caused by a mysterious #if 0
havoc [Thu, 11 Nov 2010 00:39:20 +0000 (00:39 +0000)]
fix serious bug with stencil shadows from world caused by a mysterious #if 0

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

14 years agoadd joy_axiskeyevents cvar which turns on engine-side emulation of arrow button event...
vortex [Tue, 9 Nov 2010 19:04:48 +0000 (19:04 +0000)]
add joy_axiskeyevents cvar which turns on engine-side emulation of arrow button events since not all drivers generate button events for movement axes. Also made wgl joystick code a bit more similar to SDL one.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10584 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=f02a0166f16a9745aab3e0139fa39ae97f66f23d

14 years agoDPrint the LHNET_Read and LHNET_Write errors (as they may just indicate lack of IPv6...
divverent [Sun, 7 Nov 2010 18:37:40 +0000 (18:37 +0000)]
DPrint the LHNET_Read and LHNET_Write errors (as they may just indicate lack of IPv6 connectivity and don't mean DP won't work)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10583 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=a50c2fe2f0c39462a60b9a9f8ccbe43942b75a28

14 years agoadd joy_axiskeyevents cvar which turns on engine-side emulation of arrow button event...
vortex [Tue, 9 Nov 2010 19:04:48 +0000 (19:04 +0000)]
add joy_axiskeyevents cvar which turns on engine-side emulation of arrow button events since not all drivers generate button events for movement axes. Also made wgl joystick code a bit more similar to SDL one.

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

14 years agoDPrint the LHNET_Read and LHNET_Write errors (as they may just indicate lack of IPv6...
divverent [Sun, 7 Nov 2010 18:37:40 +0000 (18:37 +0000)]
DPrint the LHNET_Read and LHNET_Write errors (as they may just indicate lack of IPv6 connectivity and don't mean DP won't work)

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

14 years agonew shader parameter "dppolygonoffset <factor> <offset>"; new cvars mod_q3shader_defa...
divverent [Sun, 7 Nov 2010 13:09:01 +0000 (13:09 +0000)]
new shader parameter "dppolygonoffset <factor> <offset>"; new cvars mod_q3shader_default_polygonoffset and mod_q3shader_default_polygonfactor

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

14 years agonew shader parameter "dppolygonoffset <factor> <offset>"; new cvars mod_q3shader_defa...
divverent [Sun, 7 Nov 2010 13:09:01 +0000 (13:09 +0000)]
new shader parameter "dppolygonoffset <factor> <offset>"; new cvars mod_q3shader_default_polygonoffset and mod_q3shader_default_polygonfactor

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10582 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=44615233a17f7866d1c0f84e242802484f7a8c99

14 years agofix a small bug regarding bobfall
divverent [Sat, 6 Nov 2010 15:08:44 +0000 (15:08 +0000)]
fix a small bug regarding bobfall

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10581 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=3e3a733d66e1e496893615ec9d998063350739c8

14 years agofix a small bug regarding bobfall
divverent [Sat, 6 Nov 2010 15:08:44 +0000 (15:08 +0000)]
fix a small bug regarding bobfall

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

14 years agoadd -framework IOKit to allow changing mouse acceleration parameters
divverent [Fri, 5 Nov 2010 14:32:07 +0000 (14:32 +0000)]
add -framework IOKit to allow changing mouse acceleration parameters

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

14 years agocopy the apple_mouse_noaccel hack into vid_sdl too
divverent [Fri, 5 Nov 2010 13:27:13 +0000 (13:27 +0000)]
copy the apple_mouse_noaccel hack into vid_sdl too

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

14 years agoremove some stupid \n chars in infobar strings
divverent [Thu, 4 Nov 2010 19:38:13 +0000 (19:38 +0000)]
remove some stupid \n chars in infobar strings

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10578 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=aea6604c81982853a19600d44067197c28064528

14 years agoremove some stupid \n chars in infobar strings
divverent [Thu, 4 Nov 2010 19:38:13 +0000 (19:38 +0000)]
remove some stupid \n chars in infobar strings

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

14 years agoR_CompleteLightPoint: more correct sampling
vortex [Sat, 30 Oct 2010 23:10:35 +0000 (23:10 +0000)]
R_CompleteLightPoint: more correct sampling

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10574 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=57b67e4e7fa223b3fb7d76fe5702ae636aa8fc0f

14 years agowin32: don't use select() for waiting, use Sleep() again
divverent [Thu, 4 Nov 2010 08:10:10 +0000 (08:10 +0000)]
win32: don't use select() for waiting, use Sleep() again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10577 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=87665e3d8fa1c4ab1276becc1da124eea79a53dd

14 years agowin32: don't use select() for waiting, use Sleep() again
divverent [Thu, 4 Nov 2010 08:10:10 +0000 (08:10 +0000)]
win32: don't use select() for waiting, use Sleep() again

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

14 years agonew m_newmap() MenuQC function which gets executed each time client goes new level...
vortex [Sun, 31 Oct 2010 23:04:24 +0000 (23:04 +0000)]
new m_newmap() MenuQC function which gets executed each time client goes new level. +Option for Blood Omnicide which lets menu QC to control keys while playing video.

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10576 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=7e737da913d7dd502568fa32f3d72d30a971738d

14 years agoremove unnecessary Con_Printf
vortex [Sun, 31 Oct 2010 03:11:58 +0000 (03:11 +0000)]
remove unnecessary Con_Printf

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10575 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=409f1e598f852332f7cefc554c18c511af0388ed

14 years agonew m_newmap() MenuQC function which gets executed each time client goes new level...
vortex [Sun, 31 Oct 2010 23:04:24 +0000 (23:04 +0000)]
new m_newmap() MenuQC function which gets executed each time client goes new level. +Option for Blood Omnicide which lets menu QC to control keys while playing video.

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

14 years agoremove unnecessary Con_Printf
vortex [Sun, 31 Oct 2010 03:11:58 +0000 (03:11 +0000)]
remove unnecessary Con_Printf

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

14 years agoR_CompleteLightPoint: more correct sampling
vortex [Sat, 30 Oct 2010 23:10:35 +0000 (23:10 +0000)]
R_CompleteLightPoint: more correct sampling

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

14 years agofix SHADERSTATICPARMS_COUNT to right value
vortex [Sat, 30 Oct 2010 18:55:47 +0000 (18:55 +0000)]
fix SHADERSTATICPARMS_COUNT to right value

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10573 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=e09c3d37a2261c5ae5370bb2e51d313bf1dcbe92

14 years agoFor lightgrid sampling move lightstyle[0] applying to shader domain as it seems to...
vortex [Sat, 30 Oct 2010 18:24:09 +0000 (18:24 +0000)]
For lightgrid sampling move lightstyle[0] applying to shader domain as it seems to be far more precise here (see http://omnicide.legacy-of-kain.ru/work/cbo_glslgridlightchangecomp.gif), while leaving the default way for < GL2 paths, dunno why it happens and i cant find any reasons for that, current approach 'just works'. Also added "_enable" cvars for all r_glsl_postprocess_uservec* which will toggle their usage (also creates USERVEC* define once enabled).

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10572 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=18b296a035004c05afe62f48e164321ca863f4c7

14 years agooffsetmapping: make it work on ATI Radeon 9500-9800/X300 again
divverent [Sat, 30 Oct 2010 18:19:38 +0000 (18:19 +0000)]
offsetmapping: make it work on ATI Radeon 9500-9800/X300 again

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10571 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=2138c1a71154ae6661f42f9491f0a9e3d363d5c0

14 years agofix SHADERSTATICPARMS_COUNT to right value
vortex [Sat, 30 Oct 2010 18:55:47 +0000 (18:55 +0000)]
fix SHADERSTATICPARMS_COUNT to right value

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

14 years agoFor lightgrid sampling move lightstyle[0] applying to shader domain as it seems to...
vortex [Sat, 30 Oct 2010 18:24:09 +0000 (18:24 +0000)]
For lightgrid sampling move lightstyle[0] applying to shader domain as it seems to be far more precise here (see http://omnicide.legacy-of-kain.ru/work/cbo_glslgridlightchangecomp.gif), while leaving the default way for < GL2 paths, dunno why it happens and i cant find any reasons for that, current approach 'just works'. Also added "_enable" cvars for all r_glsl_postprocess_uservec* which will toggle their usage (also creates USERVEC* define once enabled).

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

14 years agooffsetmapping: make it work on ATI Radeon 9500-9800/X300 again
divverent [Sat, 30 Oct 2010 18:19:38 +0000 (18:19 +0000)]
offsetmapping: make it work on ATI Radeon 9500-9800/X300 again

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

14 years agooops, video texture unlinking was accidentally removed, restore it
vortex [Fri, 29 Oct 2010 17:54:59 +0000 (17:54 +0000)]
oops, video texture unlinking was accidentally removed, restore it

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10568 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=8aecffa298082cc5daaf6f8ac0a44aa9d306c832

14 years agocvar "cl_video_keepaspectratio" which scales fullscreen video to keep original aspect...
vortex [Fri, 29 Oct 2010 17:50:35 +0000 (17:50 +0000)]
cvar "cl_video_keepaspectratio" which scales fullscreen video to keep original aspect ratio on widescreen resolutions

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10567 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=25867339bfc6091a87bc90d54321954c2ac10633

14 years agofix some warnings
divverent [Fri, 29 Oct 2010 20:19:14 +0000 (20:19 +0000)]
fix some warnings

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10570 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=018f5c7c845311a157da255d819683770c6543c4

14 years agoadd a "dummy protocol" support
divverent [Fri, 29 Oct 2010 20:19:10 +0000 (20:19 +0000)]
add a "dummy protocol" support

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10569 d7cf8633-e32d-0410-b094-e92efae38249
::stable-branch::merge=82955f5db504bac6134c865d8a5efa40196724cd

14 years agofix some warnings
divverent [Fri, 29 Oct 2010 20:19:14 +0000 (20:19 +0000)]
fix some warnings

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