Skip to content

Commit bf46a4e

Browse files
committed
reduce sound delay even more
disable extra sound updates remove cheat flag on dsp_off, so users can set it for performance disable async blocking spew adjust networking defaults based on CSGO 66 packet rate, increased rate, adjusted SourceTV network defaults remove paranoid OSX defaults add con_filter_enable 3, which disables console logging use host_timescale 0 as an optimized default enable z buffer light cache, and fix crashes associated with maps with a lot of lights increase hunk size from 48MB to 64MB fully enable async mdl cache unload textures on death rather than per frame disable broken max packet drop implementation enabled parallel snapshots increased fps_max to 400, and minimum to 49 from 30 fixed allocation size bug in data cache enabled filesystem buffering exposed impact effect cvars to user enabled water impact limits by default enable raw input by default increase max FOV to 120, default FOV to 90 skip particle function call optimize cl_particle_retire_cost disable match HUD for now rendering optimizations
1 parent a85e748 commit bf46a4e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+18821
-18800
lines changed

datacache/mdlcache.cpp

Lines changed: 3924 additions & 3924 deletions
Large diffs are not rendered by default.

engine/DownloadListGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ CDownloadListGenerator &DownloadListGenerator()
3030
return g_DownloadListGenerator;
3131
}
3232

33-
ConVar sv_logdownloadlist( "sv_logdownloadlist", IsX360() ? "0" : "1" );
33+
ConVar sv_logdownloadlist( "sv_logdownloadlist", "0" );
3434

3535
extern int GetSvPureMode();
3636

engine/audio/private/snd_dma.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ float g_ClockSyncArray[NUM_CLOCK_SYNCS] = {0};
245245
int g_SoundClockPaintTime[NUM_CLOCK_SYNCS] = {0};
246246

