• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 11:24
CEST 17:24
KST 00:24
  • 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 Energy12
Community News
LiuLi Cup - September 2025 Tournaments2Weekly Cups (August 25-31): Clem's Last Straw?35Weekly Cups (Aug 18-24): herO dethrones MaxPax6Maestros of The Game—$20k event w/ live finals in Paris46Weekly Cups (Aug 11-17): MaxPax triples again!15
StarCraft 2
General
Weekly Cups (August 25-31): Clem's Last Straw? Team Liquid Map Contest #21 - Presented by Monster Energy Heaven's Balance Suggestions (roast me) Geoff 'iNcontroL' Robinson has passed away Speculation of future Wardii series
Tourneys
RSL: Revival, a new crowdfunded tournament series LiuLi Cup - September 2025 Tournaments Sea Duckling Open (Global, Bronze-Diamond) Sparkling Tuna Cup - Weekly Open Tournament Maestros of The Game—$20k event w/ live finals in Paris
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
BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ BSL Polish World Championship 2025 20-21 September ASL20 General Discussion Simple editing of Brood War save files? (.mlx)
Tourneys
Small VOD Thread 2.0 Is there English video for group selection for ASL [Megathread] Daily Proleagues [ASL20] Ro24 Group F
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
General RTS Discussion Thread Path of Exile Nintendo Switch Thread Stormgate/Frost Giant Megathread Warcraft III: The Frozen Throne
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 Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine 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: 848 users

Reducing SC2 CPU Usage

Blogs > R1CH
Post a Reply
Normal
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.
Warble
Profile Joined May 2011
137 Posts
June 29 2011 01:45 GMT
#21
On June 29 2011 07:11 aike wrote:
It's just a shame this is a blog so most people wont see it :'(


I thought it was standard for everyone to read everything ever written by R1CH.

Even his blogs are pure gold.
Clbull
Profile Blog Joined February 2011
United Kingdom1439 Posts
June 29 2011 02:32 GMT
#22
Correct me if I'm wrong but isn't this basically what VSync does?
aike
Profile Blog Joined July 2010
United States1629 Posts
June 29 2011 02:53 GMT
#23
On June 29 2011 11:32 Clbull wrote:
Correct me if I'm wrong but isn't this basically what VSync does?

Nope, VSync tries to match your FPS to your refresh rate, or a multiple of it. So something like 60/120/180 FPS would be pretty standard. If you use this method you can actually specify the FPS you want as max, and you will never go over it. 60 is just a pretty standard number to set.
Wahaha
Normal
Please log in or register to reply.
Live Events Refresh
Next event in 1h 36m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 433
ProTech81
StarCraft: Brood War
Britney 57138
GuemChi 10504
EffOrt 1043
Jaedong 708
Larva 666
hero 595
Stork 569
Snow 419
firebathero 308
Mini 261
[ Show more ]
actioN 244
ggaemo 229
Hyuk 228
sSak 172
Light 156
Soma 124
Mong 99
Backho 80
Hyun 68
Rush 68
Mind 62
Sharp 53
Sea.KH 52
JYJ46
PianO 42
Terrorterran 32
soO 25
Aegong 23
zelot 22
Shine 22
scan(afreeca) 16
JulyZerg 14
ajuk12(nOOB) 12
Sacsri 10
sorry 9
HiyA 9
Stormgate
BeoMulf5
Dota 2
The International32963
Gorgc14525
Dendi742
Fuzer 279
DeMusliM242
XcaliburYe133
Counter-Strike
Fnx 1211
oskar180
markeloff125
Super Smash Bros
amsayoshi32
Other Games
singsing1937
Lowko405
Mlord267
crisheroes137
ToD136
ArmadaUGS121
KnowMe96
Trikslyr42
Organizations
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 1304
League of Legends
• Nemesis2615
• Jankos1161
• TFBlade512
Counter-Strike
• Shiphtur29
Upcoming Events
Maestros of the Game
1h 36m
Classic vs TriGGeR
Reynor vs SHIN
OSC
11h 36m
MaNa vs SHIN
SKillous vs ShoWTimE
Bunny vs TBD
Cham vs TBD
RSL Revival
18h 36m
Reynor vs Astrea
Classic vs sOs
Maestros of the Game
1d 1h
Serral vs Ryung
ByuN vs Zoun
BSL Team Wars
1d 3h
Team Bonyth vs Team Dewalt
CranKy Ducklings
1d 18h
RSL Revival
1d 18h
GuMiho vs Cham
ByuN vs TriGGeR
Cosmonarchy
1d 22h
TriGGeR vs YoungYakov
YoungYakov vs HonMonO
HonMonO vs TriGGeR
Maestros of the Game
2 days
Solar vs Bunny
Clem vs Rogue
[BSL 2025] Weekly
2 days
[ Show More ]
RSL Revival
2 days
Cure vs Bunny
Creator vs Zoun
Maestros of the Game
3 days
Maru vs Lambo
herO vs ShoWTimE
BSL Team Wars
3 days
Team Hawk vs Team Sziky
Sparkling Tuna Cup
3 days
Monday Night Weeklies
4 days
The PondCast
6 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)
RSL Revival: Season 2
Maestros of the Game
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
EC S1
BLAST Rivals Fall 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.