compile options Created 6 years ago2018-09-07 23:50:04 UTC by platoon platoon

Created 6 years ago2018-09-07 23:50:04 UTC by platoon platoon

Posted 6 years ago2018-09-07 23:50:04 UTC Post #340815
hi,
I'm using jackhammer to compile half life map. It looks like using "Vluzacn's ZHLT v33" compile tools.
Maybe its a silly question but the issue I'm having is, cpu usage of the tools.
I see that http:/www.zhlt.info site is closed for some reason and I can't find info I needed.

When I go for full compile a big map, it uses all cpu resources maximum and when tools do that, my cpu temperature goes to 80C and I cannot allow that.
How can I restrict cpu usage for compile? Like; it should use %50 of it, so I won't worry about it? I don't want to open editor because of this issue.
Maybe there is a compile command which I don't know yet. Maybe -low? not sure.. any idea?
Posted 6 years ago2018-09-08 01:15:27 UTC Post #340816
-low / -high only modifies the priority of the process. This probably won't help you much as the scheduler will still give the compile tools all the processor time they ask for, if there aren't any other CPU intensive applications running at the same time. You could try limiting the number of threads by using the -threads # parameter. I.e. -threads 1 to limit it to one thread only. Use a value lower than a number of logical cores of your CPU.

There are many other ways to limit the CPU usage - either globally or on a per-process basis. On Windows (I assume that's what you are running) you can change the "maximum CPU frequency" or "maximum CPU state" in Control Panel -> Power Options (this is a global setting).

No matter what method you use, the compilation process will of course take longer than it did before.

80 °C certainly isn't an ideal temperature to have the CPU running at, and depending on the model of your CPU it may or may not be within the allowed range. Either way you should fix or replace your cooling solution if possible (unless this is caused by an abnormally high ambient temperatures or something).
You must be logged in to post a response.