source-sdk-2013 icon indicating copy to clipboard operation
source-sdk-2013 copied to clipboard

hl2.exe freezing up on exit

Open Mine228 opened this issue 7 years ago • 2 comments

So my mod hl2.exe started freezing up when I exit the game, it keeps displaying the last rendered frame of the game and takes up 50% of my cpu (2core cpu), it makes no changed to memory allocation. I've added an additional pixel shader constant to "shader_constant_register_map.h" and "cpp_shader_constant_register_map.h", and I have a feeling that it might be the problem. Or perhaps the problem is somehow related to my shader_.cpp files where I actually link that constant. Any ideas?

Mine228 avatar May 17 '18 12:05 Mine228

Does the problem go away if you remove your new constants?

joeangry avatar May 22 '18 06:05 joeangry

It would seem so. It says in the comments that constant 27 is "free" but it will "blow constant limits" if used. I've read somewhere while googling that someone said the constant limit should be around 256.

Mine228 avatar May 22 '18 12:05 Mine228