Facepunch / garrysmod-issues

Garry's Mod issue tracker
145 stars 56 forks source link

GPU load exploaded since the last update #5133

Closed LennDoMations closed 7 months ago

LennDoMations commented 2 years ago

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 commented 2 years ago

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

robotboy655 commented 2 years ago

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 commented 2 years ago

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

LennDoMations commented 2 years ago

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 commented 2 years ago

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

LennDoMations commented 2 years ago

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

LennDoMations commented 2 years ago

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

LennDoMations commented 2 years ago

image when the enites are removed

robotboy655 commented 2 years ago

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.

LennDoMations commented 2 years ago

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 commented 2 years ago

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.

robotboy655 commented 2 years ago

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