Garry's Mod

Garry's Mod

Simple Physics Throttler
55 条留言
Cyclotone 12 月 6 日 上午 11:22 
I didn't agree with kurgs video... but anyways as long as AI helps produce a working functional mod, it's a good thing in my eyes.
mingebag 11 月 15 日 上午 6:28 
*slow
mingebag 11 月 15 日 上午 6:28 
"The script dynamically reduces the host_timescale convar if the game's frame rate drops behind your custom limit" It makes also the sound, the player movement, and like everything :( There is a phys_timescale convar in gmod
tinkle doinky the 3rd 11 月 15 日 上午 4:37 
Middle eastern Scoutmain shut up brah
EthicalObligation 10 月 17 日 上午 10:15 
The code I posted is more than enough for most people looking for timescale fps tieing. Just put it in an autorun.lua and you should be good.
ayethire 10 月 13 日 上午 12:54 
Please work on this addon, This addon works well and i'm not the minimum age to obtain a job to potentially gain a more powerful computer. Thanks.
Middle eastern Scoutmain 10 月 9 日 上午 10:08 
oh yeah AI SUX (sucks)
Middle eastern Scoutmain 10 月 9 日 上午 10:08 
i forgot it was a reddit ... forum link but the video still exist in youtube
Middle eastern Scoutmain 10 月 9 日 上午 10:07 
using chatgpt for suggestions was a SIN

i heard that only 80% of it actually is useful and from real sources (the 20% is made up and fake)

(p.s:if you wonder where i got the darn info i watched kurgezte??something something (title: having "AI SLOP" word in it) the link: https://www.reddit.com/r/mealtimevideos/comments/1o0jp7e/ai_slop_is_killing_our_channel_1213/ )
Cogs  [作者] 9 月 25 日 上午 1:37 
I fully expect to have broken something, so just let me know.
Unami Fox 9 月 15 日 下午 9:24 
If you guys don't like it then just make it yourself. (I would prob sub to that instead if its not made by a bot)
A̷r̷b̷i̷z̷y̷ 8 月 29 日 上午 10:02 
not bad:steamsad:
koishicat 8 月 4 日 上午 3:36 
just because you stated it doesnt mean these idiots can read.
Cogs  [作者] 8 月 3 日 下午 10:08 
@koishicat, the use of AI was stated in the Disclaimers'N'Stuff section.

It is my prerogative to work on(or not work on) the code in this addon at any given time. If someone wants to make a superior version of this addon I am not adverse to that (I would like a better version).

In terms of the phys_timescale: It does not slowdown NPCs, grenade detonation timers, and perhaps other things I'm not aware of. This means it might be less helpful in getting frames in NPC heavy battles. (though I don't fully understand the relationship between host_timescale and NPC processing) . All that being said, I think its a good idea to add an option for the addon to use phys_timescale as there are benefits to it. If/when I get around to this for this addon, is up to me. Someone may beat me to it(or not).

I will leave your comment up.

For others:

As of now I am still unsure of a method to gain all the benefits of host_timescale while also not slowing down sounds.
koishicat 8 月 2 日 下午 8:25 
guys he cant change it to phys_timescale because he cant ♥♥♥♥♥♥♥ code. chatgpt made the entire thing. it becomes obvious when you look at his profile and see his other uploads.

just reupload the mod but better with phys_timescale, he doesnt even own the code.
f2p player 8 月 1 日 上午 1:40 
could you use phys_timescale instead? the new "sounds slowing down" effect going off randomly is kinda annoying
!!PleaseCleanMyteeth!! 7 月 21 日 上午 1:30 
This is the teardown method.
Podium™ the Ⅶ 7 月 13 日 上午 9:02 
this is very great,best performance mod it literally lets you explode 100 explosives without your pc dying which i did it,personally use it with a bunch of fix addons like lua patcher,another performance mod and redundant file finder ontop
Dyḗus ph₂tḗr 7 月 9 日 下午 12:51 
very amazing addon, unfortunatly its just kills the gameplay because of my 82948 lagging and conflicting addons. Saved in favorites, will use when I became an adequate human being sometime later
cheese 7 月 4 日 下午 3:48 
if you combine it with the original bullet time mod, time slows down when it gets laggier. so it's like your character is getting really focused in the action and it makes for a really cool effect
Link 6 月 21 日 上午 3:43 
the only actually useful performance mod i have ever seen good job
Spoon 6 月 20 日 下午 9:09 
Yeah the sound throttling is really annoying can you disable it
Crimsovil 5 月 22 日 上午 8:00 
Is there a way to disable the throttle effect for sounds? Certain sounds break, mostly any custom music or ambience from maps
Unami Fox 5 月 13 日 下午 8:14 
NGL, the constant fluctuations even when its an empty map kinds ruins this.
Cogs  [作者] 5 月 7 日 上午 9:48 
@EthicalObligation @Osadnickzek140: I'll look into what you've posted and I will also look at the dynamic noclip compensation thing. I am doing finals ATM and so I can't give you guys a timeline, might be a while.
EthicalObligation 5 月 3 日 上午 2:43 
Feel free to use any of my script and even publish all of it! :)
EthicalObligation 5 月 3 日 上午 2:43 
if SERVER then
util.AddNetworkString( "ClientIdealTimescale" )
net.Receive("ClientIdealTimescale",function(len,ply)
if len == 0 or !IsValid(ply) then return end
local ClientIdealTimescale = 1
ClientIdealTimescale = net.ReadDouble()
if ClientIdealTimescale > 1 then
ClientIdealTimescale = 1
elseif ClientIdealTimescale <= 0 then
ClientIdealTimescale = 1
end
ply.ClientIdealTimescale = ClientIdealTimescale
end)
EthicalObligation 5 月 3 日 上午 2:43 
...
hook.Add("Tick","ServerDecidedTimescale", function()
local ClientsSummedIdealTimescale = 0
local players = 0
for key, ply in pairs(player.GetAll()) do
if !ply.ClientIdealTimescale then return end
ClientsSummedIdealTimescale = ClientsSummedIdealTimescale + ply.ClientIdealTimescale
players = players + 1
end
local wantedts = math.min(ClientsSummedIdealTimescale / players,1)
local thetimescale = game.GetTimeScale()
if wantedts < thetimescale then
game.SetTimeScale(thetimescale - 0.02)
end
if wantedts > thetimescale then
game.SetTimeScale(thetimescale + 0.001)
end
-- game.SetTimeScale(wantedts)
-- print(ClientsSummedIdealTimescale / players)
-- print(game.GetTimeScale())
end)
EthicalObligation 5 月 3 日 上午 2:43 
elseif CLIENT then
hook.Add("Tick","timescalestuff",function()
-- if math.Round(RealTime() % 5) != 0 then return end
local wantedfps = GetConVar('fps_max'):GetInt() or 30
local fps = (1 / RealFrameTime())
local IdealTimescale = (math.Clamp((fps / wantedfps),0,1))
if IdealTimescale < wantedfps then
net.Start("ClientIdealTimescale",true)
net.WriteDouble(IdealTimescale)
net.SendToServer()
end
-- print(IdealTimescale)

end)
end
EthicalObligation 5 月 3 日 上午 2:40 
You also could adjust "phys_timescale" convar instead of host_timescale maybe? :)
EthicalObligation 5 月 3 日 上午 2:38 
might be a good idea to read each clients fps_max convar to find the best speed and then for multiplayer to do something like this:

