]> git.rm.cloudns.org Git - xonotic/darkplaces.git/log
xonotic/darkplaces.git
16 years agoremove an unnecessary check in Sys_Sleep
havoc [Thu, 14 Feb 2008 23:01:01 +0000 (23:01 +0000)]
remove an unnecessary check in Sys_Sleep

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

16 years agoFix it.. nah I'm just reverting :D
black [Thu, 14 Feb 2008 20:57:01 +0000 (20:57 +0000)]
Fix it.. nah I'm just reverting :D

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

16 years agoFix something Ive broken ofc.
black [Thu, 14 Feb 2008 20:41:07 +0000 (20:41 +0000)]
Fix something Ive broken ofc.

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

16 years agoAppend path in listdirectory automatically.
black [Thu, 14 Feb 2008 20:12:35 +0000 (20:12 +0000)]
Append path in listdirectory automatically.
Remove .. and . from directory listings in the Win32 code, too.

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

16 years agoslight cleanup of Sys_EventFilter
havoc [Thu, 14 Feb 2008 18:21:54 +0000 (18:21 +0000)]
slight cleanup of Sys_EventFilter

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

16 years agoimplemented vid_samples cvar (antialiasing samples per pixel)
havoc [Thu, 14 Feb 2008 17:38:09 +0000 (17:38 +0000)]
implemented vid_samples cvar (antialiasing samples per pixel)
oh and for the record, Windows multisample buffer setup is awful.

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

16 years agodisable screensaver on windows while game window is active
havoc [Thu, 14 Feb 2008 14:51:16 +0000 (14:51 +0000)]
disable screensaver on windows while game window is active

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

16 years agoadded vid_vsync control in SDL
havoc [Thu, 14 Feb 2008 14:29:58 +0000 (14:29 +0000)]
added vid_vsync control in SDL

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

16 years agoadded experimental cl_alwayssleep cvar which calls Sys_Sleep(0) at the
havoc [Thu, 14 Feb 2008 14:10:57 +0000 (14:10 +0000)]
added experimental cl_alwayssleep cvar which calls Sys_Sleep(0) at the
end of each frame
fixed a bug in the main loop that made Sys_Sleep be called with
milliseconds when it takes microseconds

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

16 years agochanged now showfps calculates the fps - hopefully an improvement
havoc [Thu, 14 Feb 2008 14:09:14 +0000 (14:09 +0000)]
changed now showfps calculates the fps - hopefully an improvement

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

16 years agoNexuiz icon updated
divverent [Thu, 14 Feb 2008 11:08:08 +0000 (11:08 +0000)]
Nexuiz icon updated

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

16 years agoremove unnecessary #include of quakedef.h
havoc [Thu, 14 Feb 2008 01:29:14 +0000 (01:29 +0000)]
remove unnecessary #include of quakedef.h

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

16 years agonew Nexuiz icon... still waiting for .ico
divverent [Wed, 13 Feb 2008 21:45:49 +0000 (21:45 +0000)]
new Nexuiz icon... still waiting for .ico

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

16 years agochanged ANGLEMOD to use floor instead of conversion to 16bit fixed-point
havoc [Tue, 12 Feb 2008 01:41:13 +0000 (01:41 +0000)]
changed ANGLEMOD to use floor instead of conversion to 16bit fixed-point

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

16 years agoreworked cl.viewangles bounding of roll angle, and simplified pitch
havoc [Tue, 12 Feb 2008 01:37:56 +0000 (01:37 +0000)]
reworked cl.viewangles bounding of roll angle, and simplified pitch
handling

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

16 years agothanks to blub for locating the texture blending bug
divverent [Sun, 10 Feb 2008 21:37:14 +0000 (21:37 +0000)]
thanks to blub for locating the texture blending bug

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

16 years agorespect the conchars image width/height correctly, and only draw the needed part...
divverent [Fri, 8 Feb 2008 10:16:22 +0000 (10:16 +0000)]
respect the conchars image width/height correctly, and only draw the needed part of the font rect - fixes connector characters in variable width fonts

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

