// ============================================================================= \\ // _____ __ __ ______ _________ ________ _ __ \\ // / ____| /\ | \/ | ____| |__ __\ \ / / ____| /\ | |/ / \\ // | | __ / \ | \ / | |__ | | \ \ /\ / /| |__ / \ | ' / \\ // | | |_ | / /\ \ | |\/| | __| | | \ \/ \/ / | __| / /\ \ | < \\ // | |__| |/ ____ \| | | | |____ | | \ /\ / | |____ / ____ \| . \ \\ // \_____/_/ \_\_| |_|______| |_| \/ \/ |______/_/ \_\_|\_\ \\ // ============================================================================= \\ // 'gametweak.cfg' is a highly customizable configuration file designed exclusively to improve your game's performance. // Check the small Q&A at the end of the file for more information. //===GENERAL===\\ - Section with the main CVars. Unless you want to modify GameTweak more deeply, you don't need to change anything here. sv_cheats "1" // 0 - Necessary sv_logfile "0" // 1 sv_forcepreload "1" // 0 cl_forcepreload "1" // 0 cl_ragdoll_collide "0" // 0 cl_burninggibs "0" // 0 cl_ejectbrass "0" // 1 cl_drawleaf "0" // -1 cl_show_splashes "0" // 1 mat_specular "0" // 1 mat_bumpmap "0" // 1 mat_antialias "0" // 1 mat_aaquality "0" // 0 mat_trilinear "0" // 1 mat_forceaniso "0" // 1 mat_filtertextures "0" // 1 mat_filterlightmaps "0" // 1 mat_disable_bloom "1" // 0 mat_bloom_scalefactor_scalar "0" // 1.0 mat_bloomamount_rate "0" // 0.5f mat_colorcorrection "0" // 1 mat_disablehwmorph "1" // 0 mat_mipmaptextures "1" // 1 mat_compressedtextures "1" // 1 mat_tonemapping_occlusion_use_stencil "1" // 1 mat_disable_fancy_blending "1" // 0 mat_disable_lightwarp "1" // 0 mat_reducefillrate "1" // 0 mat_alphacoverage "0" // 1 mat_use_compressed_hdr_textures "1" // 1 mat_managedtextures "0" // 1 mat_tonemap_algorithm "0" // 1 r_WaterDrawReflection "0" // 1 r_waterforcereflectentities "0" // 1 r_waterforceexpensive "0" // 1 r_ForceWaterLeaf "0" // 1 r_cheapwaterstart "999999" // 0.000000 r_cheapwaterend "999999" // 0.100000 r_dynamic "0" // 1 r_dynamiclighting "0" // 1 r_lightaverage "0" // 1 r_lightinterp "0" // 5 r_drawsprites "0" // 1 r_drawdecals "0" // 1 r_drawbatchdecals "0" // 1 r_shadow_allowdynamic "0" // 1 r_shadow_allowbelow "0" // 1 r_shadow_lightpos_lerptime "0" // 0.5 r_shadowfromworldlights "0" // 1 r_shadowfromanyworldlight "0" // 0 r_shadowrendertotexture "0" // 1 r_flashlightdepthres "0" // 1024 r_flashlightdepthtexture "0" // 0 r_flashlightmodels "0" // 1 r_flashlightscissor "0" // 0 r_flashlightdrawdepth "0" // 0 r_flashlightdrawfrustum "0" // 0 r_flashlightrenderworld "0" // 1 r_ropetranslucent "0" // 1 r_hwmorph "0" // 1 r_staticprop_lod "10" // -1 r_3dsky "0" // 1 r_radiosity "0" // 3 r_ambientlightingonly "0" // 0 - Causes models to appear dark if the DX level is 90 or higher, so for a better experience during gameplay, enabling this is generally not recommended. However, you can enable it if the DX level is 81 or lower. r_drawmodeldecals "0" // 1 r_drawflecks "0" // 1 r_drawparticles "0" // 1 r_DrawRain "0" // 1 r_worldlights "0" // 4 r_drawtranslucentworld "0" // 1 r_fastzreject "1" // -1 r_fastzrejectdisp "1" // -1 dsp_enhance_stereo "0" // 0 dsp_slow_cpu "1" // 0 dsp_room "0" // 0 dsp_facingaway "0" // 0 dsp_speaker "0" // 50 dsp_spatial "0" // 40 dsp_water "0" // 14 snd_pitchquality "0" // 0 snd_noextraupdate "1" // 0 g_antlion_maxgibs "0" // 16 mp_usehwmmodels "-1" // 0 mp_usehwmvcds "-1" // 0 violence_hgibs "0" // 1 violence_agibs "0" // 1 fog_enable_water_fog "0" // 1 fog_enableskybox "0" // 1 fog_startskybox "99999" // -1 fog_endskybox "99999" // -1 fog_start "99999" // -1 fog_end "99999" // -1 props_break_max_pieces "0" // -1 props_break_max_pieces_perframe "0" // -1 ai_expression_optimization "1" // 0 //=============\\ //===RAGDOLLS===\\ - Controls for ragdolls, such as the max number of ragdolls, ragdoll fade speed, etc. This will apply (mainly) to NPC and player corpses. g_ragdoll_maxcount "8" // Low values reduce the number of ragdolls that can exist simultaneously. High values increase this property but may cause instability. Default value is 32. g_ragdoll_important_maxcount "0" // The same explanation for "g_ragdoll_maxcount" applies here, with the only difference being that it will control the number of ragdolls prioritized by the game. Default value is 2. g_ragdoll_fadespeed "1000" // 0 = Disabled (ragdolls will never disappear); 200 = Slow; 600 = Normal, default; 1000 = Fast; 2000 = Very fast; 9999 = Instantaneous. g_ragdoll_lvfadespeed "1000" // Has the same function as g_ragdoll_fadespeed, but it seems that the engine uses these two commands in different situations. It's recommended to set the value of this CVar to the same value defined for g_ragdoll_fadespeed. Default value is 100. ragdoll_sleepaftertime "1.0f" // After this many seconds of being basically stationary, the ragdoll will freeze (go to sleep) until "woken up" by physics. High values are not necessary, and 0 is not recommended unless ragdolls are disabled. Default value is 5.0f. //==============\\ //===FACIAL EXPRESSIONS===\\ - Controls for flex and secondary models. flex_rules "1" // Allow flex animation rules to run. 0 Means no facial expressions at all. Default value is 1. flex_smooth "0" // Applies smoothing/decay curve to flex animation controller changes. 0 Will result in abrupt flex animations. Default value is 1. blink_duration "0" // How many seconds an eye blink will last. 0 Disables this feature. Default value is 0.2. r_teeth "0" // Enables/disables the mouth model in any model that has one. Default value is 1. r_eyes "1" // Enables/disables the eye model in any model that has one. Default value is 1. r_eyemove "0" // Enables/disables eye movement. Default value is 1. //========================\\ //===MISCELLANEOUS===\\ - Misc CVars for various situations. cl_phys_timescale "0.90" // Sets the scale of time for client-side physics (ragdolls). Low values = Slowness; High values = Speed. Recommended values are between 0.80 and 0.90. Lower values may improve performance but can be somewhat inconvenient. Default value is 1.0. mat_picmip "2" // Texture quality. The higher the value, the worse the texture quality. The lower the value, the better the texture quality. Min = -10; Max = 20. Default value is 0. mat_fullbright "0" // Disables all world lighting effects, making the entire map fully lit. Shadows and light effects produced by other entities, such as NPC shadows and your flashlight are not affected. Default value is 0. r_shadows "1" // Enables/disables entity shadows. It's recommended to use this with mat_fullbright, as setting it to 0 will break the flashlight. Default value is 1. r_maxdlights "0" // Controls the max number of dynamic lights that can occur simultaneously. It's recommended to enable r_dynamic/r_dynamiclighting if you want to use this. Default value is 32. r_decals "16" // Controls the max number of decals that can exist simultaneously. It's recommended to enable r_drawdecals if you want to use this. Default value is 2048. r_WaterDrawRefraction "1" // Enables/disables water refraction. Disabling this may be good for performance, but it can be inconvenient. Default value is 1. r_drawropes "1" // Displays/hides ropes. It can be necessary for gameplay. Not recommended to disable unless you don't mind not seeing ropes. Default value is 1. r_DrawBeams "0" // Displays/hides beams, such as tripmine beams. Default value is 1. r_drawtranslucentrenderables "1" // Renders translucent renderables. This includes not only glass but also certain models for some reason. It's not recommended to disable this unless you don't mind invisible props. Default value is 1. r_skybox "1" // Allows the rendering of 2D skyboxes. 0 will result in a black skybox. Might minimally improve performance. Default value is 1. r_lod "3" // Controls the level of detail in models. The higher the value, the lower the LOD and worse the quality of the models. -1 seems to be the min, and 4 seems to be the max. Note that values above 3 will make certain models invisible, such as barnacles for example. Default value is -1. snd_mixahead "1" // Controls audio buffering. Higher values enhance audio stability but result in greater sound delay. Lower values reduce audio stability but lead to less sound delay. Might minimally improve performance. Default value is 0.1. host_timescale "1.0" // In-game speed. Values less than 1 will decrease the in-game speed and improve performance. Values greater than 1 will increase the in-game speed and degrade performance. It's recommended to set the value to "0.89" or between 0.82 and 0.95. Default value is 1.0. physgun_drawbeams "1" // Draws the physgun beams. It can be a bit inconvenient when disabled. Default value is 1. physgun_halo "0" // Draws the physgun grab effect. It's useful to disable in situations where this feature is causing performance issues. Default value is 1. //===================\\ //===MULTICORE===\\ - Controls for multicore and queueing system. Disable everything here if your CPU has only one core. gmod_mcore_test "1" // If you are experiencing constant crashes, change the value of this CVar to 0. sv_parallel_sendsnapshot "1" // Might cause some instability. Change the value to 0 if your game crashes when taking a screenshot. mat_queue_mode "2" // -1 = Uses the engine's default settings; 0 = (single-threaded) Processes graphics tasks one at a time; 2 = (multi-threaded) Processes graphics tasks at the same time using multiple CPU cores. sv_parallel_packentities "1" cl_threaded_bone_setup "1" cl_threaded_client_leaf_system "1" r_threaded_client_shadow_manager "1" r_threaded_particles "1" r_threaded_renderables "1" r_queued_ropes "1" //===============\\ //===COMPATIBILITY===\\ - Controls for general compatibility. If you're experiencing any issues related to a specific map, addon, your computer's performance with the game, or the game itself, consider checking here. mat_disable_d3d9ex "0" // Disables Windows Aero DirectX extensions (may positively or negatively affect performance depending on video drivers). Default value is 0. mat_hdr_level "0" // Controls HDR for HDR maps. 0 = No HDR, will result in some maps with no lighting effects; 1 = LDR+bloom; 2 = Default, HDR enabled. r_newflashlight "1" // Use this to switch between the new HL2 flashlight and the HL1 styled flashlight. 1 means the new flashlight, 0 means the old flashlight. This is useful in situations where the new flashlight is causing performance issues whenever it’s turned on. Default value is 1. fog_override "1" // This overrides the fog settings of the map, regardless of whether the map has fog or not. This has already been configured, so in this case the fog will simply be disabled. // A few maps require fog to be active to avoid graphical glitches, so if that becomes an issue for you, you can set the value of this CVar back to 0. //=DANGER ZONE=\\ mat_dxlevel "90" // Controls which version of DirectX the game should run. This will affect the overall rendering of your game and can either positively or negatively impact performance depending on your hardware's capability. // Currently, in Garry's Mod only the following DX levels are allowed: 95 (max, default), 90, 81, 80 (min). The higher the value, the better the game's quality will be. The lower the value, the simpler the game's quality. Keep in mind that lower values may improve the game's compatibility with your machine but could break or mess with graphical features, mainly affecting maps and certain addons. // Be prepared to encounter a lot of issues related to the game's graphical features, such as broken effects and even an invisible VGUI, as well as issues with maps (such as HDR being required in some of them) and a few addons. // If you want to lower the value, a safe value would be 90, but nothing is guaranteed. //===COMPATIBILITY===\\ //=====Q&A=====\\ // //Q1: Will this improve my game performance? //A1: Yes, if used correctly, it will. The script is already configured to enhance performance at the cost of some graphical quality, as it was designed for users with weaker computers that struggle to run Garry's Mod smoothly. // Also, you can configure and customize this CFG file in any way you like to meet your specific needs. // //Q2: Why should I use this? Wouldn't it be better to use an optimization addon instead? //A2: In terms of speed, no, you should not use an optimization addon. GameTweak configures various CVars that are executed directly by the engine, which makes these operations faster and more compatible. // In contrast, an addon is written in Lua and runs in an environment that translates the Lua code to the engine. This means addons operate on top of the engine, which can slow down performance (even though Lua is a fast programming language). // Additionally, there's also the potential issues of instability and compatibility that may arise from using an addon... // However, if you prioritize flexibility and customization, then yes, you might consider using an addon. // In summary, if you want something faster, more stable, and compatible, use CVars. // On the other hand, if you prefer something that is not as fast, but considerably stable, reasonably compatible, and more flexible, then go for addons. // //Q3: Who is the creator of gametweak.cfg? //A3: The creator of gametweak.cfg is "AI7" (a-i-7). // Profile on GameBanana: https://gamebanana.com/members/2153829 // Script on GameBanana: https://gamebanana.com/scripts/12235 // //=====Q&A=====\\ menu_cleanupgmas mem_compact clear echo !----------GameTweak: ACTIVATION INITIATED----------! echo (GAME TWEAK) RAGDOLLS/Notice: Remember to check the ''RAGDOLLS'' section for customization if necessary. echo (GAME TWEAK) FLEX/Notice: Remember to check the ''FACIAL EXPRESSIONS'' section for customization if necessary. echo (GAME TWEAK) MISC/Notice: Remember to check the ''MISCELLANEOUS'' section for customization if necessary. echo (GAME TWEAK) MC/Notice: You might need to modify the ''MULTICORE'' section to avoid compatibility issues during the game. echo (GAME TWEAK) COMPAT/Notice: Consider checking the ''COMPATIBILITY'' section if your computer is older and/or you're experiencing certain graphic issues.