247247
// default 10ms
248-
ConVar snd_delay_sound_shift("snd_delay_sound_shift","0.01");
248+
ConVar snd_delay_sound_shift("snd_delay_sound_shift","0");
249249
// this forces the clock to resync on the next delayed/sync sound
250250
void S_SyncClockAdjust( clocksync_index_t syncIndex )
251251
{
@@ -451,7 +451,7 @@ static soundfade_t soundfade; // Client sound fading singleton object
451451
// autodetected from windows settings
452452
ConVar snd_surround( "snd_surround_speakers", "-1", FCVAR_INTERNAL_USE );
453453
ConVar snd_legacy_surround( "snd_legacy_surround", "0", FCVAR_ARCHIVE );
454-
ConVar snd_noextraupdate( "snd_noextraupdate", "0" );
454+
ConVar snd_noextraupdate( "snd_noextraupdate", "1" );
455455
ConVar snd_show( "snd_show", "0", FCVAR_CHEAT, "Show sounds info" );
456456
ConVar snd_visualize ("snd_visualize", "0", FCVAR_CHEAT, "Show sounds location in world" );
457457
ConVar snd_pitchquality( "snd_pitchquality", "1", FCVAR_ARCHIVE ); // 1) use high quality pitch shifters

engine/audio/private/snd_dsp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5922,7 +5922,7 @@ int idsp_speaker;
59225922
int idsp_spatial;
59235923
int idsp_automatic;
59245924

5925-
ConVar dsp_off ("dsp_off", "0", FCVAR_CHEAT | FCVAR_ALLOWED_IN_COMPETITIVE ); // set to 1 to disable all dsp processing
5925+
ConVar dsp_off ("dsp_off", "0", FCVAR_ALLOWED_IN_COMPETITIVE ); // set to 1 to disable all dsp processing
59265926
ConVar dsp_slow_cpu ("dsp_slow_cpu", "0", FCVAR_ARCHIVE|FCVAR_DEMO ); // set to 1 if cpu bound - ie: does not process dsp_room fx
59275927
ConVar snd_profile ("snd_profile", "0", FCVAR_DEMO ); // 1 - profile dsp, 2 - mix, 3 - load sound, 4 - all sound
59285928
ConVar dsp_volume ("dsp_volume", "1.0", FCVAR_ARCHIVE|FCVAR_DEMO ); // 0.0 - 2.0; master dsp volume control

engine/audio/private/snd_wave_data.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ extern double realtime;
4242
#define TF_XBOX_WAV_MEMORY_CACHE ( 24 * 1024 * 1024 ) // Team Fortress uses a larger cache
4343

4444
// Dev builds will be missing soundcaches and hitch sometimes, we only care if its being properly launched from steam where sound caches should be complete.
45-
ConVar snd_async_spew_blocking( "snd_async_spew_blocking", "1", 0, "Spew message to console any time async sound loading blocks on file i/o. ( 0=Off, 1=With -steam only, 2=Always" );
45+
ConVar snd_async_spew_blocking( "snd_async_spew_blocking", "0", 0, "Spew message to console any time async sound loading blocks on file i/o. ( 0=Off, 1=With -steam only, 2=Always" );
4646
ConVar snd_async_spew( "snd_async_spew", "0", 0, "Spew all async sound reads, including success" );
4747
ConVar snd_async_fullyasync( "snd_async_fullyasync", "0", 0, "All playback is fully async (sound doesn't play until data arrives)." );
4848
ConVar snd_async_stream_spew( "snd_async_stream_spew", "0", 0, "Spew streaming info ( 0=Off, 1=streams, 2=buffers" );

engine/cl_bounded_cvars.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class CBoundedCvar_CmdRate : public ConVar_ServerBounded
7272
CBoundedCvar_CmdRate() :
7373
ConVar_ServerBounded(
7474
"cl_cmdrate",
75-
"30",
75+
"66",
7676
FCVAR_ARCHIVE | FCVAR_USERINFO,
7777
"Max number of command packets sent to server per second", true, MIN_CMD_RATE, true, MAX_CMD_RATE )
7878
{
@@ -119,7 +119,7 @@ class CBoundedCvar_UpdateRate : public ConVar_ServerBounded
119119
CBoundedCvar_UpdateRate() :
120120
ConVar_ServerBounded(
121121
"cl_updaterate",
122-
"20",
122+
"66",
123123
FCVAR_ARCHIVE | FCVAR_USERINFO | FCVAR_NOT_CONNECTED,
124124
"Number of packets per second of updates you are requesting from the server" )
125125
{

engine/client.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,7 @@ static ConVar cl_soundfile( "cl_soundfile", "sound/player/jingle.wav", FCVAR_ARC
6060
static ConVar cl_allowdownload ( "cl_allowdownload", "1", FCVAR_ARCHIVE, "Client downloads customization files" );
6161
static ConVar cl_downloadfilter( "cl_downloadfilter", "all", FCVAR_ARCHIVE, "Determines which files can be downloaded from the server (all, none, nosounds, mapsonly)" );
6262

63-
#ifdef OSX
64-
// OS X is barely making it due to virtual memory pressure on 32bit, our behavior of load new models -> unload
65-
// unused is far too abusive for its estimated margin of maybe two or three bytes before crashing.
66-
#define CONVAR_DEFAULT_ALWAYS_FLUSH_MODELS "1"
67-
#else
68-
#define CONVAR_DEFAULT_ALWAYS_FLUSH_MODELS "0"
69-
#endif
70-
static ConVar cl_always_flush_models( "cl_always_flush_models", CONVAR_DEFAULT_ALWAYS_FLUSH_MODELS, FCVAR_INTERNAL_USE,
63+
static ConVar cl_always_flush_models( "cl_always_flush_models", "0", FCVAR_INTERNAL_USE,
7164
"If set, always flush models between map loads. Useful on systems under memory pressure." );
7265

7366
extern ConVar sv_downloadurl;

engine/console.cpp

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ static ConVar con_notifytime( "con_notifytime","8", FCVAR_MATERIAL_SYSTEM_THREAD
122122
static ConVar con_times("contimes", "8", FCVAR_MATERIAL_SYSTEM_THREAD, "Number of console lines to overlay for debugging." );
123123
static ConVar con_drawnotify( "con_drawnotify", "1", 0, "Disables drawing of notification area (for taking screenshots)." );
124124
static ConVar con_enable("con_enable", "0", FCVAR_ARCHIVE, "Allows the console to be activated.");
125-
static ConVar con_filter_enable ( "con_filter_enable","0", FCVAR_MATERIAL_SYSTEM_THREAD, "Filters console output based on the setting of con_filter_text. 1 filters completely, 2 displays filtered text brighter than other text." );
125+
static ConVar con_filter_enable ( "con_filter_enable","0", FCVAR_MATERIAL_SYSTEM_THREAD, "Filters console output based on the setting of con_filter_text. 1 filters completely, 2 displays filtered text brighter than other text. 3 completely disables console output." );
126126
static ConVar con_filter_text ( "con_filter_text","", FCVAR_MATERIAL_SYSTEM_THREAD, "Text with which to filter console spew. Set con_filter_enable 1 or 2 to activate." );
127127
static ConVar con_filter_text_out ( "con_filter_text_out","", FCVAR_MATERIAL_SYSTEM_THREAD, "Text with which to filter OUT of console spew. Set con_filter_enable 1 or 2 to activate." );
128128

@@ -495,12 +495,14 @@ void Con_ColorPrint( const Color& clr, char const *msg )
495495
int nCon_Filter_Enable = con_filter_enable.GetInt();
496496
if ( nCon_Filter_Enable > 0 )
497497
{
498-
const char *pszText = con_filter_text.GetString();
499-
const char *pszIgnoreText = con_filter_text_out.GetString();
498+
const char *pszText;
499+
const char *pszIgnoreText;
500500

501501
switch( nCon_Filter_Enable )
502502
{
503503
case 1:
504+
pszText = con_filter_text.GetString();
505+
pszIgnoreText = con_filter_text_out.GetString();
504506
// if line does not contain keyword do not print the line
505507
if ( pszText && ( *pszText != '\0' ) && ( Q_stristr( msg, pszText ) == NULL ))
506508
return;
@@ -509,6 +511,8 @@ void Con_ColorPrint( const Color& clr, char const *msg )
509511
break;
510512

511513
case 2:
514+
pszText = con_filter_text.GetString();
515+
pszIgnoreText = con_filter_text_out.GetString();
512516
if ( pszIgnoreText && *pszIgnoreText && ( Q_stristr( msg, pszIgnoreText ) != NULL ) )
513517
return;
514518
// if line does not contain keyword print it in a darker color
@@ -520,6 +524,9 @@ void Con_ColorPrint( const Color& clr, char const *msg )
520524
}
521525
break;
522526

527+
case 3:
528+
return;
529+
523530
default:
524531
// by default do no filtering
525532
break;

engine/enginetool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ void CEngineTool::SetGamePaused( bool paused )
444444

445445
float CEngineTool::GetTimescale()
446446
{
447-
return host_timescale.GetFloat();
447+
return host_timescale.GetFloat() ? host_timescale.GetFloat() : 1.0f;
448448
}
449449

450450
void CEngineTool::SetTimescale( float scale )

0 commit comments

Comments
 (0)