16 years agomake "set con_completion_commandname map" a command complete as if it were the "map...
divverent [Wed, 6 Feb 2008 18:44:53 +0000 (18:44 +0000)]
make "set con_completion_commandname map" a command complete as if it were the "map" command

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

16 years agohopefully fix engine crash with map-less shader stages
divverent [Wed, 6 Feb 2008 16:51:02 +0000 (16:51 +0000)]
hopefully fix engine crash with map-less shader stages

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

16 years agodisable joystick by default, and make joy_enable saved;
divverent [Wed, 6 Feb 2008 07:38:46 +0000 (07:38 +0000)]
disable joystick by default, and make joy_enable saved;
add extension DP_QC_CVAR_TYPE that checks what type a cvar is (like, if the engine created it or the mod, or if it is saved)
will write dpextensions.qc block for it later, a start of its description is in mbuiltin.h in Nexuiz

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

16 years agoComment out a line in setmodel again (needs fixing but wasn't in there before anyway)
black [Tue, 5 Feb 2008 18:15:09 +0000 (18:15 +0000)]
Comment out a line in setmodel again (needs fixing but wasn't in there before anyway)
Always clear the depth buffer in R_RenderView.
Use realtime as scene time when rendering the menu scene.

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

16 years agoFix the VM's clientstate builtin to do a correct mapping between the client state...
black [Tue, 5 Feb 2008 16:20:23 +0000 (16:20 +0000)]
Fix the VM's clientstate builtin to do a correct mapping between the client state and the menu's constants (now that the client state values have changed in DP itself).

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

16 years agoFix a typo. Enjoy.
black [Mon, 4 Feb 2008 21:09:03 +0000 (21:09 +0000)]
Fix a typo. Enjoy.

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

16 years agohuge audit of dprints throughout engine, all notices of successfully
havoc [Mon, 4 Feb 2008 11:47:04 +0000 (11:47 +0000)]
huge audit of dprints throughout engine, all notices of successfully
loading models/sounds/skins/etc are now tied to the cvar
developer_loading
added developer_loadfile cvar (prints every successful FS_LoadFile)
many improvements to consistency of loading notices, and some cleanups
to q3 shader handling
fixed annoying 'Bad dynamic texture name' spam at load

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

16 years agofix bug that caused early console messages to not be put in console
havoc [Mon, 4 Feb 2008 11:33:14 +0000 (11:33 +0000)]
fix bug that caused early console messages to not be put in console
history (because cls.state defaulted to ca_dedicated - now it defaults
to ca_uninitialized)

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

16 years agoreplaced World_Clear with World_SetSize and World_UnlinkAll
havoc [Mon, 4 Feb 2008 11:24:42 +0000 (11:24 +0000)]
replaced World_Clear with World_SetSize and World_UnlinkAll

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

16 years agomodified droptofloor to try a downward trace from the bottom center of
havoc [Mon, 4 Feb 2008 01:28:39 +0000 (01:28 +0000)]
modified droptofloor to try a downward trace from the bottom center of
the object if it is stuck, this manages to 'correctly' place many badly
placed entities in quake maps
additionally modified droptofloor to first try unsticking the entity
before dropping it (sv_gameplayfix_droptofloorstartsolid_nudgetocorrect)

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

16 years agorevert my change and fix the types on Black's changes, which were the
havoc [Sun, 3 Feb 2008 12:42:04 +0000 (12:42 +0000)]
revert my change and fix the types on Black's changes, which were the
real problem (this revert only due to my change being slightly messier)

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

16 years agoadded GAME_BLADEMASTER
havoc [Sun, 3 Feb 2008 11:13:29 +0000 (11:13 +0000)]
added GAME_BLADEMASTER

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

16 years agofix Black's PRVM_EDICT_NUM_ERROR return type change which did not work
havoc [Sun, 3 Feb 2008 11:12:42 +0000 (11:12 +0000)]
fix Black's PRVM_EDICT_NUM_ERROR return type change which did not work
(0 is not the same as NULL, compilers get upset about that)
one other minor correction of the same kind

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

16 years agofix bugs with changing apple_mouse_noaccel and vid_dgamouse while grabbed (that previ...
divverent [Sat, 2 Feb 2008 18:38:38 +0000 (18:38 +0000)]
fix bugs with changing apple_mouse_noaccel and vid_dgamouse while grabbed (that previously could "destroy" mouse support until console gets pulled down and up)

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

16 years agoRewrite CSQC's setmodel a bit.
black [Fri, 1 Feb 2008 16:21:37 +0000 (16:21 +0000)]
Rewrite CSQC's setmodel a bit.
Add support for CSQC_Ent_Spawn to csqc. A function that is called when a entity packet from the server arrives that requires a new entity.
entity( float entnum ) CSQC_Ent_Spawn;
CSQC_Ent_Spawn needs to spawn a new entity and set its .entnum field accordingly or simply return another existing entity or world if it wants to ignore that server entity. Subsequent CSQC_Ent_Update calls are routed to that entity (or CSQC_Ent_Spawn is called again when .Version increases).

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

16 years agofix broken table length, and yet another hardcoded index
divverent [Fri, 1 Feb 2008 09:20:07 +0000 (09:20 +0000)]
fix broken table length, and yet another hardcoded index

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

16 years ago- vid_userefreshrate: when 0, a sane default is tried to be used
divverent [Fri, 1 Feb 2008 08:56:31 +0000 (08:56 +0000)]
- vid_userefreshrate: when 0, a sane default is tried to be used
- win32: list valid modes, and use the closest match
- win32: vid_forcerefreshrate: don't do the listing, but just try to set it anyway

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

16 years agorenamed MATERIALFLAG_WATER to MATERIALFLAG_WATERSCROLL
havoc [Fri, 1 Feb 2008 06:00:59 +0000 (06:00 +0000)]
renamed MATERIALFLAG_WATER to MATERIALFLAG_WATERSCROLL
changed all MATERIALFLAG_WATER materials to use MATERIALFLAG_WALL as
their primary material flag, this simplified some rendering code
did some more tweaks to fix issues with the mirror glass texture in
the tenebrae testmap

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

16 years agoreassigned some GL20TU values to use only 11 texture slots
havoc [Fri, 1 Feb 2008 05:51:21 +0000 (05:51 +0000)]
reassigned some GL20TU values to use only 11 texture slots

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

16 years agothere was only a single way to mess it up, and I managed to find it... 1.0/int, not...
divverent [Thu, 31 Jan 2008 10:53:07 +0000 (10:53 +0000)]
there was only a single way to mess it up, and I managed to find it... 1.0/int, not 1/int

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

16 years agonew uniform "PixelSize" defined as (size_x, size_y) that is (1/texwidth, 1/texheight...
divverent [Thu, 31 Jan 2008 09:21:25 +0000 (09:21 +0000)]
new uniform "PixelSize" defined as (size_x, size_y) that is (1/texwidth, 1/texheight) for the postprocessing shader - user defined stuff may use it

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

16 years agooops, that should not have gone in there
divverent [Wed, 30 Jan 2008 22:19:13 +0000 (22:19 +0000)]
oops, that should not have gone in there

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

16 years agohide centerprint immediately when scr_centertime is 0
divverent [Wed, 30 Jan 2008 22:18:16 +0000 (22:18 +0000)]
hide centerprint immediately when scr_centertime is 0

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

16 years agomake "stopdownload" also stop curl downloads
divverent [Wed, 30 Jan 2008 08:41:03 +0000 (08:41 +0000)]
make "stopdownload" also stop curl downloads

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

16 years agofixed -tenebrae support, added glass and mirror rendering and caulk
havoc [Wed, 30 Jan 2008 07:18:56 +0000 (07:18 +0000)]
fixed -tenebrae support, added glass and mirror rendering and caulk

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

16 years agofix div0's weird MODE_WATER ModelViewProjectionPosition declarations
havoc [Tue, 29 Jan 2008 19:35:24 +0000 (19:35 +0000)]
fix div0's weird MODE_WATER ModelViewProjectionPosition declarations

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

16 years agofix missing loc_Texture_GammaRamps lookup
havoc [Tue, 29 Jan 2008 19:28:53 +0000 (19:28 +0000)]
fix missing loc_Texture_GammaRamps lookup

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

16 years agofix compile bug in glsl shader first
divverent [Tue, 29 Jan 2008 19:19:41 +0000 (19:19 +0000)]
fix compile bug in glsl shader first

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

16 years agochanged postprocess shader to use Texture_GammaRamps instead of
havoc [Tue, 29 Jan 2008 18:53:55 +0000 (18:53 +0000)]
changed postprocess shader to use Texture_GammaRamps instead of
Texture_Attenuation to make the code more clear (no impact on
performance)
fixed bug with viewblend being applied inversely

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

16 years agofix warning
divverent [Tue, 29 Jan 2008 17:44:34 +0000 (17:44 +0000)]
fix warning

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

16 years agooops, my fault - I kept two unused cvars in
divverent [Tue, 29 Jan 2008 16:56:15 +0000 (16:56 +0000)]
oops, my fault - I kept two unused cvars in

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

16 years agov_glslgamma: make GLSL postprocessing take over the job of v_hwgamma completely,...
divverent [Tue, 29 Jan 2008 16:55:43 +0000 (16:55 +0000)]
v_glslgamma: make GLSL postprocessing take over the job of v_hwgamma completely, if set and glsl works. Costs here 1.6ms per frame, so I'll keep r_glsl_contrastboost.

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

16 years agoadded variable vid_gammatables_trivial that is true if the gamma ramp is the identity...
divverent [Tue, 29 Jan 2008 12:41:02 +0000 (12:41 +0000)]
added variable vid_gammatables_trivial that is true if the gamma ramp is the identity map - so glsl doesn't need to waste time on that case later

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

16 years agoadd an extra unused #ifdef to the glsl shader so the shader can know if it was actual...
divverent [Tue, 29 Jan 2008 12:29:14 +0000 (12:29 +0000)]
add an extra unused #ifdef to the glsl shader so the shader can know if it was actually enabled by r_glsl_postprocessing or if it was just forced by bloom

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

16 years agooops, wrong type... "int" has no ANSI C defined wraparound, "unsigned int" does
divverent [Tue, 29 Jan 2008 12:20:10 +0000 (12:20 +0000)]
oops, wrong type... "int" has no ANSI C defined wraparound, "unsigned int" does

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

16 years agomake other parts of DP able to retrieve the gamma table, and add a serial field so...
divverent [Tue, 29 Jan 2008 12:08:06 +0000 (12:08 +0000)]
make other parts of DP able to retrieve the gamma table, and add a serial field so other subsystems can poll if it has changed. Useful for handling it using glsl.

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

16 years agov_contrastboost, and support for the color control functions to fill the gamma table...
divverent [Tue, 29 Jan 2008 11:39:41 +0000 (11:39 +0000)]
v_contrastboost, and support for the color control functions to fill the gamma table. Goal: remove USECONTRASTBOOST and USEGAMMA in the postprocess shader, replace it by USEGAMMARAMP, and let vid_shared build the gamma tables even if hw gamma is off when glsl needs them... then add a cvar r_glsl_hwgamma that lets glsl take over gamma ramp handling

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

16 years agoby default, don't define UserVec1 to UserVec4 and ClientTime. People who want to...
divverent [Tue, 29 Jan 2008 09:14:13 +0000 (09:14 +0000)]
by default, don't define UserVec1 to UserVec4 and ClientTime. People who want to use them shall uncomment their declaration in default.glsl.

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

16 years agoadd ClientTime and uservec1 to uservec4 parameters to postprocessing shader
divverent [Tue, 29 Jan 2008 09:12:06 +0000 (09:12 +0000)]
add ClientTime and uservec1 to uservec4 parameters to postprocessing shader

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

16 years agofix bug in skybox render + r_glsl_usegeneric + fog; add gamma to postprocessing shader
divverent [Tue, 29 Jan 2008 08:07:48 +0000 (08:07 +0000)]
fix bug in skybox render + r_glsl_usegeneric + fog; add gamma to postprocessing shader

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

16 years agofix bug with r_glsl 1;r_hdr 1;r_bloom 0 that made the screen white
havoc [Tue, 29 Jan 2008 04:24:23 +0000 (04:24 +0000)]
fix bug with r_glsl 1;r_hdr 1;r_bloom 0 that made the screen white

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

16 years agofixed VBO batching bug in rtlight rendering
havoc [Tue, 29 Jan 2008 01:50:40 +0000 (01:50 +0000)]
fixed VBO batching bug in rtlight rendering

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

16 years agoextra required parameter for dp_water: alpha modifier
divverent [Mon, 28 Jan 2008 22:45:43 +0000 (22:45 +0000)]
extra required parameter for dp_water: alpha modifier

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

16 years agonote to myself: skipping over data works better if you actually do it
divverent [Mon, 28 Jan 2008 11:44:27 +0000 (11:44 +0000)]
note to myself: skipping over data works better if you actually do it

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

16 years agoadd a DEMOMSG_CLIENT_TO_SERVER flag to demos (0x80000000) in the size field; packets...
divverent [Mon, 28 Jan 2008 09:40:11 +0000 (09:40 +0000)]
add a DEMOMSG_CLIENT_TO_SERVER flag to demos (0x80000000) in the size field; packets with this flag will be ignored by playback. sv_autodemo_perclient 2 will record these packages for debugging purposes (like, recording a speedhacker's or other protocol exploiter's packets, and analyzing them with the data in the demo file manually)

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

16 years agosome very slight optimization to rt light rendering setup code
havoc [Mon, 28 Jan 2008 06:52:37 +0000 (06:52 +0000)]
some very slight optimization to rt light rendering setup code

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

16 years agoadded r_glsl_postprocess cvar to apply a postprocessing pass over the
havoc [Mon, 28 Jan 2008 03:36:03 +0000 (03:36 +0000)]
added r_glsl_postprocess cvar to apply a postprocessing pass over the
screen (currently only implements r_glsl_contrastboost)
this path is also activated if bloom or hdr is active with r_glsl 1

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

16 years agoClean up the FS_FIX_PATHS code a bit - should by faster now, too.
black [Mon, 28 Jan 2008 01:09:00 +0000 (01:09 +0000)]
Clean up the FS_FIX_PATHS code a bit - should by faster now, too.

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

16 years agoMake fgets always return the null string on error.
black [Mon, 28 Jan 2008 01:02:56 +0000 (01:02 +0000)]
Make fgets always return the null string on error.
Add code to FS_Open to fix bad paths (replaces \ with /). The code is nasty and #ifdefed out - #define FS_FIX_PATHS to use it.

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

16 years agoremove a bogus RSurf_SetupDepthAndCulling call that was crashing
havoc [Sun, 27 Jan 2008 23:52:45 +0000 (23:52 +0000)]
remove a bogus RSurf_SetupDepthAndCulling call that was crashing

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

16 years agoR_SetView now supports VF_CLEARSCREEN which decides whether to clear the screen or...
black [Sun, 27 Jan 2008 18:49:34 +0000 (18:49 +0000)]
R_SetView now supports VF_CLEARSCREEN which decides whether to clear the screen or not when rendering the view (this is of particular interest for rendering view in views or for the menu).

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

16 years agoPass the name of the instance to Gecko_Query, too.
black [Sun, 27 Jan 2008 17:23:08 +0000 (17:23 +0000)]
Pass the name of the instance to Gecko_Query, too.
Add setattachment, gettaginfo and gettagindex to menu builtin list, too.
Add DP_GECKO_SUPPORT and DP_QC_GETSURFACEPOINTATTRIB to dpextensions.qc.

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

16 years agosome surface rendering code cleanup
havoc [Sun, 27 Jan 2008 08:39:42 +0000 (08:39 +0000)]
some surface rendering code cleanup
eliminated several redundant state calls
eliminated RSurf_CleanUp function
eliminated special gl_lightmaps rendering path
moved all but the basic material rendering from R_DrawTextureSurfaceList
to R_ProcessTextureSurfaceList, this simplifies the transparent callback
and allowed me to move the transparent queuing into this function

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

16 years agoimplemented r_glsl_usegeneric cvar, this causes generic GLSL shaders to
havoc [Sun, 27 Jan 2008 06:28:54 +0000 (06:28 +0000)]
implemented r_glsl_usegeneric cvar, this causes generic GLSL shaders to
be used in place of ALL conventional fixedfunction rendering, seems to
give about a 3% fps increase on NVIDIA drivers
this should fix zfighting issues involving r_depthfirst or shadows,
particularly on Mac OSX (may also fix the OSX rotating/scrolling hud)

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

16 years agoAdd R_SelectScene and R_GetScenePointer that encapsulate access to an array of r_refd...
black [Sun, 27 Jan 2008 02:18:54 +0000 (02:18 +0000)]
Add R_SelectScene and R_GetScenePointer that encapsulate access to an array of r_refdef_scene_t that is swapped into r_refdef on need.
Change the menu to use it and fix a bug that was caused because of the menu's use of the stack for backing up the client's scene.

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

16 years agoremove a dead prototype
havoc [Sun, 27 Jan 2008 02:05:00 +0000 (02:05 +0000)]
remove a dead prototype

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

16 years agoadded a TODO comment about blacklisting GL_ARB_texture_non_power_of_two
havoc [Sun, 27 Jan 2008 02:03:54 +0000 (02:03 +0000)]
added a TODO comment about blacklisting GL_ARB_texture_non_power_of_two
on Radeon X1600-X1950 cards

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

16 years agorewrote most of the VM_Polygon/DebugPolygon code, it should perform much
havoc [Sun, 27 Jan 2008 00:55:22 +0000 (00:55 +0000)]
rewrote most of the VM_Polygon/DebugPolygon code, it should perform much
better now and has no upper limit on polygons, and only a 64 point limit
per polygon, and has transparent sorting again

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

16 years agoadded cl_minfps_qualitypower cvar to make particle quality drop more
havoc [Sun, 27 Jan 2008 00:46:45 +0000 (00:46 +0000)]
added cl_minfps_qualitypower cvar to make particle quality drop more
sharply at lower framerates

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

16 years agoupdate docs for dp_reflect, dp_refract, dp_water
divverent [Sat, 26 Jan 2008 15:06:01 +0000 (15:06 +0000)]
update docs for dp_reflect, dp_refract, dp_water

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

16 years agoFix uninitialized msg.allowoverflow in SV_SendClientDatagram
res [Fri, 25 Jan 2008 23:51:59 +0000 (23:51 +0000)]
Fix uninitialized msg.allowoverflow in SV_SendClientDatagram

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

16 years agodisabled size throttling of packets if csqc is used (because it was very
havoc [Fri, 25 Jan 2008 23:31:06 +0000 (23:31 +0000)]
disabled size throttling of packets if csqc is used (because it was very
easy to end up with >128 byte entity updates which can in some cases
never be sent at all due to the size throttling)

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

16 years agorestricted rcon: actually display a different message if restricted rcon was used
divverent [Fri, 25 Jan 2008 21:06:46 +0000 (21:06 +0000)]
restricted rcon: actually display a different message if restricted rcon was used

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

16 years agovary r_drawparticles_drawdistance and r_drawdecals_drawdistance for
havoc [Fri, 25 Jan 2008 19:47:02 +0000 (19:47 +0000)]
vary r_drawparticles_drawdistance and r_drawdecals_drawdistance for
quality limiting according to FPS, instead of skipping particles, this
looks much better (but doesn't help FPS as much)

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

16 years agofix warning
divverent [Fri, 25 Jan 2008 11:40:15 +0000 (11:40 +0000)]
fix warning

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

16 years agofix tab completion spam
divverent [Fri, 25 Jan 2008 09:47:10 +0000 (09:47 +0000)]
fix tab completion spam

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

16 years agotab completion now allows directories (PLEASE TEST ON WIN32)
divverent [Fri, 25 Jan 2008 09:08:53 +0000 (09:08 +0000)]
tab completion now allows directories (PLEASE TEST ON WIN32)

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

16 years agorenamed cl_minfps_expbase to cl_minfps_logbase
havoc [Fri, 25 Jan 2008 08:53:00 +0000 (08:53 +0000)]
renamed cl_minfps_expbase to cl_minfps_logbase

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

16 years agoimplemented framerate-dependent particle quality reduction to try to
havoc [Fri, 25 Jan 2008 08:48:57 +0000 (08:48 +0000)]
implemented framerate-dependent particle quality reduction to try to
smooth out fps swings in Ruiner in Nexuiz
added r_drawparticles_drawdistance (and one for decals)
particles and decals arrays now grow dynamically and have smaller
defaults than before
fixed bug with rain particles that made them live for about 4 minutes if
they fell out of the map

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

16 years agoExpandable arrays: memset to zero newly returned records (to be consistent with Mem_A...
divverent [Thu, 24 Jan 2008 21:43:55 +0000 (21:43 +0000)]
Expandable arrays: memset to zero newly returned records (to be consistent with Mem_Alloc). Fixes bug with string buffers.

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

16 years agochanged timedemo one-second stats to sync to cl.time (which comes from
havoc [Thu, 24 Jan 2008 02:44:57 +0000 (02:44 +0000)]
changed timedemo one-second stats to sync to cl.time (which comes from
the demo) rather than realtime, so now they should be more consistent

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

16 years agoedu2p game: change 2nd game dir to 'edu2'
res [Thu, 24 Jan 2008 01:56:18 +0000 (01:56 +0000)]
edu2p game: change 2nd game dir to 'edu2'

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

16 years agoGecko: added ability to call back into a QC entry point (Gecko_Entry) from JS inside...
res [Tue, 22 Jan 2008 22:57:45 +0000 (22:57 +0000)]
Gecko: added ability to call back into a QC entry point (Gecko_Entry) from JS inside a Gecko instance.

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

16 years ago458
tomaz [Tue, 22 Jan 2008 21:05:53 +0000 (21:05 +0000)]
458

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

16 years agotodo items went from 465 to 459 by finding items that was already done or duplicates
tomaz [Tue, 22 Jan 2008 20:56:16 +0000 (20:56 +0000)]
todo items went from 465 to 459 by finding items that was already done or duplicates

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

16 years agomerged CL_MoveParticles, CL_MoveDecals, and R_MoveExplosions into their
havoc [Tue, 22 Jan 2008 20:05:42 +0000 (20:05 +0000)]
merged CL_MoveParticles, CL_MoveDecals, and R_MoveExplosions into their
respective Draw functions, this gave a small fps gain (due to better
cache behavior)
redesigned input packet timing (now based on cl.time instead of
realtime, which required compensating for slowmo), this takes advantage
of the time synchronization features of the cl.time code
replaced cls.movesequence with cls.netcon->outgoing_unreliable_sequence

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

16 years agosome slight cleanup of SV_PushMove
havoc [Tue, 22 Jan 2008 20:03:47 +0000 (20:03 +0000)]
some slight cleanup of SV_PushMove

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

16 years agofixed sprites rendering incorrectly in reflections (the view vectors no
havoc [Tue, 22 Jan 2008 19:56:33 +0000 (19:56 +0000)]
fixed sprites rendering incorrectly in reflections (the view vectors no
longer match the actual rendering matrix in the reflection case, fixing
such problems)

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

16 years agoremoved support for Sajt's unfinished McBSP format
havoc [Tue, 22 Jan 2008 19:17:44 +0000 (19:17 +0000)]
removed support for Sajt's unfinished McBSP format

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

16 years agoremoved mcbsp map parsing
havoc [Tue, 22 Jan 2008 19:15:55 +0000 (19:15 +0000)]
removed mcbsp map parsing

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

16 years agoI really prefer code that actually compiles...
divverent [Tue, 22 Jan 2008 18:53:10 +0000 (18:53 +0000)]
I really prefer code that actually compiles...

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

16 years agoUpdate OffscreenGecko headers again
res [Tue, 22 Jan 2008 17:38:35 +0000 (17:38 +0000)]
Update OffscreenGecko headers again

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

16 years agoNew OffscreenGecko scripting stuff
res [Tue, 22 Jan 2008 15:12:18 +0000 (15:12 +0000)]
New OffscreenGecko scripting stuff

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