Garry's Mod

Garry's Mod

265 ratings
Lithium: Actual Garry's Mod FPS Boost
5
   
Award
Favorite
Favorited
Unfavorite
Content Type: Addon
Addon Type: Tool
Addon Tags: Build
File Size
Posted
Updated
78.677 KB
20 Sep, 2024 @ 7:13am
22 Jan @ 4:29pm
35 Change Notes ( view )

Subscribe to download
Lithium: Actual Garry's Mod FPS Boost

Description
Lithium is in it's WIP stage. Do not expect much from it right now!
Github[github.com] - Bugreports, Feature requests, contributions.
Description
Lithium is a multipurpose multirealm performance improvement addon aimed at trying to optimise gmod's parts that can be accessed through addons as much as possible.
This addon will improve your performance, especially with poorly-written addons.

Dependencies
NikNaks - BSP Reader for "Last Resort" aka "FPS Maxxing" system. Does not impact performance when idle.

Where do I config it?
There is a special menu in Utilities tab where you can configure lithium specifically for you. See Utilities -> Lithium.

I have a problem, How Do I Turn It Off?
Use convars lithium_enabled_cl and lithium_enabled_sv to disable lithium on either client or server (set both to enable/disable on both). Also, report the problem, providing a log in the github issues or down in the comments.
Also, if you want to disable one particular system, you can create file with name lithium_dontload.txt in folder garrysmod/data with content yes to stop lithium from loading.

Known incompabilities and issues
- ANY mod that modifies hook table. That means that at the moment this is incompatible with DLIb and similar addons.
- Exception: This mod is compatible with ULX and ULib.

Features
- New hook system (see what it means below).
- Better Rendering (see what it means below).
- Automatic garbage collection.
- Improved some render calls, Material, GetConVar, CreateConVar calls.
- GPU Saver when out-of-focus.

FAQ
Q: What does "new hook system" means?
A: TL;DR: This makes Garry's mod faster. Lithium provides a drop-in hook module replacement which ranks at about 40% best-case and 25% average performance increase in C++ -> Lua tests. Hooks are an essential part of Garry's mod which allow addons to "hook into" events that game calls from time to time. While some hooks are called just once in a while, others can be called multiple times every frame, so optimised hook module can give anywhere from 0 improvement to "the best you would even imagine".
Q: How exactly did you made "rendering" "better"?
A: By default, Garry's Mod renders entities even if they are not realistically visible, e.g. behind a wall or another entity. That too costs some performance, so, lithium disables rendering of entities that are not actually visible. That by itself can gain about 50 fps on busy servers
Popular Discussions View All (2)
1
6 Aug @ 5:44am
Editing bones being broken
Auditor Cat
0
16 Feb @ 6:58pm
Bugs(?)
LOL DUDE
189 Comments
Lady Alcina Dimitrescu 14 Aug @ 2:34am 
Look at the last update date.
It's been like 7 months.
Gmod got 2 updates since then.

OFC it's going to give errors.
meh 14 Aug @ 2:14am 
the youtuber named RG Studios, watched an video with best addons and this was in this video, tried to check this to sped up my slow pc and actually got script errors, and they said that you - their friend. idk this true or not
googer_  [author] 14 Aug @ 1:55am 
wait, what youtuber?
i'm kinda burnt out from gmod and hidden this addon exactly because of the script errors. probably gonna fix it once i feel like it, but for now just disable it and use alternatives ig
meh 12 Aug @ 11:21pm 
ik, its pretty cool when you got and ad from popular youtuber, BUT PLEASE. MAKE THIS ACTUALLY DOING FPS BOOST. NOT SCRIPT ERRORS.
Lady Alcina Dimitrescu 8 Aug @ 11:26pm 
OOF, you did the same mistake I did with my own performance mod.
Entity Culling is a pain in the ass to get it right, disable entity/misc related culling it causes SEVERE problems with custom weapons and vehicles.
продавец 10 Jul @ 7:55am 
models mw guns broken
CoolsvilleSucks! 9 Jul @ 3:16am 
It causes MW weapons to disappear.
suggar26 8 Jul @ 8:53am 
lowered my fps a little bit actually
Lighty 17 Jun @ 7:59am 
why cant i open the spawn menu when i install this?
Light 15 May @ 5:37am 
This plugin is not compatible with MWb's mod.:steamsad: