• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 23:22
CEST 05:22
KST 12:22
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Maestros of the Game: Week 1/Play-in Preview9[ASL20] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy9
Community News
Weekly Cups (August 25-31): Clem's Last Straw?25Weekly Cups (Aug 18-24): herO dethrones MaxPax6Maestros of The Game—$20k event w/ live finals in Paris46Weekly Cups (Aug 11-17): MaxPax triples again!15Weekly Cups (Aug 4-10): MaxPax wins a triple6
StarCraft 2
General
Weekly Cups (August 25-31): Clem's Last Straw? Geoff 'iNcontroL' Robinson has passed away #1: Maru - Greatest Players of All Time Maestros of the Game: Week 1/Play-in Preview Weekly Cups (Aug 11-17): MaxPax triples again!
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament Maestros of The Game—$20k event w/ live finals in Paris Monday Nights Weeklies LiuLi Cup - September 2025 Tournaments 🏆 GTL Season 2 – StarCraft II Team League
Strategy
Custom Maps
External Content
Mutation # 489 Bannable Offense Mutation # 488 What Goes Around Mutation # 487 Think Fast Mutation # 486 Watch the Skies
Brood War
General
ASL20 General Discussion BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ No Rain in ASL20? Starcraft at lower levels TvP
Tourneys
[Megathread] Daily Proleagues Is there English video for group selection for ASL [ASL20] Ro24 Group F [IPSL] CSLAN Review and CSLPRO Reimagined!
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread Mechabellum Teeworlds - online game General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Canadian Politics Mega-thread YouTube Thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s) Gtx660 graphics card replacement
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
How Culture and Conflict Imp…
TrAiDoS
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
INDEPENDIENTE LA CTM
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1072 users

Reducing SC2 CPU Usage

Blogs > R1CH
Post a Reply
1 2 Next All
R1CH
Profile Blog Joined May 2007
Netherlands10341 Posts
Last Edited: 2010-03-27 00:07:36
March 26 2010 23:51 GMT
#1
EDIT: I should have tested this more before .

If you want to reduce CPU usage, you can edit your Variables.txt in My Documents / Starcraft II and add the line "frameratecap=60". This also reduces CPU usage as well as GPU usage, contrary to how I thought it worked.

+ Show Spoiler [Waste of time] +
Since SC2 runs at full frame rate, I figured it might be worth trying something similar to my CPU Savior plugin for Brood War. The results weren't anywhere near as impressive, since SC2 needs a lot more CPU time for its own use, but it still provides a possible benefit if you are streaming or recording games.

[image loading]

I forced SC2 onto CPU 1 (right hand side graph). Half way through the graph I loaded SC2Sleepy - you can see it reduces the CPU usage, but at the same time reduces the frame rate (the spike at the end is when I took a screenshot, so ignore that ). As SC2 units have infinitely more possible animations and frames than BW, this may be a lot more noticeable than a reduced FPS in BW was.

Also, rather than risk hooking Starcraft II itself (especially in beta where the versions are so volatile), this time around it hooks the Direct3D drawing interface, so it can guarantee a delay after each rendered frame. This works similar to FRAPS and other overlay programs, however hooking Direct3D reliably is not so easy, since the offsets differ between Windows versions. The current version only works for 32 bit Windows XP, which is why I'm posting it here rather than a more public place.

By default it introduces a 10ms delay, capping you to a theoretical max of 100 fps. Since SC2 also needs CPU time, your actual FPS will be lower than this. You can configure the delay by passing a number on the command line, eg 'loader.exe 5' would introduce a 5ms delay.

http://r-1.ch/Sc2Sleepy-0.1.zip

To use: Run SC2 Beta, then run Loader.exe. You will here a Windows beep sound if it loaded successfully. An error dialog will appear if it did not.

If you get a code -2 or -6 error, it means the program doesn't recognize your Windows or Direct3D version. To help me accommodate this, download HookShark and run SC2 with FRAPS open. Use HookShark to pick the SC2.exe files, Scan, then highlight the two lines mentioning d3d9.dll, right click, copy line and reply with them here including your Windows version, service pack, 32/64 bit, etc. Since this has limited use, I will likely only support 32 bit XP/Vista/7.


