Facepunch / garrysmod-issues

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

Rendering randomly freezes (game doesn't crash or stop) #2091

Open UltimateByte opened 9 years ago

UltimateByte commented 9 years ago

Hi there,

Since a moment (can't remember when but a few months), i'm getting an issue that i guess only people running the game windowed get : GMod's window freezes sometimes, after a few hours of game... I'm still connected to the server, i can talk, move, but the picture i see is frozen. During this time, it seems that my whole desktop is slow, as taskmanager (required to close the game) is slow to launch and its display is like "step by step" for 2 seconds (in any other case it displays instantly, i've got a quadcore and an SSD...). I forgot checking gpu usage when it happened last time (i was more upset because of what i just lost ingame) but CPU usage was far from being at maximum, that is for sure. So i'm thinking about something happening with video rendering as it slows down the whole desktop display.

I personally disabled Aero but it happens to a friend with aero too. We both run the game windowed and have nVidia GPUs (GTX 670 for me, 650 for him if i remember well, with latest drivers -at least for me- and nothing exotic into gmod / nvidia settings). It may be some addons or the map onto the server causing that as it happens on the same DarkRP server every time, but it's the server i'm mostly on these days since i'm working on it....And it happens after a really long while, several hours of gmod launched with several connect/disconnect to several servers.

I didn't isolate the issue yet as it's still quite rare, but i think (not sure at all) it only happened the times i joined several servers.

Any idea what's causing that ? The map is rp_rockford, and as it needs to be recompiled it's a suspect for me, it could crash the engine at some point.

thegrb93 commented 9 years ago

http://facepunch.com/showthread.php?t=1450721&p=47896708&viewfull=1#post47896708 For video

UltimateByte commented 9 years ago

Yeah, it seems like the same issue, thanks. If i understand what the guy says, his screen recorder is able to see the game correctly ? Interesting... Good luck on this one.

DBotThePony commented 9 years ago

Happened for me on Linux Mint/Ubuntu 12 if players > 6

DaloLorn commented 8 years ago

It would seem this is still quite active. It's not restricted to windowed mode, as I'm experiencing it in fullscreen.

Interestingly, while I did suffer from it at one time, I must have found a workaround - but now that I've been forced to validate my files in order to (hopefully) fix some broken models, it's managed to undo itself quite masterfully. (The model issue in question was that all HL2 playermodels (and their derivatives, like the 'Sci-Fi Citizens' addon or whatever it was called) had some bad vertices that were causing the model to flood the screen with flickering, broken faces.)

DaloLorn commented 8 years ago

Hmm. Dropping my graphics settings to minimum and systematically cranking them back up revealed that raising texture quality caused the issue. (There might be other possible causes as well, but textures are the only ones I've discovered so far.)

Edit: So long as I keep it at medium (which, amusingly, is one level below what the game's suggesting), everything works in the servers I frequent - namely, the TSCM Spacebuild servers hosted by https://teamscm.co.uk.

robotboy655 commented 4 years ago

I just managed to reproduce this by creating hundreds of unique fonts with surface.CreateFont

Code specifically if you are interested: https://github.com/Cherry/3D2D-Textscreens/blob/master/lua/textscreens_config.lua

Just replacing the 1,100 loop to 1,200 causes this exact issue, that's essentially ~2300 unique fonts.

GitSparTV commented 4 years ago

Speaking of my closed issue #4415. Yes it is a VRAM crash, I managed to fix it by creating an addon that stops rendering gmod when the game is not in focus and make the size of other windows smaller. Before that I had maximized window of Discord, Chrome, Sublime, etc. When I resize at least in half I didn't have VRAM crashes/Gmod render freezes so often