• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 02:45
CET 07:45
KST 15:45
  • 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
[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting10[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9
Community News
2025 RSL Offline Finals Dates + Ticket Sales!9BSL21 Open Qualifiers Week & CONFIRM PARTICIPATION1Crank Gathers Season 2: SC II Pro Teams7Merivale 8 Open - LAN - Stellar Fest3Chinese SC2 server to reopen; live all-star event in Hangzhou22
StarCraft 2
General
RotterdaM "Serral is the GOAT, and it's not close" The New Patch Killed Mech! Could we add "Avoid Matchup" Feature for rankgame Smart servos says it affects liberators as well Chinese SC2 server to reopen; live all-star event in Hangzhou
Tourneys
2025 RSL Offline Finals Dates + Ticket Sales! Crank Gathers Season 2: SC II Pro Teams Merivale 8 Open - LAN - Stellar Fest $5,000+ WardiTV 2025 Championship $3,500 WardiTV Korean Royale S4
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment
Brood War
General
[ASL20] Finals Preview: Arrival BW General Discussion BSL Season 21 BSL Team A vs Koreans - Sat-Sun 16:00 CET ASL20 Pre-season Tier List ranking!
Tourneys
[ASL20] Grand Finals BSL21 Open Qualifiers Week & CONFIRM PARTICIPATION ASL final tickets help [ASL20] Semifinal A
Strategy
PvZ map balance Soma's 9 hatch build from ASL Game 2 Current Meta Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile General RTS Discussion Thread Nintendo Switch Thread Dawn of War IV
Dota 2
Official 'what is Dota anymore' discussion LiquidDota to reintegrate into TL.net
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Russo-Ukrainian War Thread YouTube Thread The Chess Thread
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Movie Discussion! Anime Discussion Thread [Manga] One Piece Korean Music Discussion Series you have seen recently...
Sports
Formula 1 Discussion 2024 - 2026 Football Thread MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023 NBA General Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
The Benefits Of Limited Comm…
TrAiDoS
Sabrina was soooo lame on S…
Peanutsc
Our Last Hope in th…
KrillinFromwales
Certified Crazy
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1518 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
BSL 21
01:00
Open Quali #1
LiquipediaDiscussion
The PiG Daily
22:10
Best Games of SC
Rogue vs herO
MaxPax vs Clem
MaxPax vs Lambo
Clem vs herO
Reynor vs Classic
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
Bale 58
ZZZero.O 51
ToSsGirL 29
Dota 2
monkeys_forever903
XaKoH 773
NeuroSwarm96
League of Legends
JimRising 737
Super Smash Bros
C9.Mang0598
Other Games
summit1g7986
Tasteless528
WinterStarcraft444
Hui .137
Mew2King58
NotJumperer4
Organizations
Other Games
gamesdonequick726
BasetradeTV66
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH110
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Rush1235
• Lourlo839
• Jankos716
• Stunt683
Upcoming Events
Replay Cast
3h 16m
Streamerzone vs Shopify Rebellion
Streamerzone vs Team Vitality
Shopify Rebellion vs Team Vitality
WardiTV Invitational
5h 16m
CrankTV Team League
6h 16m
BASILISK vs Shopify Rebellion
Team Liquid vs Team Falcon
BSL 21
18h 16m
Replay Cast
1d 3h
BASILISK vs TBD
Team Liquid vs Team Falcon
OSC
1d 5h
CrankTV Team League
1d 6h
Replay Cast
1d 16h
The PondCast
2 days
CrankTV Team League
2 days
[ Show More ]
Replay Cast
3 days
WardiTV Invitational
3 days
CrankTV Team League
3 days
Replay Cast
4 days
BSL Team A[vengers]
4 days
Dewalt vs Shine
UltrA vs ZeLoT
BSL 21
4 days
Sparkling Tuna Cup
5 days
BSL Team A[vengers]
5 days
Cross vs Motive
Sziky vs HiyA
BSL 21
5 days
Wardi Open
6 days
Monday Night Weeklies
6 days
Liquipedia Results

Completed

ASL Season 20
WardiTV TLMC #15
Eternal Conflict S1

Ongoing

BSL 21 Points
CSL 2025 AUTUMN (S18)
BSL 21 Team A
C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
CranK Gathers Season 2: SC II Pro Teams
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025

Upcoming

SC4ALL: Brood War
YSL S2
BSL Season 21
SLON Tour Season 2
BSL 21 Non-Korean Championship
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
META Madness #9
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 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.