for key, ply in pairs(player.GetAll()) do
if !ply.ClientIdealTimescale then return end
ClientsSummedIdealTimescale = ClientsSummedIdealTimescale + ply.ClientIdealTimescale
players = players + 1
end
local wantedts = math.min(ClientsSummedIdealTimescale / players,1)

if wantedts < thetimescale then
game.SetTimeScale(thetimescale - 0.02)
end
if wantedts > thetimescale then
game.SetTimeScale(thetimescale + 0.001)
end
Osad140 4 月 30 日 下午 2:19 
would it be possible to add an option to dynamically incerase the players noclip speed when the game slows down?
Osad140 4 月 30 日 下午 2:17 
the npc wars look cool as hell in slowmotion
イナゴ 4 月 26 日 上午 9:15 
RECONSIDER YOUR LIFE CHOICES.
Zigota 4 月 19 日 下午 1:35 
this mf made me panic. :steamthumbsdown:
Pinhead Larry 4 月 18 日 下午 3:30 
Joey can eat my ass
Sëëth 4 月 17 日 下午 10:43 
@Cogs, Alright, that should be do it for I noticed settings being saved after every sessions hosted. I appreciate that for you fixed that.
Cogs  [作者] 4 月 17 日 下午 9:50 
@Seeth @Objir I think the saving across sessions should be working.
Cogs  [作者] 4 月 17 日 上午 11:24 
I am somewhat busy ATM, but I see the settings reset issue and I will work on that! Thank you for your feedback.
Sëëth 4 月 17 日 上午 11:17 
You need fix settings reset after every sessions hosted by new map, It'll make annoying so I can make any changes to this over again.
BillyNabil 4 月 17 日 上午 5:11 
how do i not make the sounds low pitch?
Mønster 4 月 17 日 上午 1:57 
WARNING! Carry on reading! Or you will die, even if you only looked at the word warning! Once there was a little boy called Joey, he was ten-years-old and he lived in a mental hospital because he posted a ♥♥♥♥♥♥ copypasta onto a People Playground mod's comment section . He got so bad he went to kill all the staff in the hospital so the Feds decided that best idea was to get rid of him so they set up a special room to kill him, as inhumane as possible. And he sat there in agony for hours until he died. Now every week on the day of his death he returns to the person that reads this letter, on a monday night at 12:00 a.m. He creeps into your room and kills you slowly, by pegging you and watching you bleed to death. Now send this to ten other profiles on this one site, and he will haunt someone else who doesn't. This isn't fake. apparently if u copy and paste this to ten comments in the next ten minutes nothing will happen: sorry man i am not taking the risk
Dark_Renaissance 4 月 16 日 下午 7:55 
wow this legit works so freaking good.
Sandvich Cooker 4 月 14 日 下午 11:38 
it helps a lot
𝑳𝒇𝒖𝒖 4 月 14 日 下午 6:23 
Now my NPCs epic war can finally be smooth.
cczack 4 月 14 日 上午 9:30 
This mod is so crazy. A legit fps increaser for gmod ive never been able to have such stable npc wars
Dichete 4 月 14 日 上午 6:59 
i used to do this manually when the game lagged with a slow mo addon lol
c68a5d 4 月 14 日 上午 2:18 
DLSS in GMOD, no way
sickass 4 月 13 日 下午 8:15 
stop throttling my ♥♥♥♥♥♥♥ physics
objir 4 月 13 日 下午 12:56 
Settings are reset after starting a new map.