]> de.git.xonotic.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
13 years agoadded xcode project for building DarkPlaces on iOS using SDL 1.3
havoc [Wed, 2 Feb 2011 18:44:36 +0000 (18:44 +0000)]
added xcode project for building DarkPlaces on iOS using SDL 1.3

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

13 years agodon't use MacOSX-specific code with __IPHONEOS__ defined
havoc [Wed, 2 Feb 2011 18:35:57 +0000 (18:35 +0000)]
don't use MacOSX-specific code with __IPHONEOS__ defined

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

13 years agoimplemented Texture_UpdatePartial
eihrul [Tue, 1 Feb 2011 14:14:04 +0000 (14:14 +0000)]
implemented Texture_UpdatePartial

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

13 years agoalso apply volume.value to ambient sounds (is this really right?)
divverent [Mon, 31 Jan 2011 06:05:54 +0000 (06:05 +0000)]
also apply volume.value to ambient sounds (is this really right?)

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

13 years agoenable mod_bsp_portalize by default
havoc [Mon, 31 Jan 2011 04:40:45 +0000 (04:40 +0000)]
enable mod_bsp_portalize by default
enable r_shadow_realtime_world_compileportalculling by default
this is intended to restore lost rtworld performance, however it may not
be optimal on some q3bsp maps

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

13 years agodefault gl_nopartialtextureupdates to 0 because it hurts fps a lot
havoc [Mon, 31 Jan 2011 03:37:10 +0000 (03:37 +0000)]
default gl_nopartialtextureupdates to 0 because it hurts fps a lot

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

13 years agoclean up the Compile as C and Compile as C++ options on the files in the projects...
havoc [Mon, 31 Jan 2011 03:33:06 +0000 (03:33 +0000)]
clean up the Compile as C and Compile as C++ options on the files in the projects, thanks to Willis for advice on how to make this a project setting rather than a per file setting.

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

13 years agofix compilation of dpsoftrast.c in MSVC - it doesn't seem to like initializers on...
havoc [Mon, 31 Jan 2011 00:57:09 +0000 (00:57 +0000)]
fix compilation of dpsoftrast.c in MSVC - it doesn't seem to like initializers on __m128 variables - and set it to compile as C++ in wgl build (like all other files in wgl build)

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

13 years agoadded dpsoftrast to project files
havoc [Sun, 30 Jan 2011 21:52:03 +0000 (21:52 +0000)]
added dpsoftrast to project files
added x64 build mode but it does not compile yet (dpsoftrast issues)

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

13 years agosv_status_privacy: also apply to CCREQ_PLAYER_INFO
divverent [Sun, 30 Jan 2011 20:15:44 +0000 (20:15 +0000)]
sv_status_privacy: also apply to CCREQ_PLAYER_INFO

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

13 years agoadded SDL 1.3 support
havoc [Sun, 30 Jan 2011 17:29:37 +0000 (17:29 +0000)]
added SDL 1.3 support

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

13 years agoSquashed commit of the following:
divverent [Sat, 29 Jan 2011 22:19:48 +0000 (22:19 +0000)]
Squashed commit of the following:

commit 5c70a0cf78ecde6a1da9fe73516f8d2fe2251c81
Author: terencehill <piuntn@gmail.com>
Date:   Mon Jan 24 00:39:13 2011 +0100

    Fix a bunch of typos

Signed-off-by: terencehill <piuntn@gmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10781 d7cf8633-e32d-0410-b094-e92efae38249

13 years agoSquashed commit of the following:
divverent [Sat, 29 Jan 2011 22:05:24 +0000 (22:05 +0000)]
Squashed commit of the following:

commit 4eece1a8617ec2e21dbc8732af65727792e432fb
Author: terencehill <piuntn@gmail.com>
Date:   Thu Jan 13 17:26:51 2011 +0100

    Color directories with blue when using autocompletion in the console. Improves readability.

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

13 years agoupdate copyright year
havoc [Sat, 29 Jan 2011 14:08:38 +0000 (14:08 +0000)]
update copyright year

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

