Techmo

Yet Another Autoexec

Oct 28th, 2025
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.69 KB | None | 0 0
  1.  
  2.  
  3. // --------------------
  4. // '-- Optimization --'
  5. // --------------------
  6. // These settings will optimize gmod without having any very noticeable effects to the user
  7.  
  8. threadpool_affinity 0 // Disable affinity, allow the OS to schedule threads efficiently
  9. engine_no_focus_sleep 1 // Balance between power savings and background responsiveness
  10. mat_queue_mode -1 // Make sure ideal threading mode is on
  11. r_threaded_particles 1 // Thread particles, NOTE CAUSES OCCASIONAL CRASH ON SOME PCS
  12. cl_threaded_bone_setup 1 // Thread bone setup, can cause occasional errors with bones or incorrect placement
  13. // r_threaded_client_shadow_manager 1
  14. gmod_mcore_test 1 // Gmod multithread, pretty stable but can cause crashes for some, use this at your discretion
  15. r_queued_ropes 1 // Render queue for ropes
  16.  
  17. //cl_crosshair_red 156 // Crosshair red (0 to 255)
  18. //cl_crosshair_green 39 // Crosshair green (0 to 255)
  19. //cl_crosshair_blue 176 // Crosshair blue (0 to 255)
  20. //cl_crosshair_scale 32 // Size of crosshair
  21. //cl_crosshair_file "" // Style of crosshair
  22. //cl_observercrosshair 0 // Disable crosshair in spectator
  23. //crosshair 0 // Disable crosshair entirely
  24.  
  25.  
  26. cl_showfps 2 // FPS meter, 1 = show, 2 = smooth
  27. con_enable 1 // Enable the developer console
  28.  
  29. fov_desired 100 // See more of the battlefield
  30.  
  31. //snd_async_fullyasync 1 // Skip sound cache, load all sounds async
  32. //snd_async_minsize 0 // ^
  33.  
  34. snd_pitchquality 0 // Use linear mixer for sound, performance benefit
  35. //snd_pitchquality 1 // Use interpolated mixer for sound, sound quality increase
  36. //snd_disable_mixer_duck 0 // Enable mixing sounds to adjust volume
  37. snd_disable_mixer_duck 1 // Disable some sounds being mixed to be louder than others
  38. //snd_surround_speakers -1 // Autodetect speaker configuration from OS
  39. snd_surround_speakers 0 // Force headphones
  40. //snd_surround_speakers 2 // Force mono/stereo
  41. //snd_surround_speakers 4 // Force quad
  42. //snd_surround_speakers 5 // Force 5.1
  43. //windows_speaker_config -1 // Windows speaker configuration
  44.  
  45. // ----------------------
  46. // '-- Spatialization --'
  47. // ----------------------
  48. // Adjust spatialization (sound travel and volume falloff) and DSP effects (sound filters)
  49.  
  50. dsp_enhance_stereo 0 // Disable extra spatial DSP effects and delays
  51. //dsp_enhance_stereo 1 // Enable to apply spatial DSP effects to all channels
  52. //dsp_slow_cpu 0 // Use enhanced positional effects
  53. dsp_slow_cpu 1 // Disable initialization of enhanced spatialization
  54. //snd_spatialize_roundrobin 1 // Spatialize sounds every 2 frames, less performance benefit
  55. snd_spatialize_roundrobin 3 // Spatialize sounds every 8 frames (2^3) using round-robin algorithm. Pretty reasonable performance benefit, but delay in spatialization.
  56. //snd_spatialize_roundrobin 0 // Spatialize every frame
  57. dsp_room 0 // Disable automatic DSP
  58. //dsp_room 1 // Enable automatic DSP, adjusts DSP according to the room type/size you are in
  59. //dsp_speaker 50 // Administrator effect (can be 50 to 59)
  60. dsp_speaker 0 // Disable administrator effect
  61. //dsp_water 14 // Water muffling effect (small delay)
  62. //dsp_water 15 // Water muffling effect (medium delay)
  63. //dsp_water 16 // Water muffling effect (large delay)
  64. dsp_water 0 // Disable water muffling effect
  65. dsp_spatial 40 // Spatial delay effect for positional audio
  66. //dsp_spatial 0 // Disable spatial effect
  67.  
  68. // -----------------
  69. // Networking
  70. // -----------------
  71. //net_maxpacketdrop 0 // Use all packets, helps people with spotty connections keep playing
  72. net_maxpacketdrop 5000 // Use default packet drop threshold, to be more strict about networking, this can help if you play on very large servers and your connection is stable
  73. cl_timeout 600 // Max client timeout
  74. //cl_smooth 1 // Do not instantly correct prediction errors, as they are predominantly small enough to be smoothed over with negligible error and has less distracting jitters in view
  75. // If you play something competitive I highly recommend leaving this disabled, otherwise enable it for something like darkrp
  76. cl_smoothtime .05 // Decrease smooth time to reject large prediction errors faster
  77. net_queued_packet_thread 1 // Keep thread on in case we start sending split packets
  78. net_queued_packet_thread 581304 // Queue all packets
  79. net_splitrate 1 // Number of fragments for a splitpacket that can be sent per frame
  80. net_udp_rcvbuf 131072 // Game does not handle overflows correctly, so no point in setting this lower
  81. sv_lan 1 // Protect local servers
  82. net_chokeloop 1 // Early check for multiplayer
  83. cl_localnetworkbackdoor 0 // Fast path for multiplayer to skip backdoor
  84. host_limitlocal 1 // Prevent excess work on local
  85.  
  86. // --------------------
  87. // '-- Optimization --'
  88. // --------------------
  89. // Optimizations with no noticeable effect on the listener
  90.  
  91. //snd_cull_duplicates 0 // Do not skip playing duplicate sounds
  92. snd_cull_duplicates 1 // Only play one of each sound at a time
  93. //voice_steal 2 // Reuse unimportant sound channels, increases FPS and sound quality (does not work in autoexec)
  94. snd_noextraupdate 1 // Do not update sound twice
  95. snd_defer_trace 1 // Defer DSP spatialization with tracing to the next frame
  96. //snd_defer_trace 0 // Immediately trace on the first frame
  97. snd_async_spew_blocking 0 // Disable async spew
  98.  
  99. // -------------
  100. // '-- Mouse --'
  101. // -------------
  102. // Mouse movement and aiming
  103.  
  104. m_pitch .022 // Pitch factor
  105. m_yaw .022 // Yaw factor
  106. //sensitivity 3 // Mouse sensitivity
  107. //m_limitedcapture_workaround 1 // Workaround for mouse capture issues
  108. m_filter 0 // Do not average mouse input over two frames, more responsive mouse input
  109. //m_filter 1 // Average mouse input over two frames, more stable mouse input with high FPS variability
  110. m_mousespeed 0 // Disable Windows mouse acceleration (-noforcemspd)
  111. m_mouseaccel1 0 // ^ (-noforcemaccel)
  112. m_mouseaccel2 0 // ^ (-noforcemaccel)
  113. m_rawinput 1 // Use raw input from mouse
  114. m_customaccel 0 // custom mouse acceleration
  115. // 0 - no custom acceleration
  116. // 1 - mouse acceleration = min(m_customaccel_max, pow(raw_mouse_delta, m_customaccel_exponent) * m_customaccel_scale + sensitivity)
  117. // 2 - Same as 1, with but x and y sensitivity are scaled by m_pitch and m_yaw respectively.
  118. // 3 - mouse acceleration = pow(raw_mouse_delta, m_customaccel_exponent - 1) * sensitivity
  119. //m_customaccel_scale .04 // ^
  120. //m_customaccel_max 0 // ^
  121. //m_customaccel_exponent 1 // ^
  122. zoom_sensitivity_ratio .793471 // Use same sensitivity as when unscoped
  123.  
  124. alias toggle_jump "switch_mode"
  125. alias switch_mode "space_mode"
  126. alias space_mode "bind space +jump; bind mwheelup invprev; bind mwheeldown invnext; alias toggle_jump mwheel_mode"
  127. alias mwheel_mode "bind mwheeldown +jump; bind mwheelup +jump; bind space none; alias toggle_jump space_mode"
  128. bind "g" "toggle_jump"
  129.  
  130.  
Advertisement
Add Comment
Please, Sign In to add comment