wiremod / wire

Garry's Mod add-on that allows users to wire up components in order to make more elaborate automatic and user-controlled contraptions.
http://www.wiremod.com
Apache License 2.0
549 stars 333 forks source link

Fix spawnmenu icon location / fileformat #2980

Closed wrefgtzweve closed 7 months ago

wrefgtzweve commented 8 months ago

Gmods default spawn icons are in materials/entities/classname.png this pr fixes the paths to prevent lag / console warnings due to gmod having to check multiple locations

image

To test it, simply run developer 1 Be on main branch, open the spawnmenu and go to the wiremod category in weapons and entities.

thegrb93 commented 8 months ago

No remote controller?

wrefgtzweve commented 7 months ago

Remote controller doesn't have an image at all, so that'd always be missing, I was thinking of adding one but i find a good image for it.

thegrb93 commented 7 months ago

Png images take a lot longer to load than vtf. I'm not sure this is actually solving anything or making anything faster.

wrefgtzweve commented 7 months ago

They don't If you want examples, try m9k and open the weapons tab you'll receive a significiant freeze, doing the same once all vtfs are converted to pngs loads them with no lag spike whatsoever. If you want i can help you replicate it.

brandonsturgeon commented 7 months ago

Just my 2 cents:

Removing the console warning is reason enough to change it up. Given that it's only two images, I think the performance difference is negligible.