]>
git.xonotic.org Git - xonotic/darkplaces.git/log
havoc [Sun, 27 Nov 2016 21:45:11 +0000 (21:45 +0000)]
Added an implementation of Lehmer random number generator with Lecuyer constant, this is a simple mul128 based RNG with a period of 2^126.
Use the new RNG for bouncegrid traces to hopefully improve the photon distribution compared to lhcheeserandom.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12298
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Nov 2016 21:42:53 +0000 (21:42 +0000)]
Fix one trace I missed when adding skipsupercontentsmask, and a couple other ones in comments.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12297
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Nov 2016 21:36:38 +0000 (21:36 +0000)]
Don't allocate resize buffer for texture upload if the texture does not need to be resized (this helps with memory pressure on the bouncegrid texture which was causing a huge memory alloc every frame in dynamic mode).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12296
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Nov 2016 21:35:34 +0000 (21:35 +0000)]
Fix infinite loop that occurred in R_FrameData_Alloc if requesting > 256MB (which the per-chunk size was bounded to).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12295
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Nov 2016 21:29:12 +0000 (21:29 +0000)]
Add skipsupercontentsmask parameter to all the collision implementations, this allows you to ignore brushes/surfaces matching the specified contents flags, the primary use is ignoring q1bsp sky surfaces which are SUPERCONTENTS_SKY and SUPERCONTENTS_SOLID, since SUPERCONTENTS_SOLID is in the hitsupercontentsmask it will normally block on sky surfaces, but this way it will not if they also have SUPERCONTENTS_SKY set.
Use the new skipsupercontentsmask feature for bouncegrid traces and certain other light traces.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12294
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Nov 2016 21:00:37 +0000 (21:00 +0000)]
Added a MessageBox call in Sys_Error on Windows, matching the behavior of the wgl client. The typical error to desktop will be more informative now.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12293
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Nov 2016 20:59:04 +0000 (20:59 +0000)]
Added developer_memorylargerthanmb cvar which prints (with developer 1) notices about very large memory allocations (16MB and larger by default).
Slightly improved the Mem_Alloc out of memory error to include the size of the failed allocation.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12292
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Nov 2016 20:56:03 +0000 (20:56 +0000)]
Rollback last change which was meant to be many smaller pieces.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12291
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Nov 2016 20:53:09 +0000 (20:53 +0000)]
Added developer_memorylargerthanmb cvar which dprints notices about very large memory allocations (16MB and larger by default).
Slightly improved the Mem_Alloc out of memory error to include the size of the failed allocation.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12290
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 27 Nov 2016 20:51:15 +0000 (20:51 +0000)]
Enable /LARGEADDRESSAWARE on win32 builds in MSVS2015, to get 3GB address space rather than 2GB.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12289
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Tue, 11 Oct 2016 03:03:27 +0000 (03:03 +0000)]
Fix another bug in R_Shadow_PrepareLights_AddSceneLight - it was not increasing r_shadow_scenemaxlights.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12288
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Tue, 11 Oct 2016 02:56:31 +0000 (02:56 +0000)]
Fix bad memory overrun bug in R_Shadow_PrepareLights_AddSceneLight - it was not multiplying the array size by sizeof.
Thanks to Monster for reporting this bug.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12287
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Tue, 11 Oct 2016 01:05:53 +0000 (01:05 +0000)]
Added cl_bob_limit cvar which limits the maximum rage of view bobbing in a smooth way (rather than limiting the velocity and cl_bob independently, it limits the strength of the bob before the sinewave is applied). By default this is 7 (inspired by the quake limit of +4 to -7 range).
Added cl_bob_limit_heightcheck cvar (off by default) which uses tracelines to limit the maximum value of cl_bob_limit based on the ceiling and floor height.
Added cl_bob_velocity_limit cvar which replaces the hard-coded 400 in a few places for xyspeed purposes.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12286
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Wed, 14 Sep 2016 04:53:02 +0000 (04:53 +0000)]
Overhauled quake3 shader loading such that it now produces shader passes that could render the material mostly correctly (rendering not yet implemented for the pre/post passes the logic identifies).
Main visible effect of this is that quake3 maps look more correct, but don't have any fancy effects yet.
This changed the loaders for all other formats that produce texture_t as texture->materialshaderpass-> is the new source of truth for several things.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12285
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Mon, 12 Sep 2016 05:13:44 +0000 (05:13 +0000)]
Fix Q2BSP texture loading, Q2BSP contents issues, and add support for SURF_ALPHATEST for any maps that might use it, force fullbright rendering on SURF_TRANS33/SURF_TRANS66/SURF_WARP textures which fixes the rain in 3v3gloom3.bsp and chainlink fence textures on tkse.bsp and glass transparency on gloom1se.bsp among others. Also fix the SURF_FLOWING scroll rate when combined with SURF_WARP.
Also fixed the collision issues caused by stomping over Q1BSP data which caused traceline to break on Q1BSP after loading a Q2BSP map, thanks Supa for that bug report and finding other Q2BSP issues.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12284
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Mon, 12 Sep 2016 00:15:56 +0000 (00:15 +0000)]
Changed naming of glsl/default.glsl and hlsl/default.hlsl to glsl/combined_crc*.glsl and hlsl/combined_crc*.hlsl - these are now effectively versioned by the crc of the builtin shader code, so if customization is applied it must match the current crc of the engine shader.
This should prevent any future shader version compatibility issues (at the cost of customization being harder to maintain).
Refactored shadermodeinfo related code to clean it up and make it more maintainable.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12283
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 11 Sep 2016 23:06:22 +0000 (23:06 +0000)]
Enable shadowmapping on transparent surfaces.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12282
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 11 Sep 2016 23:05:08 +0000 (23:05 +0000)]
Overhauled shadowmap rendering to use an atlas texture, this is overall a speed loss on default settings (-7.7% fps on timedemo demo1, or -3% with r_shadow_deferred) but a gain on realtime world lighting (+21.1% normal, +1.7% with r_shadow_deferred) on NVIDIA GTX 680.
On video drivers with higher framebuffer switching costs, this should be a framerate gain in all situations.
Feature-wise this brings support (in future) for shadowmapping on transparent lit surfaces, and imposes an upper bound on how many pixels of shadowmaps will be rendered in a frame (shadowmap resolution automatically becomes more coarse on frames where they do not fit).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12281
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sat, 10 Sep 2016 20:24:15 +0000 (20:24 +0000)]
Added MSVC++ 2015 projects.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12280
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sat, 10 Sep 2016 19:36:13 +0000 (19:36 +0000)]
Fix MSVC++ 2015 warnings about variable scope and some narrowing conversions without type casts.
Fix some missing type casts in recent r_shadow.c changes that didn't compile as C++ successfully.
Remove r_shadow_shadowmaplod variable which is unused.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12279
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 28 Aug 2016 07:08:50 +0000 (07:08 +0000)]
Fix a typo in a field name.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12278
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 28 Aug 2016 05:29:09 +0000 (05:29 +0000)]
Added r_shadow_bouncegrid_lightpathsize which is an alternative to blur
- but in practice this is just slower at a value of 3 than 1 is with
blur, so blur remains the default approach.
Implemented r_shadow_bouncegrid_floatcolors cvar which uses fp16 and
fp32 float formats to increase dynamic range.
Overhauled the default values of the bouncegrid cvars to look better.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12277
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sat, 27 Aug 2016 22:28:59 +0000 (22:28 +0000)]
implemented r_shadow_bouncegrid_blur, this tremendously improves
quality at a cost of processing time, eliminating many rounding error
problems in all levels.
renamed several r_shadow_bouncegrid_* cvars to have a dynamic prefix,
and split spacing so that it can also be different between
static/dynamic modes (static now uses 32).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12276
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sat, 27 Aug 2016 19:34:06 +0000 (19:34 +0000)]
Refactored r_shadow_bouncegrid light splatting code, it now makes an
array of light paths and then performs their splatting in a separate
step with an optional sort.
Implemented culling of out-of-view light paths in dynamic mode.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12275
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sat, 27 Aug 2016 18:00:00 +0000 (18:00 +0000)]
Refactored r_shadow_bouncegrid code into several functions, changed
photon distribution math to make the photons more stable from frame to
frame (in dynamic mode), the number of photons fired is now based on
r_shadow_bouncegrid_intensityperphoton rather than always going for
maximum photons (accordingly r_shadow_bouncegrid_photons has been
renamed maxphotons and will still apply the old logic if it must).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12274
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sat, 27 Aug 2016 03:17:49 +0000 (03:17 +0000)]
Fix a serious bug with r_shadow_bouncegrid_static where it used
R_CullBox and other view-dependent performance optimizations when
compiling the static texture - thanks to Vic for finding this bug!
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12273
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Thu, 18 Aug 2016 15:28:24 +0000 (15:28 +0000)]
Support alpha textures in Quake if the name starts with '{'.
Note: this is actually a HLBSP feature, though:
Author: ericw on irc.anynet.org
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12272
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
c704a467c00fc5b703d88b7076db434df4810864
divverent [Thu, 18 Aug 2016 15:03:55 +0000 (15:03 +0000)]
Add user defined movetypes extension
From: Mario <mario@smbclan.net>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12271
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
87220e6d54034fd80f9e4b66f591233b23a18e9a
divverent [Sat, 30 Jul 2016 00:20:55 +0000 (00:20 +0000)]
Don't run MOVETYPE_NOCLIP physics asynchronously
From: Mario <mario@smbclan.net>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12270
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
4e78d2ad3f79e76f90cd265787d43952fedd7406
divverent [Wed, 20 Jul 2016 14:11:45 +0000 (14:11 +0000)]
OOPS. Enable USE_RWOPS only on Android.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12269
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
e18edf826f07d0f30caecc9f9cbda938b7e38605
divverent [Wed, 20 Jul 2016 13:13:40 +0000 (13:13 +0000)]
Stop using bytes >= 128 in format strings. They break on Android.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12268
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
8a63c9d9cc55b25071bd6d168e1245c28b8dd5c8
divverent [Wed, 20 Jul 2016 13:13:30 +0000 (13:13 +0000)]
Fix the show-keyboard logic for non-Steel Storm by factoring out the Steel Storm specific code into generic code.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12267
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
9351ad2d457c1d653c2ca08233680ac9cbb4c70a
divverent [Wed, 20 Jul 2016 13:13:20 +0000 (13:13 +0000)]
Make the touch outline feature actually work.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12266
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
4983a56b807f0576b8629d38920ab9e78146547e
divverent [Wed, 20 Jul 2016 13:13:10 +0000 (13:13 +0000)]
Add DP_FS_USERDIR macro consistent to DP_FS_BASEDIR.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12265
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
07f459ff32baea233afcd025447039f33dab235f
divverent [Wed, 20 Jul 2016 13:13:00 +0000 (13:13 +0000)]
File system: Android assets support.
For this, we must use SDL_RWops for accessing packs (and files), so
let's emulate file descriptors using them.
The main catch is that SDL_RWops have no dup() equivalent, so we're
emulating that as well. Not particularly fast, but well...
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12264
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
1339d6a876c75a1224d93cdb75e12e5d6486a3d0
havoc [Mon, 18 Jul 2016 03:42:16 +0000 (03:42 +0000)]
Add another bug entry
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12263
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
e601e45910e566f4df422e04a88690df04dcc5eb
havoc [Mon, 18 Jul 2016 03:23:15 +0000 (03:23 +0000)]
Refactor DP_MACHINE logic in makefile and makefile.inc because it was
broken on mingw.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12262
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
97ccfe67df97b42b26e36f1cd92c8dad52bac4a3
havoc [Mon, 18 Jul 2016 02:41:07 +0000 (02:41 +0000)]
Fix an error detected by -Wnarrowing (~0 narrowing to unsigned char,
changed it to 0xFF)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12261
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
fb976f500f630459116b922a4cbfcf0ac52643b9
havoc [Sun, 17 Jul 2016 22:32:09 +0000 (22:32 +0000)]
Added a couple todo items related to pq_fullpitch
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12260
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
e66409bc527977659dc5201d35a7b4067cd50175
havoc [Sun, 17 Jul 2016 22:31:29 +0000 (22:31 +0000)]
Added a couple bugs
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12259
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
fa176397b9dd3ecaf06fc6518daa9175f84f3a1b
divverent [Mon, 27 Jun 2016 12:49:37 +0000 (12:49 +0000)]
Add a cvar net_sourceaddresscheck (default 1) to ignore connect replies from the wrong host.
This fixes some existing easy connect takeover exploits (which can,
without this check, even attack local matches).
From: Rudolf Polzer <divVerent@xonotic.org>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12258
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
18f04155584c87a958f78827954d428ce55a8aaf
divverent [Thu, 18 Aug 2016 15:28:24 +0000 (15:28 +0000)]
Support alpha textures in Quake if the name starts with '{'.
Note: this is actually a HLBSP feature, though:
Author: ericw on irc.anynet.org
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12272
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Thu, 18 Aug 2016 15:03:55 +0000 (15:03 +0000)]
Add user defined movetypes extension
From: Mario <mario@smbclan.net>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12271
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sat, 30 Jul 2016 00:20:55 +0000 (00:20 +0000)]
Don't run MOVETYPE_NOCLIP physics asynchronously
From: Mario <mario@smbclan.net>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12270
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Wed, 20 Jul 2016 14:11:45 +0000 (14:11 +0000)]
OOPS. Enable USE_RWOPS only on Android.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12269
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Wed, 20 Jul 2016 13:13:40 +0000 (13:13 +0000)]
Stop using bytes >= 128 in format strings. They break on Android.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12268
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Wed, 20 Jul 2016 13:13:30 +0000 (13:13 +0000)]
Fix the show-keyboard logic for non-Steel Storm by factoring out the Steel Storm specific code into generic code.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12267
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Wed, 20 Jul 2016 13:13:20 +0000 (13:13 +0000)]
Make the touch outline feature actually work.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12266
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Wed, 20 Jul 2016 13:13:10 +0000 (13:13 +0000)]
Add DP_FS_USERDIR macro consistent to DP_FS_BASEDIR.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12265
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Wed, 20 Jul 2016 13:13:00 +0000 (13:13 +0000)]
File system: Android assets support.
For this, we must use SDL_RWops for accessing packs (and files), so
let's emulate file descriptors using them.
The main catch is that SDL_RWops have no dup() equivalent, so we're
emulating that as well. Not particularly fast, but well...
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12264
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Mon, 18 Jul 2016 03:42:16 +0000 (03:42 +0000)]
Add another bug entry
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12263
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Mon, 18 Jul 2016 03:23:15 +0000 (03:23 +0000)]
Refactor DP_MACHINE logic in makefile and makefile.inc because it was
broken on mingw.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12262
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Mon, 18 Jul 2016 02:41:07 +0000 (02:41 +0000)]
Fix an error detected by -Wnarrowing (~0 narrowing to unsigned char,
changed it to 0xFF)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12261
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 17 Jul 2016 22:32:09 +0000 (22:32 +0000)]
Added a couple todo items related to pq_fullpitch
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12260
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Sun, 17 Jul 2016 22:31:29 +0000 (22:31 +0000)]
Added a couple bugs
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12259
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Mon, 27 Jun 2016 12:49:37 +0000 (12:49 +0000)]
Add a cvar net_sourceaddresscheck (default 1) to ignore connect replies from the wrong host.
This fixes some existing easy connect takeover exploits (which can,
without this check, even attack local matches).
From: Rudolf Polzer <divVerent@xonotic.org>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12258
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Wed, 16 Mar 2016 03:23:18 +0000 (03:23 +0000)]
Changed master server IP addresses back to hostnames so they don't go
stale.
Removed dead master servers.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12251
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
cff801cfc3a8bcdbe6a4128660013c1c1ee4bd6c
divverent [Mon, 13 Jun 2016 19:04:37 +0000 (19:04 +0000)]
Fix FTBFS on non-x86 architectures
From: Timothy Pearson <kb9vqf@pearsoncomputing.net>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12257
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
bb23c6d9b9fd5ead3f56b7b8fd998cdbb0481b42
divverent [Mon, 25 Apr 2016 13:01:25 +0000 (13:01 +0000)]
Support darkplaces.opt from local files too.
If both are present, flags from both get prepended; the execution order is:
[attached darkplaces.opt] [local darkplaces.opt] [command-line flags]
Also added flags -noopt (don't parse darkplaces.opt) and -noselfpack (don't read attached pack).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12256
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
c15a08f6df5a7f2a4784d6ff946caa70845667c7
havoc [Tue, 5 Apr 2016 03:18:33 +0000 (03:18 +0000)]
Added darkplaces-osx-sdl launch script, this has been simplified since
we don't support OSX 10.5 anymore (and thus do not have to worry about
broken x86_64 binary support).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12254
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
405615a2dfc40a4cdb151467c37e87cac13f333e
havoc [Mon, 4 Apr 2016 22:18:51 +0000 (22:18 +0000)]
Change makefile.inc to use SDL2 by default rather than SDL1.2 - removed
sdl2-* targets since they are not needed now.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12253
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
786493a91d61c3bf939a0fc36642dae16a9c7a6b
divverent [Mon, 28 Mar 2016 13:54:51 +0000 (13:54 +0000)]
cl_collision: don't hit network entities of players who don't have a network entity (but rather a shared entity, i.e. a CSQC entity).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12252
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
c77c4d374aeefb5df78a09450d7365c082fca8dd
divverent [Mon, 13 Jun 2016 19:04:37 +0000 (19:04 +0000)]
Fix FTBFS on non-x86 architectures
From: Timothy Pearson <kb9vqf@pearsoncomputing.net>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12257
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Mon, 25 Apr 2016 13:01:25 +0000 (13:01 +0000)]
Support darkplaces.opt from local files too.
If both are present, flags from both get prepended; the execution order is:
[attached darkplaces.opt] [local darkplaces.opt] [command-line flags]
Also added flags -noopt (don't parse darkplaces.opt) and -noselfpack (don't read attached pack).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12256
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Tue, 5 Apr 2016 03:18:33 +0000 (03:18 +0000)]
Added darkplaces-osx-sdl launch script, this has been simplified since
we don't support OSX 10.5 anymore (and thus do not have to worry about
broken x86_64 binary support).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12254
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Mon, 4 Apr 2016 22:18:51 +0000 (22:18 +0000)]
Change makefile.inc to use SDL2 by default rather than SDL1.2 - removed
sdl2-* targets since they are not needed now.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12253
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Mon, 28 Mar 2016 13:54:51 +0000 (13:54 +0000)]
cl_collision: don't hit network entities of players who don't have a network entity (but rather a shared entity, i.e. a CSQC entity).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12252
d7cf8633 -e32d-0410-b094-
e92efae38249
havoc [Wed, 16 Mar 2016 03:23:18 +0000 (03:23 +0000)]
Changed master server IP addresses back to hostnames so they don't go
stale.
Removed dead master servers.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12251
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Mon, 14 Mar 2016 16:29:02 +0000 (16:29 +0000)]
SDL2 dropped i386 support, so stop compiling against that.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12250
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
194e4364ce5893902a33a26393d7817e610c2496
divverent [Mon, 14 Mar 2016 16:29:02 +0000 (16:29 +0000)]
SDL2 dropped i386 support, so stop compiling against that.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12250
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 13 Mar 2016 01:38:00 +0000 (01:38 +0000)]
Xonotic's travis script: Build the Linux binaries against SDL 2.0.4.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12249
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
d85d3ae5246bd89abc0f6c77b2de80313a153f1b
divverent [Sat, 12 Mar 2016 15:24:01 +0000 (15:24 +0000)]
Fix warning and MSVC build against SDL2.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12248
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
016e9886d4829174cf4ea67dd9683983fa070d0b
divverent [Sun, 13 Mar 2016 01:38:00 +0000 (01:38 +0000)]
Xonotic's travis script: Build the Linux binaries against SDL 2.0.4.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12249
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sat, 12 Mar 2016 15:24:01 +0000 (15:24 +0000)]
Fix warning and MSVC build against SDL2.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12248
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Mon, 7 Mar 2016 21:36:27 +0000 (21:36 +0000)]
v_yshearing: Make the cvar take the max angle to apply the effect to; remove the in_pitch hack for this as it is no longer needed then.
This makes Y shearing mode actually useful together with higer FOV (less
noticeable distortion).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12247
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
9a443db93cbbd3419f9b53714cbbdc1409342d13
divverent [Mon, 7 Mar 2016 21:36:27 +0000 (21:36 +0000)]
v_yshearing: Make the cvar take the max angle to apply the effect to; remove the in_pitch hack for this as it is no longer needed then.
This makes Y shearing mode actually useful together with higer FOV (less
noticeable distortion).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12247
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Fri, 4 Mar 2016 20:41:09 +0000 (20:41 +0000)]
v_yshearing: Make view and input behave more like Duke Nukem 3D ;)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12246
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
953f1f8feaa55e272118605371c13bf0f68585da
divverent [Sun, 7 Feb 2016 01:53:31 +0000 (01:53 +0000)]
Fix initial state of autocvars.
From: Rudolf Polzer <divverent@xonotic.org>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12245
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
699e21e31d4c0ccefbd268a057e9ebc5ea252baf
divverent [Sun, 7 Feb 2016 01:53:23 +0000 (01:53 +0000)]
Removed leftovers from progid.
Replaced static animatemodel_cache with dynamically allocated per prog
instance.
From: Grigorii Kasymov <kasymovga@xsmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12244
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
f128c065de67afda20ac9a30e59e924a47be70a7
divverent [Sun, 7 Feb 2016 01:53:20 +0000 (01:53 +0000)]
Removed globaldefindex_progid field from cvar struct.
From: Grigorii Kasymov <kasymovga@xsmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12243
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
6ad90d1388ee03427548282e23fcd5bdba03b83a
divverent [Sun, 7 Feb 2016 01:53:16 +0000 (01:53 +0000)]
Initialize globalindex for autocvars with -1 to prevent prog corruption.
From: Grigorii Kasymov <kasymovga@xsmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12242
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
bcc992065b8e58eda2dca44952c15e862537978e
divverent [Fri, 4 Mar 2016 20:41:09 +0000 (20:41 +0000)]
v_yshearing: Make view and input behave more like Duke Nukem 3D ;)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12246
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 7 Feb 2016 01:53:31 +0000 (01:53 +0000)]
Fix initial state of autocvars.
From: Rudolf Polzer <divverent@xonotic.org>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12245
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 7 Feb 2016 01:53:23 +0000 (01:53 +0000)]
Removed leftovers from progid.
Replaced static animatemodel_cache with dynamically allocated per prog
instance.
From: Grigorii Kasymov <kasymovga@xsmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12244
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 7 Feb 2016 01:53:20 +0000 (01:53 +0000)]
Removed globaldefindex_progid field from cvar struct.
From: Grigorii Kasymov <kasymovga@xsmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12243
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Sun, 7 Feb 2016 01:53:16 +0000 (01:53 +0000)]
Initialize globalindex for autocvars with -1 to prevent prog corruption.
From: Grigorii Kasymov <kasymovga@xsmail.com>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12242
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Mon, 4 Jan 2016 18:20:35 +0000 (18:20 +0000)]
Unbreak Nexuiz weapon animation.
Nexuiz uses h_*.dpm models that are mostly vertex-less (there are 6 dummy ones)
and merely move bones in order to move around the first-person weapon.
This means that these models (or rather, their surface meshes) will be
considered "non-animated" by the rendering code, given their dummy vertices are
never moved by animations.
However, a function to build animation subframes lists from animation group
numbers - which is called by gettaginfo and similar functions that locate
attachment points - falsely looked at the isanimated flag of the surface mesh
to decide whether to really build the list of subframes or not - and this was
wrong, given that statically displayed models that do move tags/bones do exist!
This commit removes this use of the isanimated flag and treats models with
animated and non-animated surface mesh the same for purposes of animation frame
evaluation.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12241
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
293f724eb2c254335bea911d1e2060a29a5cf7de
divverent [Mon, 4 Jan 2016 14:45:52 +0000 (14:45 +0000)]
Unbreak "make sv-nexuiz" and "make nexuiz".
(There was a typo in the Makefile of this target since r11992).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12240
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
59ad91714ed4025d0d28534992148bd610cd5381
divverent [Mon, 28 Dec 2015 21:20:56 +0000 (21:20 +0000)]
Document DP_SV_DISABLECLIENTPREDICTION.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12239
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
5368a5ab9c2f16dd8d8bda9c6bac39ff6e242516
divverent [Mon, 28 Dec 2015 21:20:53 +0000 (21:20 +0000)]
New feature: disableclientprediction == -1.
This forces client prediction in cases DP's own client side prediction cannot
handle, in particular, in case of non-WALK movetypes on a player entity.
To be useful, this requires CSQC code to perform player prediction instead.
From: Mario <mario@smbclan.net>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12238
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
a57baa2e50392b2f2d30623101af36deb0486a19
divverent [Mon, 4 Jan 2016 18:20:35 +0000 (18:20 +0000)]
Unbreak Nexuiz weapon animation.
Nexuiz uses h_*.dpm models that are mostly vertex-less (there are 6 dummy ones)
and merely move bones in order to move around the first-person weapon.
This means that these models (or rather, their surface meshes) will be
considered "non-animated" by the rendering code, given their dummy vertices are
never moved by animations.
However, a function to build animation subframes lists from animation group
numbers - which is called by gettaginfo and similar functions that locate
attachment points - falsely looked at the isanimated flag of the surface mesh
to decide whether to really build the list of subframes or not - and this was
wrong, given that statically displayed models that do move tags/bones do exist!
This commit removes this use of the isanimated flag and treats models with
animated and non-animated surface mesh the same for purposes of animation frame
evaluation.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12241
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Mon, 4 Jan 2016 14:45:52 +0000 (14:45 +0000)]
Unbreak "make sv-nexuiz" and "make nexuiz".
(There was a typo in the Makefile of this target since r11992).
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12240
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Mon, 28 Dec 2015 21:20:56 +0000 (21:20 +0000)]
Document DP_SV_DISABLECLIENTPREDICTION.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12239
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Mon, 28 Dec 2015 21:20:53 +0000 (21:20 +0000)]
New feature: disableclientprediction == -1.
This forces client prediction in cases DP's own client side prediction cannot
handle, in particular, in case of non-WALK movetypes on a player entity.
To be useful, this requires CSQC code to perform player prediction instead.
From: Mario <mario@smbclan.net>
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12238
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Thu, 26 Nov 2015 14:48:26 +0000 (14:48 +0000)]
Oops. Add more ifdeffery to the NvOptimus stuff :)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12237
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
eef1f18035e32aa86618aa3e8c3a20a604559730
divverent [Thu, 26 Nov 2015 14:47:11 +0000 (14:47 +0000)]
Fix prvm_leaktest - it now really supports references from globals.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12236
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
1c54a41c77409164170eb49389103f5cf7a9b344
divverent [Thu, 26 Nov 2015 14:48:26 +0000 (14:48 +0000)]
Oops. Add more ifdeffery to the NvOptimus stuff :)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12237
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Thu, 26 Nov 2015 14:47:11 +0000 (14:47 +0000)]
Fix prvm_leaktest - it now really supports references from globals.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12236
d7cf8633 -e32d-0410-b094-
e92efae38249
divverent [Thu, 26 Nov 2015 13:52:27 +0000 (13:52 +0000)]
Set NvOptimusEnablement.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12235
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
118b0260c3c33669cd45bad72ddfdcf9232a1d65
divverent [Tue, 24 Nov 2015 14:58:00 +0000 (14:58 +0000)]
Leaktest: store longer allocation origins.
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@12234
d7cf8633 -e32d-0410-b094-
e92efae38249
::stable-branch::merge=
68f4284502b457f898002b3b048872ba837be1a4