ValveSoftware / source-sdk-2013

The 2013 edition of the Source SDK
https://developer.valvesoftware.com/wiki/SDK2013_GettingStarted
Other
3.7k stars 1.99k forks source link

hl2.exe freezing up on exit #455

Open Mine228 opened 6 years ago

Mine228 commented 6 years ago

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_registermap.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?

joeangry commented 6 years ago

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

Mine228 commented 6 years ago

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.