]> de.git.xonotic.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
13 years agoI don't think anyone needs my user files for the xcode project
havoc [Sun, 6 Feb 2011 22:24:38 +0000 (22:24 +0000)]
I don't think anyone needs my user files for the xcode project

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

13 years agofixed missing break statement
eihrul [Sun, 6 Feb 2011 12:47:26 +0000 (12:47 +0000)]
fixed missing break statement

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

13 years agoimplemented scissoring of triangles and extra necessary blendmode for xonotic hud
eihrul [Sun, 6 Feb 2011 12:44:54 +0000 (12:44 +0000)]
implemented scissoring of triangles and extra necessary blendmode for xonotic hud

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

13 years agocommitting missing function prototype
eihrul [Sun, 6 Feb 2011 10:46:59 +0000 (10:46 +0000)]
committing missing function prototype

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

13 years agoband interlacing option (vid_soft_interlace)
eihrul [Sun, 6 Feb 2011 07:51:29 +0000 (07:51 +0000)]
band interlacing option (vid_soft_interlace)

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

13 years agoupdated readme for iOS compilation with instructions on how to modify SDL to use...
havoc [Sun, 6 Feb 2011 05:35:14 +0000 (05:35 +0000)]
updated readme for iOS compilation with instructions on how to modify SDL to use OpenGL ES 2.0 (as required by darkplaces)

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

13 years agoiOS support closer to working
havoc [Sun, 6 Feb 2011 03:25:42 +0000 (03:25 +0000)]
iOS support closer to working

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

13 years agoremove a couple unused declarations
havoc [Sun, 6 Feb 2011 02:58:52 +0000 (02:58 +0000)]
remove a couple unused declarations

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

13 years agoiOS support in progress - accommodating GLES...
havoc [Sun, 6 Feb 2011 02:58:13 +0000 (02:58 +0000)]
iOS support in progress - accommodating GLES...

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

13 years agochanged use of GL_ARB_fragment_shader and friends to the core GL 2.0
havoc [Sun, 6 Feb 2011 02:14:51 +0000 (02:14 +0000)]
changed use of GL_ARB_fragment_shader and friends to the core GL 2.0
functionality instead, for better GL ES 2.0 compatibility

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

13 years agocorrectly copy in all of quadelement3s to quadelement3i
eihrul [Sat, 5 Feb 2011 13:29:09 +0000 (13:29 +0000)]
correctly copy in all of quadelement3s to quadelement3i

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

13 years agoensure UndoCommand wraps properly at 0
eihrul [Sat, 5 Feb 2011 12:22:27 +0000 (12:22 +0000)]
ensure UndoCommand wraps properly at 0

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

13 years agoremove errant debugging code... again
eihrul [Sat, 5 Feb 2011 00:28:14 +0000 (00:28 +0000)]
remove errant debugging code... again

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

13 years agoattempted fix for VC compile errors
eihrul [Sat, 5 Feb 2011 00:26:14 +0000 (00:26 +0000)]
attempted fix for VC compile errors

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

13 years agoremove debugging code
eihrul [Sat, 5 Feb 2011 00:20:48 +0000 (00:20 +0000)]
remove debugging code

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

13 years agooptimized MultiplyVaryingBGRA8 and VaryingBGRA8
eihrul [Sat, 5 Feb 2011 00:19:12 +0000 (00:19 +0000)]
optimized MultiplyVaryingBGRA8 and VaryingBGRA8

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

13 years agouse short indices when available instead of int (fixes xonotic console weirdness)
eihrul [Fri, 4 Feb 2011 22:22:31 +0000 (22:22 +0000)]
use short indices when available instead of int (fixes xonotic console weirdness)

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

13 years agoclear scissor fix
eihrul [Fri, 4 Feb 2011 21:55:45 +0000 (21:55 +0000)]
clear scissor fix

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

13 years agomore fine-grained locking amongst backend threads
eihrul [Fri, 4 Feb 2011 20:28:42 +0000 (20:28 +0000)]
more fine-grained locking amongst backend threads

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

13 years agodistribute draw calls based on bounding box
eihrul [Fri, 4 Feb 2011 14:36:31 +0000 (14:36 +0000)]
distribute draw calls based on bounding box

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

13 years agoonly force flushing on a texture update if a texture is already bound (for quake)
eihrul [Thu, 3 Feb 2011 21:15:16 +0000 (21:15 +0000)]
only force flushing on a texture update if a texture is already bound (for quake)

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

13 years agonearest filtering fix
eihrul [Thu, 3 Feb 2011 11:37:13 +0000 (11:37 +0000)]
nearest filtering fix

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

13 years agoUSE_SDL define
eihrul [Thu, 3 Feb 2011 09:14:53 +0000 (09:14 +0000)]
USE_SDL define

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

13 years agodetect whether dpsoftrast is being built with SDL
eihrul [Thu, 3 Feb 2011 09:05:39 +0000 (09:05 +0000)]
detect whether dpsoftrast is being built with SDL

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

13 years agothreading and more SSE2 optimizations for dpsoftrast
eihrul [Thu, 3 Feb 2011 08:33:03 +0000 (08:33 +0000)]
threading and more SSE2 optimizations for dpsoftrast

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

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