*****
AdministratorTwitter: @R1CH_TL
boesthius
Profile Blog Joined February 2008
United States11637 Posts
March 26 2010 23:55 GMT
#2
--- Nuked ---
Chuiu
Profile Blog Joined June 2003
3470 Posts
March 26 2010 23:59 GMT
#3
You could also modify variables.txt and add the line "frameratecap=60".
♞
R1CH
Profile Blog Joined May 2007
Netherlands10341 Posts
Last Edited: 2010-03-27 00:02:47
March 27 2010 00:00 GMT
#4
On March 27 2010 08:59 Chuiu wrote:
You could also modify variables.txt and add the line "frameratecap=60".

This doesn't actually reduce CPU usage though since SC2 sits in a spinloop, this reduces frame rate only.

EDIT: Wtf, I just tested this again to be sure and it does seem to affect CPU now. I wonder if that was changed in a patch...
AdministratorTwitter: @R1CH_TL
Chuiu
Profile Blog Joined June 2003
3470 Posts
March 27 2010 00:09 GMT
#5
Well the game uses the CPU to render certain things so it makes sense that limiting the framerate would reduce CPU usage as well.
♞
deathgod6
Profile Blog Joined January 2008
United States5064 Posts
March 27 2010 00:09 GMT
#6
I don't get any of this shit but god damn R1CH you are so awesome.
4.0 GPA = A rank 5.0 GPA = Olympic --------- Bisu, Best, Fantasy. i ♥ oov. They can get in my BoxeR anyday.
R1CH
Profile Blog Joined May 2007
Netherlands10341 Posts
March 27 2010 00:10 GMT
#7
On March 27 2010 09:09 Chuiu wrote:
Well the game uses the CPU to render certain things so it makes sense that limiting the framerate would reduce CPU usage as well.

Most games that introduce an FPS limiter simply avoid rendering every so often, so the game loop still consumes 100% CPU. It's nice to see Blizzard doing it the right way, now they just need to make this a menu option instead of an obscure .txt file.
AdministratorTwitter: @R1CH_TL
3FFA
Profile Blog Joined February 2010
United States3931 Posts
March 27 2010 00:37 GMT
#8
R1CH is ur first name Rich cause I know a guy named rich who also plays SC and is as awesome as you! I'll use this as soon as SCII finally comes out. Bookmarked.


R1CH- He's R1CH with information.
"As long as it comes from a pure place and from a honest place, you know, you can write whatever you want."
CursOr
Profile Blog Joined January 2009
United States6335 Posts
Last Edited: 2010-03-27 00:48:11
March 27 2010 00:44 GMT
#9
Are you fuckin' kidding me? Just like that?
Dude... seriously... WTF thank you. If you ever need a backrub send me a PM.

edit: noob question... I noticed these variables are in alphabetical order... does that matter?
CJ forever (-_-(-_-(-_-(-_-)-_-)-_-)-_-)
YPang
Profile Blog Joined April 2007
United States4024 Posts
March 27 2010 00:47 GMT
#10
will try trhanks.
sMi.Gladstone | BW: B high| SC2: gold T_T
Ares[Effort] *
Profile Blog Joined February 2009
DEMACIA6550 Posts
March 27 2010 01:55 GMT
#11
On March 27 2010 09:47 YPang wrote:
will try trhanks.


Lol yang you even got a key? :D

Thx R1CH!
Moderatorgold coin
YPang
Profile Blog Joined April 2007
United States4024 Posts
March 27 2010 02:11 GMT
#12
On March 27 2010 10:55 Ares[EffOrt] wrote:
Show nested quote +
On March 27 2010 09:47 YPang wrote:
will try trhanks.


Lol yang you even got a key? :D

Thx R1CH!

nope shared xD
sMi.Gladstone | BW: B high| SC2: gold T_T
CharlieMurphy
Profile Blog Joined March 2006
United States22895 Posts
March 27 2010 07:04 GMT
#13
now all we need is Lan Latency/Chaos Launcher, sc2Chart, and a dedicated host for replays like http://repdepot.net/
..and then I would, ya know, check em'. (Aka SpoR)
Marradron
Profile Blog Joined January 2009
Netherlands1586 Posts
March 27 2010 10:42 GMT
#14
BTW what happens if you edit any of the other variables in that textfiles.
somewhere is normalmap=0 if you set it at 1 do you only get normal maps ?
R1CH
Profile Blog Joined May 2007
Netherlands10341 Posts
March 27 2010 14:41 GMT
#15
Normal mapping is a type of graphics effect, don't get your hopes up .
AdministratorTwitter: @R1CH_TL
sob3k
Profile Blog Joined August 2009
United States7572 Posts
March 28 2010 08:14 GMT
#16
On March 27 2010 19:42 Marradron wrote:
BTW what happens if you edit any of the other variables in that textfiles.
somewhere is normalmap=0 if you set it at 1 do you only get normal maps ?