13 years agoprevent a segfault in case a bsp file has zero nodes (happens on broken input to...
divverent [Sat, 29 Jan 2011 10:14:13 +0000 (10:14 +0000)]
prevent a segfault in case a bsp file has zero nodes (happens on broken input to q3map2)

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

13 years agofix a crash on edict_num(32767)
divverent [Sat, 29 Jan 2011 08:32:32 +0000 (08:32 +0000)]
fix a crash on edict_num(32767)

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

13 years agoadded _USE_MATH_DEFINES for weird MSVC problem
eihrul [Sat, 29 Jan 2011 07:13:28 +0000 (07:13 +0000)]
added _USE_MATH_DEFINES for weird MSVC problem

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

13 years agofix a C++ error
havoc [Sat, 29 Jan 2011 00:08:39 +0000 (00:08 +0000)]
fix a C++ error

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

13 years agofix some C++ warnings
havoc [Fri, 28 Jan 2011 23:56:56 +0000 (23:56 +0000)]
fix some C++ warnings

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

13 years agooptimized VertexColor shader
eihrul [Fri, 28 Jan 2011 22:31:05 +0000 (22:31 +0000)]
optimized VertexColor shader

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

13 years agodon't report texture compression support in softrast renderpath
eihrul [Fri, 28 Jan 2011 22:07:29 +0000 (22:07 +0000)]
don't report texture compression support in softrast renderpath

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

13 years agoensure cull face state is committed in softrast path
eihrul [Fri, 28 Jan 2011 15:19:29 +0000 (15:19 +0000)]
ensure cull face state is committed in softrast path

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

13 years agofix clipping and backface culling bugs
eihrul [Fri, 28 Jan 2011 09:52:15 +0000 (09:52 +0000)]
fix clipping and backface culling bugs

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

13 years agofaster attribute interpolation in ProcessTriangles
eihrul [Fri, 28 Jan 2011 05:21:59 +0000 (05:21 +0000)]
faster attribute interpolation in ProcessTriangles

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

13 years agomore texturing optimizations
eihrul [Fri, 28 Jan 2011 04:01:12 +0000 (04:01 +0000)]
more texturing optimizations

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

13 years agoremoving one more reciprocal...
eihrul [Fri, 28 Jan 2011 02:35:28 +0000 (02:35 +0000)]
removing one more reciprocal...

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

13 years agoswitch usage of reciprocals back to division (precision is way too low)
eihrul [Fri, 28 Jan 2011 02:19:24 +0000 (02:19 +0000)]
switch usage of reciprocals back to division (precision is way too low)

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

13 years agoSSE2 blending optimizations
eihrul [Fri, 28 Jan 2011 01:31:11 +0000 (01:31 +0000)]
SSE2 blending optimizations

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

13 years agodelay backface culling till after near plane test
eihrul [Thu, 27 Jan 2011 23:09:23 +0000 (23:09 +0000)]
delay backface culling till after near plane test

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

13 years agofix mipedgetc typo
eihrul [Thu, 27 Jan 2011 21:48:02 +0000 (21:48 +0000)]
fix mipedgetc typo

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

13 years agoreplace some divisions with reciprocals
eihrul [Thu, 27 Jan 2011 14:55:30 +0000 (14:55 +0000)]
replace some divisions with reciprocals

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

13 years agoadded in some basic polygon offset compatibility (though using w buffer units)
eihrul [Thu, 27 Jan 2011 14:19:05 +0000 (14:19 +0000)]
added in some basic polygon offset compatibility (though using w buffer units)

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

13 years agofix accessing of bottom mip level in Texture2DVaryingBGRA8
eihrul [Thu, 27 Jan 2011 13:34:01 +0000 (13:34 +0000)]
fix accessing of bottom mip level in Texture2DVaryingBGRA8

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

13 years agoProcessTriangles SSE2 optimizations
eihrul [Thu, 27 Jan 2011 12:21:23 +0000 (12:21 +0000)]
ProcessTriangles SSE2 optimizations

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

13 years agotry to keep inter-span variables for texturing in sse registers
eihrul [Wed, 26 Jan 2011 23:24:48 +0000 (23:24 +0000)]
try to keep inter-span variables for texturing in sse registers

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

13 years agoremove unneeded "fast" case for nearest filtering
eihrul [Wed, 26 Jan 2011 15:45:07 +0000 (15:45 +0000)]
remove unneeded "fast" case for nearest filtering

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

13 years agoSSE2 opts for nearest filtering
eihrul [Wed, 26 Jan 2011 15:35:52 +0000 (15:35 +0000)]
SSE2 opts for nearest filtering

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

13 years agofix for lightmap glow path to use one less multiply
eihrul [Wed, 26 Jan 2011 14:55:04 +0000 (14:55 +0000)]
fix for lightmap glow path to use one less multiply

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

13 years agoSSE2 optimized lightmap shader
eihrul [Wed, 26 Jan 2011 14:44:45 +0000 (14:44 +0000)]
SSE2 optimized lightmap shader

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

13 years agoSSE2 optimized Texture2DVaryingBGRA8
eihrul [Wed, 26 Jan 2011 13:40:21 +0000 (13:40 +0000)]
SSE2 optimized Texture2DVaryingBGRA8

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

13 years agoinitial obfuscation of ProcessTriangles with SSE2 code for testing
eihrul [Wed, 26 Jan 2011 13:00:02 +0000 (13:00 +0000)]
initial obfuscation of ProcessTriangles with SSE2 code for testing

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

13 years agoonly respect vid_soft variable if SSE2_PRESENT is defined
eihrul [Wed, 26 Jan 2011 12:24:09 +0000 (12:24 +0000)]
only respect vid_soft variable if SSE2_PRESENT is defined

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

13 years agoadded SSE2_PRESENT define
eihrul [Wed, 26 Jan 2011 12:15:42 +0000 (12:15 +0000)]
added SSE2_PRESENT define

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

13 years agochange DPSOFTRAST default texture filter to linear, it hurts fps some
havoc [Wed, 26 Jan 2011 11:48:27 +0000 (11:48 +0000)]
change DPSOFTRAST default texture filter to linear, it hurts fps some
but looks substantially better

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

13 years agooptimized SHADERMODE_LIGHTSOURCE to do some early-out checks
havoc [Wed, 26 Jan 2011 11:46:12 +0000 (11:46 +0000)]
optimized SHADERMODE_LIGHTSOURCE to do some early-out checks

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

13 years agoimplemented SHADERMODE_LIGHTSOURCE with specular, shadowmapping and
havoc [Wed, 26 Jan 2011 11:33:58 +0000 (11:33 +0000)]
implemented SHADERMODE_LIGHTSOURCE with specular, shadowmapping and
cubefilter are not yet implemented

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

13 years agofix the bug that affects showsurfaces 3 entirely now, hopefully
divverent [Tue, 25 Jan 2011 20:50:25 +0000 (20:50 +0000)]
fix the bug that affects showsurfaces 3 entirely now, hopefully

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

13 years agoadded glow texture support in SHADERMODE_LIGHTMAP
havoc [Tue, 25 Jan 2011 15:02:49 +0000 (15:02 +0000)]
added glow texture support in SHADERMODE_LIGHTMAP

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

13 years agoadded SHADERMODE_LIGHTDIRECTION code (model rendering) with specular,
havoc [Tue, 25 Jan 2011 13:40:50 +0000 (13:40 +0000)]
added SHADERMODE_LIGHTDIRECTION code (model rendering) with specular,
glow and colormapping support

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

13 years agochanged the texture bind code for the RENDERPATH_SOFT to work like the
havoc [Tue, 25 Jan 2011 13:39:10 +0000 (13:39 +0000)]
changed the texture bind code for the RENDERPATH_SOFT to work like the
RENDERPATH_D3D9 code

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

13 years agofix overrun test for optimized texture routines
eihrul [Tue, 25 Jan 2011 13:00:25 +0000 (13:00 +0000)]
fix overrun test for optimized texture routines

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

13 years agofix crash on texturing a span that starts at the bottom row of a texture
havoc [Tue, 25 Jan 2011 12:42:07 +0000 (12:42 +0000)]
fix crash on texturing a span that starts at the bottom row of a texture
but does not end on the bottom row of the texture, which was passing a
check for an optimized fill routine but should not have been

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

13 years agofix two errors related to the R_FrameData_Alloc use in batching
havoc [Tue, 25 Jan 2011 06:38:59 +0000 (06:38 +0000)]
fix two errors related to the R_FrameData_Alloc use in batching

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

13 years agofailed attempt at improving performance of bilinear filter routines by
havoc [Mon, 24 Jan 2011 14:36:44 +0000 (14:36 +0000)]
failed attempt at improving performance of bilinear filter routines by
using less integer multiplies, no apparent effect on benchmarks,
abandoned but posted here for reference (disabled)

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

13 years agochanged DPSOFTRAST to use bgra8 intermediate storage while rendering,
havoc [Mon, 24 Jan 2011 12:39:26 +0000 (12:39 +0000)]
changed DPSOFTRAST to use bgra8 intermediate storage while rendering,
the float support code remains and will not be going away (and some
shaders are simply too complex to use bgra8 anyway), this gains a few
fps in most situations

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

13 years agochange q1bsp lightmap to vertex color conversion to scale colors
havoc [Mon, 24 Jan 2011 12:34:27 +0000 (12:34 +0000)]
change q1bsp lightmap to vertex color conversion to scale colors
correctly

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

13 years agoadded an experimental alternate code path in DPSOFTRAST where all the
havoc [Mon, 24 Jan 2011 12:33:45 +0000 (12:33 +0000)]
added an experimental alternate code path in DPSOFTRAST where all the
span fillers use bgra8 instead of floats for intermediate storage, only
small gains observed but still good, this mode has to be activated by
the r_test cvar at this time

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

13 years agofix some compile errors on vid_sdl.c when compiling it as C++
havoc [Mon, 24 Jan 2011 05:48:21 +0000 (05:48 +0000)]
fix some compile errors on vid_sdl.c when compiling it as C++

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

13 years agodraw things as black if no shader code exists yet
havoc [Sun, 23 Jan 2011 17:24:06 +0000 (17:24 +0000)]
draw things as black if no shader code exists yet

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

13 years agofix log(2) compile error as C++, should have been log(2.0f)
havoc [Sun, 23 Jan 2011 17:08:47 +0000 (17:08 +0000)]
fix log(2) compile error as C++, should have been log(2.0f)

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

13 years agofix several conversion warnings
havoc [Sun, 23 Jan 2011 16:43:37 +0000 (16:43 +0000)]
fix several conversion warnings

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

13 years agofix another void conversion
havoc [Sun, 23 Jan 2011 16:30:02 +0000 (16:30 +0000)]
fix another void conversion

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

13 years agofix a couple void conversions
havoc [Sun, 23 Jan 2011 16:28:57 +0000 (16:28 +0000)]
fix a couple void conversions

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

13 years agoenabled more features for SHADERMODE_GENERIC
havoc [Sun, 23 Jan 2011 16:25:25 +0000 (16:25 +0000)]
enabled more features for SHADERMODE_GENERIC
added texcoord matrix transforms (sky scrolls now)

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

13 years agoadded support for disabling mipmapping using the non-MIPMAP filters
havoc [Sun, 23 Jan 2011 15:57:55 +0000 (15:57 +0000)]
added support for disabling mipmapping using the non-MIPMAP filters

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

13 years agofix bugs in DPSOFTRAST_CalculateMipmaps
havoc [Sun, 23 Jan 2011 15:55:26 +0000 (15:55 +0000)]
fix bugs in DPSOFTRAST_CalculateMipmaps
implemented per-triangle mipmap selection

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

13 years agotabs, not spaces for indenting
havoc [Sun, 23 Jan 2011 14:26:30 +0000 (14:26 +0000)]
tabs, not spaces for indenting

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

13 years agofaster texture mapper
eihrul [Sun, 23 Jan 2011 13:32:49 +0000 (13:32 +0000)]
faster texture mapper

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

13 years agomove double break in pseudoalpha case to the right case...
eihrul [Sat, 22 Jan 2011 23:37:08 +0000 (23:37 +0000)]
move double break in pseudoalpha case to the right case...

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

13 years agofix particle blending
havoc [Sat, 22 Jan 2011 23:33:26 +0000 (23:33 +0000)]
fix particle blending

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

13 years agouse texel center sampling on textures
havoc [Sat, 22 Jan 2011 23:28:01 +0000 (23:28 +0000)]
use texel center sampling on textures

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

13 years agoonly bind needed textures in softrast path (to avoid texunit conflicts)
eihrul [Sat, 22 Jan 2011 23:06:44 +0000 (23:06 +0000)]
only bind needed textures in softrast path (to avoid texunit conflicts)

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

13 years agoremoved numtexcoords parameter in DPSOFTRAST_Draw_LoadVertices
havoc [Sat, 22 Jan 2011 22:14:29 +0000 (22:14 +0000)]
removed numtexcoords parameter in DPSOFTRAST_Draw_LoadVertices

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

13 years agoreworking DPSOFTRAST array copying to automatically detect used arrays
havoc [Sat, 22 Jan 2011 22:02:45 +0000 (22:02 +0000)]
reworking DPSOFTRAST array copying to automatically detect used arrays

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

13 years agofix some crashes related to video subsystem not being reinitialized on vid_restart...
eihrul [Sat, 22 Jan 2011 21:38:07 +0000 (21:38 +0000)]
fix some crashes related to video subsystem not being reinitialized on vid_restart in SDL backend

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

13 years agoadded DPSOFTRAST software rasterizer, a work in progress
havoc [Sat, 22 Jan 2011 21:00:49 +0000 (21:00 +0000)]
added DPSOFTRAST software rasterizer, a work in progress

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

13 years agofix a crash with tcmod turbulent where it was not requesting texcoords
havoc [Sat, 22 Jan 2011 20:55:05 +0000 (20:55 +0000)]
fix a crash with tcmod turbulent where it was not requesting texcoords

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

13 years agocache multiple loaded instances of the same font (TODO: can we also cache the freetyp...
divverent [Sat, 22 Jan 2011 19:09:48 +0000 (19:09 +0000)]
cache multiple loaded instances of the same font (TODO: can we also cache the freetype object itself? probably not without major changes, as these are size specific); saves about 150M memory use in Xonotic

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

13 years agosync libjpeg support from makefile to BSDmakefile
divverent [Fri, 21 Jan 2011 06:02:20 +0000 (06:02 +0000)]
sync libjpeg support from makefile to BSDmakefile

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

13 years agofix some missing changes in the D3D path when r_vertexposition_t was
havoc [Thu, 20 Jan 2011 14:24:23 +0000 (14:24 +0000)]
fix some missing changes in the D3D path when r_vertexposition_t was
removed

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

13 years agoVM_sprintf: properly handle "%02d"
divverent [Thu, 20 Jan 2011 06:33:18 +0000 (06:33 +0000)]
VM_sprintf: properly handle "%02d"

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

13 years agoreduced memory usage by around 20MB (no longer allocates interleaved
havoc [Tue, 18 Jan 2011 18:37:35 +0000 (18:37 +0000)]
reduced memory usage by around 20MB (no longer allocates interleaved
vertex arrays unless running D3D renderpath, now uses R_FrameData_Alloc
a lot more to avoid large static arrays)
R_FrameData system now never fails an alloc request (resizing as
needed), and has a mark system allowing space to be relinquished after
brief uses such as batch buffers
removed r_vertexposition_t as it was redundant (just use vertex3f)
gl_mesh_separatearrays cvar removed (vid.useinterleavedarrays is now used instead)
audited RSurf_PrepareVertices calls to make sure BATCHNEED_NOGAPS is
properly used

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

13 years agolower particle limit when using DP_SMALLMEMORY builds
havoc [Tue, 18 Jan 2011 18:22:23 +0000 (18:22 +0000)]
lower particle limit when using DP_SMALLMEMORY builds

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

13 years agofix a major performance issue with the GL11/GL13 path for rtlights where
havoc [Tue, 18 Jan 2011 17:29:54 +0000 (17:29 +0000)]
fix a major performance issue with the GL11/GL13 path for rtlights where
it did not request BATCHNEED_NOGAPS and thus processed a huge number of
unnecessary vertices

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

13 years agofix wateralpha
divverent [Tue, 18 Jan 2011 08:51:05 +0000 (08:51 +0000)]
fix wateralpha

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

13 years agofix a typo in the cg shader setup
havoc [Mon, 17 Jan 2011 18:00:43 +0000 (18:00 +0000)]
fix a typo in the cg shader setup

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

13 years agomake prvm_language saved
divverent [Mon, 17 Jan 2011 15:28:28 +0000 (15:28 +0000)]
make prvm_language saved

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

13 years agofix console margin calculation
divverent [Mon, 17 Jan 2011 15:28:26 +0000 (15:28 +0000)]
fix console margin calculation

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

13 years agofix description of prvm_language dumping mode
divverent [Mon, 17 Jan 2011 05:44:00 +0000 (05:44 +0000)]
fix description of prvm_language dumping mode

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

13 years agofix alias word combining
divverent [Sat, 15 Jan 2011 18:12:24 +0000 (18:12 +0000)]
fix alias word combining

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

13 years agomake it possible to turn off missing DDS file logging
divverent [Fri, 14 Jan 2011 23:51:56 +0000 (23:51 +0000)]
make it possible to turn off missing DDS file logging

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

13 years agouse the proper filename.pot instead of filename.dump.po for the empty .po file
divverent [Fri, 14 Jan 2011 21:01:28 +0000 (21:01 +0000)]
use the proper filename.pot instead of filename.dump.po for the empty .po file

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

13 years agoadded r_enableshadowvolumes cvar, this defaults to 1 but can be turned
havoc [Fri, 14 Jan 2011 00:24:59 +0000 (00:24 +0000)]
added r_enableshadowvolumes cvar, this defaults to 1 but can be turned
off to save a small amount of memory and speed up loading (shadowmaps
still work with it off)

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

13 years agofix a memory leak of glsl shader permutations
divverent [Thu, 13 Jan 2011 06:57:04 +0000 (06:57 +0000)]
fix a memory leak of glsl shader permutations

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

13 years agoadded cvar mod_bsp_portalize to decide whether to generate portals for
havoc [Thu, 13 Jan 2011 03:49:30 +0000 (03:49 +0000)]
added cvar mod_bsp_portalize to decide whether to generate portals for
culling purposes, this now defaults to 0, reducing load time but
disabling certain features (the only visible feature affected is
r_drawportals)

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

13 years agomake infobar height configurable
divverent [Wed, 12 Jan 2011 19:41:24 +0000 (19:41 +0000)]
make infobar height configurable

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

13 years agofix the latest fix to Font_IndexForSize
divverent [Tue, 11 Jan 2011 21:49:22 +0000 (21:49 +0000)]
fix the latest fix to Font_IndexForSize

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

13 years agofix a data type in Font_IndexForSize
divverent [Tue, 11 Jan 2011 21:40:57 +0000 (21:40 +0000)]
fix a data type in Font_IndexForSize

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

13 years agodrawcolorcodedstring: support full 6 parms (added starting rgb) and returns color...
vortex [Fri, 7 Jan 2011 21:51:34 +0000 (21:51 +0000)]
drawcolorcodedstring: support full 6 parms (added starting rgb) and returns color of the last character so colortags can affect multiline draw.

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

13 years agoAdded wasfreed() to menuqc builtinlist. Hushed "VM_bufstr_get: invalid string index...
vortex [Fri, 7 Jan 2011 18:31:37 +0000 (18:31 +0000)]
Added wasfreed() to menuqc builtinlist. Hushed "VM_bufstr_get: invalid string index" warning.

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