garrysmod-issues icon indicating copy to clipboard operation
garrysmod-issues copied to clipboard

GPU load exploaded since the last update

Open LennDoMations opened this issue 3 years ago • 12 comments

Details

Garry´s Mod increased gpu load a lot since the last update for some models. image

Steps to reproduce

Install metrostroi addon to the game. place a 10 signals in render distance.

LennDoMations avatar Jan 03 '22 18:01 LennDoMations

these models dont have many vertexes or hq textures but even 2 of these props in view can increase gpu load by 5-10 percent AMD Radeon RX 5700 XT 8GB VRAM 1750MHZ

LennDoMations avatar Jan 03 '22 18:01 LennDoMations

Nothing about the rendering has changed to my knowledge, but okay, what is this "metrostroi addon"? What is the model path I need to spawn?

robotboy655 avatar Jan 03 '22 19:01 robotboy655

Possibly related/duplicate? https://github.com/Facepunch/garrysmod-issues/issues/5129

robotboy655 avatar Jan 03 '22 19:01 robotboy655

Nothing about the rendering has changed to my knowledge, but okay, what is this "metrostroi addon"? What is the model path I need to spawn?

use the signalling tool to spawn the entites

LennDoMations avatar Jan 03 '22 19:01 LennDoMations

https://www.mediafire.com/folder/r2njung69jlaa/signals there are the lua files if you wanna check them

LennDoMations avatar Jan 03 '22 19:01 LennDoMations

https://steamcommunity.com/sharedfiles/filedetails/?id=261801217&searchtext=metrostroi

LennDoMations avatar Jan 03 '22 19:01 LennDoMations

image when one area with those entites is rendered(arround 20 of them (low number of vertexes per model))

LennDoMations avatar Jan 03 '22 20:01 LennDoMations

image when the enites are removed

LennDoMations avatar Jan 03 '22 20:01 LennDoMations

I am fairly certain its not that model, if there's a GPU load increase. image

Like there's next to no difference for me on a 1060 between hundreds of those and 0: image

I don't have an AMD GPU to test.

robotboy655 avatar Jan 05 '22 16:01 robotboy655

It´s not the models. It´s the entities. check the signalling tool when you have metrostroi installed and spawn a few on the map gm_metrostroi_b50 with the following config :
image

LennDoMations avatar Jan 08 '22 19:01 LennDoMations

I am fairly certain its not that model, if there's a GPU load increase. image

Like there's next to no difference for me on a 1060 between hundreds of those and 0: image

I don't have an AMD GPU to test.

It may be because of a change in how one of the functions in the entites script runs with garry´s mod or it uses outdated methods that are very inefficent since the last update.

LennDoMations avatar Jan 08 '22 19:01 LennDoMations

I can't get those addons to work, I installed everything and it still errors every time: image

robotboy655 avatar Jan 10 '22 14:01 robotboy655