Unity Tutorial Simple tutorial to prevent your Unity game from overheating your players' devices

LS47

Member
Oct 5, 2021
194
518
217
Hi everyone, hopefully this thread won't be buried at the bottom of the forum in the next week. I apologize in advance if I make any English mistakes, I'm not a native speaker.

You don't have permission to view the spoiler content. Log in or register now.

You don't have permission to view the spoiler content. Log in or register now.

You don't have permission to view the spoiler content. Log in or register now.

With all of this, I hope I see less Unity games making my fans spin fast enough to compete with the new Starlink rocket. I know this might be quite a lot to take in for beginners but this scripts works perfectly well as a standalone; I've provided examples on how to use it, so if there is a point you don't get yet, just reread the tutorial one step at a time and you'll be good to go.
 
Last edited:

El Tomaso

Newbie
Game Developer
Jun 7, 2018
20
123
101
Thanks a lot for the script. I was wondering why my simple game was using this much cpu, and I couldn't find anything in the quality settings.

I went ahead and used Screen.currentResolution.refreshRate instead of 60. This way it depends on the users monitor. It works like a charm
 
Feb 19, 2020
73
70
67
boop 8e6e98d67521100e.gif :cool:
OP script is still relevant and it works (y)
You don't have permission to view the spoiler content. Log in or register now.

i made a beginner friendly version of this for Unity 6 LTS.
  • A single copy paste script
  • Editor UI that saves automagically

1763049013540.png

You don't have permission to view the spoiler content. Log in or register now.

You don't have permission to view the spoiler content. Log in or register now.


Cheers ^ ^
 
  • Like
Reactions: LS47

LS47

Member
Oct 5, 2021
194
518
217
boop View attachment 5433017 :cool:
OP script is still relevant and it works (y)
You don't have permission to view the spoiler content. Log in or register now.

i made a beginner friendly version of this for Unity 6 LTS.
  • A single copy paste script
  • Editor UI that saves automagically

View attachment 5433854

You don't have permission to view the spoiler content. Log in or register now.

You don't have permission to view the spoiler content. Log in or register now.


Cheers ^ ^
Pretty cool, thanks for the addon! I thought the script already had the using UnityEngine, must have been deleted when I saved the file. Anyways, my version doesn't go this far, I like to make short scripts that go to the point, I didn't delve much deeper for a first tutorial. Maybe I should make more of them....
 
  • Yay, update!
Reactions: Sentinel Sparrow
Feb 19, 2020
73
70
67
hell yeah, please do make more, your script was to the point and perfect(y) 11/10
You don't have permission to view the spoiler content. Log in or register now.
i wanted to make sure ppl knew this was still an excellent performance script (since it was last edited in 2023).
i also thought newbs would like a user interface to change the settings without code and a visualization of the performance.

Now there's really no reason for unity games to spin fans ;D
Thanks btw ^ ^
 
  • Like
Reactions: LS47