I chuckled quietly to myself.
In Hungry Hungry Hippos there are no such constraints—one can constantly attempt to collect marbles with one’s hippo, limited only by one’s hippo-levering capabilities.
Marradron
Profile Blog Joined January 2009
Netherlands1586 Posts
March 28 2010 11:51 GMT
#17
On March 27 2010 23:41 R1CH wrote:
Normal mapping is a type of graphics effect, don't get your hopes up .


But are these more hidden things you can change or are they just stored data from the option menu. Things like modelsellect and such
Magnificent
Profile Joined March 2010
United States41 Posts
March 28 2010 13:06 GMT
#18
nice this will come in handy
endo8910
aike
Profile Blog Joined July 2010
United States1629 Posts
Last Edited: 2011-06-28 22:12:10
June 28 2011 22:11 GMT
#19
I figured I'd bump this thread because it does have some useful information in it.

Most people SHOULD do this. I have an amazing computer that can run SC2 like a champ, but why let it run at 150+ FPS and overuse the GFX card if I can't tell the difference? If you use this little fix you can cap it at 60FPS which will reduce the heat produced when playing SC2. So it's a lot better on your parts

It's just a shame this is a blog so most people wont see it :'(
Wahaha
Trozz
Profile Blog Joined November 2008
Canada3454 Posts
June 29 2011 01:22 GMT
#20
I missed this before.
If this works, thanks for the bump!
If it doesn't, blarg.
A build is not a guess, an estimation or a hunch, a feeling, or a foolish intuition. A build is a dependable, unwavering, unarguably accurate, portrayer of your ambition.
1 2 Next All
Please log in or register to reply.
Live Events Refresh
PiGosaur Monday
00:00
#47
SteadfastSC151
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
WinterStarcraft344
Nina 179
SteadfastSC 151
RuFF_SC2 134
StarCraft: Brood War
sSak 252
NaDa 61
Noble 12
Purpose 11
Icarus 9
yabsab 8
Dota 2
monkeys_forever1247
League of Legends
Cuddl3bear4
Counter-Strike
Stewie2K337
Super Smash Bros
hungrybox454
Other Games
summit1g6773
tarik_tv6705
shahzam694
C9.Mang0500
ViBE233
Maynarde163
Trikslyr94
Organizations
Other Games
gamesdonequick1069
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• practicex 49
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo430
Other Games
• Scarra1182
Upcoming Events
LiuLi Cup
7h 38m
Replay Cast
20h 38m
The PondCast
1d 6h
RSL Revival
1d 6h
Maru vs SHIN
MaNa vs MaxPax
Maestros of the Game
1d 13h
OSC
1d 23h
MaNa vs SHIN
SKillous vs ShoWTimE
Bunny vs TBD
Cham vs TBD
RSL Revival
2 days
Reynor vs Astrea
Classic vs sOs
Maestros of the Game
2 days
BSL Team Wars
2 days
Team Bonyth vs Team Dewalt
CranKy Ducklings
3 days
[ Show More ]
RSL Revival
3 days
GuMiho vs Cham
ByuN vs TriGGeR
Cosmonarchy
3 days
TriGGeR vs YoungYakov
YoungYakov vs HonMonO
HonMonO vs TriGGeR
Maestros of the Game
3 days
[BSL 2025] Weekly
3 days
RSL Revival
4 days
Cure vs Bunny
Creator vs Zoun
Maestros of the Game
4 days
BSL Team Wars
4 days
Team Hawk vs Team Sziky
Sparkling Tuna Cup
5 days
Liquipedia Results

Completed

CSL Season 18: Qualifier 2
SEL Season 2 Championship
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
CSL 2025 AUTUMN (S18)
Maestros of the Game
Sisters' Call Cup
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

LASL Season 20
2025 Chongqing Offline CUP
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
RSL Revival: Season 2
EC S1
BLAST Rivals Fall 2025
Skyesports Masters 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
MESA Nomadic Masters Fall
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.