Garry's Mod

Garry's Mod

172 个评价
Aggressive Culling Tool
   
奖励
收藏
已收藏
取消收藏
素材类型: 插件
插件类型: 工具
插件标签: 建筑, 角色扮演
文件大小
发表于
2.347 KB
5 月 1 日 下午 3:09
1 项改动说明 ( 查看 )

订阅以下载
Aggressive Culling Tool

描述
What is this?
This is a toolgun which applies "aggressive culling" from the Draconic Base to any entity you fire it at (other than the world or players). This is aimed at helping to improve performance on poorly optimized maps or even properly optimized maps that may have a lot rendering at once.

How does it work?
A very, very simple check of if the center of the object is obstructed by the world or not from the player's view. It is called "aggressive" because it's both cheap and also likely to have some instances of small objects blocking a view from rendering. So with that in mind, be mindful of what you apply this to.

For a more technical breakdown of what this does:
  • Aggressively culling objects within a close proximity of you will use standard culling, as to prevent issues.
  • These objects beyond that "close proximity" use a simple QuickTrace to determine if the world is blocking your view to them or not. (This trace will not run if the object is off-screen or outside of standard visibility)
  • Beyond a very far distance, the object stops rendering entirely.

"But won't that mean I can't see anything from super far away?"
Yes, but with an asterisk. Draconic's aggressive culling system gets the difference from your intended FOV and will disable aggressive culling when it detects you as "zooming in". So stuff like weapon scopes, binoculars, or even the stock suitzoom bind will temporarily disable the render distance limit while doing so.

"I own a server with an extensively made base/city, can I make this behaviour persistent?"
Yes and no. This system does not (can not) support standard persistence reliably, but my "Map Entity Modifier" has support for many addons including this one. A note of warning, while running a QuickTrace can be much faster than rendering a ton of high-poly and high-material-count models, it can add up to just as bad of a performance problem if you attempt to use it for everything. Try to only use it for stuff like weapons in an armory, props inside bunks, things that are obscured from view by the world in isolated spaces and only that are likely to be causing framerate drops to begin with.

Support me on Ko-fi[ko-fi.com]
If you need immediate help with any of my addons, or just want to know what I'm working on or etc, then consider joining my Discord[discord.gg] server.
20 条留言
WarDragon 10 月 31 日 下午 3:39 
and the map please
WarDragon 10 月 31 日 下午 3:25 
whats the console command on screenshots
PixelTheCollie ΘΔ 8 月 5 日 上午 6:37 
Alright cool thank you 😊
Vuthakral  [作者] 8 月 5 日 上午 4:43 
They both use the same subsystem of Draconic, so yes.
PixelTheCollie ΘΔ 8 月 4 日 下午 12:08 
will this mod work with
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3489442808&searchtext=culling
ikr dumb question, Anyways im trying to get max performance
Vuthakral  [作者] 5 月 7 日 下午 5:42 
Doing so would run worse than just letting the game run normally. This is a situation where this tool can help you preserve your frames in specific scenarios and is aimed at servers that run on large, expansive maps which would benefit from such a type of culling. This is not the kind of addon which will passively make your game run better. It needs to be applied to only certain things or else you make your game run worse through the sheer amount of QuickTraces being run at once.
PBF Guy 5 月 7 日 下午 3:33 
Any way to make everything automatically cull?
Alekzomer 5 月 6 日 下午 10:39 
"this addon is about performance, not being pretty" goes hard
Vuthakral  [作者] 5 月 6 日 上午 8:21 
It will not work with anything like prop saving tools unless they explicitly account for it. There is absolutely nothing I can do about that. You will need to ask authors of those addons to add support for it. They can view the code of the "Map Entity Modifier" tool to see how to do this.
lophi 5 月 6 日 上午 6:48 
does this work with permaprop