Build Optimization

Hey,

I’m discovering Unity and I just had a problem!
I created a scene composed of a terrain, a WindForce and vegetation (Tree and grass).


When I start the game in the editor, my gpu goes up to 60-70°C. (Instead of 50-60 usually in non-play mode).
3850084--325627--upload_2018-11-2_18-37-41.png

But when I launch the build, my GPU gets very hot like 85-95°C even with “Very Low Graphics Quality”.
3850084--325630--upload_2018-11-2_18-45-2.png

I have already tried to reduce the display distance of the grass, the quality of the mesh of trees etc…
Is there a way to optimize this build?

Thanks in advance !

Your GPU overheating isn’t a problem with Unity, it is a hardware problem with your computer.

When running your Unity game, by default it will run at whatever frame rate your computer hardware will allow. If that causes your GPU to overheat then you likely have a problem with the fan(s) on your video card. Making your scene more simple will just result in a higher frame rate, so may not actually result in less work for your GPU. You could try working around your issue for now by forcing a lower frame rate, see the below link.

1 Like

Thanks Joe-Censored for your answer,

Damn it, I made a mistake, it’s my CPU that’s heating up (my GPU is at a constant temperature arround 40°C).
I’m on a new laptop, two months old so I think there is no problem with my fan ^^.

I am going to study your link which seems interesting

But why does my PC heat up more on build than in the editor ?

Maybe your settings specify that the build game has no fps restriction, while the Editor waits for VSync or has an fps limit.

2 Likes

So it’s a fps-VSync problem …
I will set up that settings on my build and see what going on, thanks :wink:

Who is the manufacturer and what’s the model number? While it’s definitely a hot temperature it’s worth noting that modern hardware will throttle in the event that the temperatures become too high. If it’s running for extended periods of time at that temp it’s entirely possible it’s a normal temp for that laptop under heavy load.

1 Like

Everything I mentioned would apply to an overheating CPU the same as an overheating GPU, since each frame creates work for both.

Absolutely correct. Depending on the CPU, this may be a completely normal temperature under high load. With a modern laptop you should expect the fan to kick up to maximum under high temp, and throttling of the CPU to a slower speed as the thermal controls determine necessary. (well, unless you’ve disabled that, which is often possible through a BIOS setting or a setting in the control panel)

86 Celsius in a 3D application generally in a laptop is on the cold side. Come back when you reached the 100. :wink:

I’ve had CPUs that would shut off if they ever went above 85c.

Pentium 4? :smile: In exchange the AMDs in those times were just baked themselves into the motherboard…

Q6600. Case ventilation was so bad I had to take the side off and open a window if I wanted to get things done.

3 Likes

Yeah it all depends on the CPU. I used to work in QA on the platform team of a network appliance company. One of the fun tests I would have to perform was testing our software overheat detection, and hardware’s auto shutoff functionality. A lot of fun with maxing the CPU with a repetitive task while disabling fans and blasting the CPU heat sink with a heat gun, while monitoring for our various software warnings, CPU temperature, how many degrees away from max temperature the CPU said it was (PECI temp value), and what would happen when I pushed it above that.

I found it very interesting that not only did different CPU models from the same manufacturer often have very different temperature tolerances, but even different revisions of the same CPU model could have a 10+ degree C difference in what temp it could handle.

86 become dangerous for silicon based hardware. Should be avoided.

Hence this is typical the case.
Probably similar for GPU, if run too long, close to range.

@elex17 , are you keeping your laptop by any chance on flat surface, bed, or laps?
Chances are, you are blocking vents.

Also, do you run build, while Unity is open?

Intel missed the memo. The i9-9900K sits in the mid-80s at stock speeds. :stuck_out_tongue:

https://www.techspot.com/article/1732-solder-vs-paste-core-i9/

1 Like

Interesting article with conducted comparison exercises.
I do wonder however, how i9-9900K would be affected, by long exposure to hitting (85+ deg) / cooling (20deg).
Customers with deep pocket, would perhaps care less. But I like personally long living hardware.

I have a 2month old Acer Predator Helios 300 : i5-8300H

According to Dell/Alienware running in the 90s is perfectly fine.

1 Like

I mean, they’re not wrong.

https://www.youtube.com/watch?v=BJ0xBCwkg3E

3 Likes

Please provide link to such statement.
While some cpu / gpus can operate safely at 90, this is not true for every device.

For example you probably will not find Intel official CPU temperature ranges.
You are likely need dig in toms hardware benchmarking pages, or similar.

Found just some older example comparison. But don’t take me for a word. Don’t know how accurate these are.
http://www.buildcomputers.net/cpu-temperature.html

Either way, continuous and over long time rapid cooling and hitting up, leads to micro cracking in metallic structures of chips. May be leading eventually to breaking connections and causing data errors. While chips are quite robust in general, and can deal with high range of errors, there is definite some limit. Also, chips performance is changing with temperature change.

While you may be completely ok today with 90 deg C playing, not necessary may be true in 6, or 12 months time, if continue of abusing device.