• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 07:52
CEST 13:52
KST 20:52
  • 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
Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy4Code S RO8 Preview: herO, Zoun, Bunny, Classic7Code S RO8 Preview: Rogue, GuMiho, Solar, Maru3BGE Stara Zagora 2025: Info & Preview27
Community News
Firefly suspended by EWC, replaced by Lancer2Classic & herO RO8 Interviews: "I think it’s time to teach [Rogue] a lesson."2Rogue & GuMiho RO8 interviews: "Lifting that trophy would be a testament to all I’ve had to overcome over the years and how far I’ve come on this journey.8Code S RO8 Results + RO4 Bracket (2025 Season 2)14BGE Stara Zagora 2025 - Replay Pack2
StarCraft 2
General
Firefly suspended by EWC, replaced by Lancer Jim claims he and Firefly were involved in match-fixing How herO can make history in the Code S S2 finals Rogue & GuMiho RO8 interviews: "Lifting that trophy would be a testament to all I’ve had to overcome over the years and how far I’ve come on this journey. Code S RO8 Results + RO4 Bracket (2025 Season 2)
Tourneys
[GSL 2025] Code S: Season 2 - Semi Finals & Finals WardiTV Mondays Sparkling Tuna Cup - Weekly Open Tournament $3,500 WardiTV European League 2025 Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Simple Questions Simple Answers [G] Darkgrid Layout
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 478 Instant Karma Mutation # 477 Slow and Steady Mutation # 476 Charnel House Mutation # 475 Hard Target
Brood War
General
BW General Discussion ASL20 Preliminary Maps BGH Auto Balance -> http://bghmmr.eu/ Recent recommended BW games FlaSh Witnesses SCV Pull Off the Impossible vs Shu
Tourneys
[Megathread] Daily Proleagues [BSL 2v2] ProLeague Season 3 - Friday 21:00 CET Small VOD Thread 2.0 [BSL20] ProLeague Bracket Stage - Day 4
Strategy
I am doing this better than progamers do. [G] How to get started on ladder as a new Z player
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread Beyond All Reason What do you want from future RTS games?
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Which UAE App Developers Are Leading the Innovatio
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine UK Politics Mega-thread Russo-Ukrainian War Thread Vape Nation Thread
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Korean Music Discussion [Manga] One Piece
Sports
2024 - 2025 Football Thread Formula 1 Discussion NHL Playoffs 2024 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
A Better Routine For Progame…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
I was completely wrong ab…
jameswatts
Need Your Help/Advice
Glider
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 33718 users

Who the hell coded 1.16? - Page 3

Blogs > R1CH
Post a Reply
Prev 1 2 3 4 5 6 7 8 Next All
funkie
Profile Blog Joined November 2005
Venezuela9374 Posts
December 16 2008 15:04 GMT
#41
On December 16 2008 23:01 tec27 wrote:
I'm pretty sure whoever programmed that part of the patch jsut rolled some dice to pick the sleeping time. That's how all the good programmers do it, anyhow

Also, the reason its probably taking so long for 1.16.1 is that they are actually putting it through its QA paces this time, unlike last time Can't release two crappy patches in a row (or can they?)



Heh, well, Blizzard has never ceased to amaze me, so What do you know ;D:
CJ Entusman #6! · Strength is the basis of athletic ability. -Rippetoe /* http://j.mp/TL-App <- TL iPhone App 2.0! */
FreeZEternal
Profile Joined January 2003
Korea (South)3396 Posts
December 16 2008 15:18 GMT
#42
well, obviously this was not tested in QA before pushing it live. At least this is just a game, same thing happened in the place I work, Production went down for half a day...do you know how much money is that? lol
miseiler
Profile Blog Joined October 2008
United States1389 Posts
December 16 2008 17:07 GMT
#43
I can't believe how straightforward this is. And like someone mentioned earlier in the thread, it seems exactly like something I would do as well, having zero experience in real time programming.

I'll bet a 1 ms delay never occurred to him/her, either.

Thought process:
"Huh. CPU overloaded. What happens if I introduce a 5 ms delay here?"
"Nice! It worked! I told my boss it'd take a week, so I think I'll get paid to play the D3 beta for a while."
"Jinro soo manly wearing only a T-Shirt while the Koreans freeze in their jackets" -- Double_O
"He's from Sweden, man. We have to fight polar bears on our way to school." -- Yusername
Disastorm
Profile Joined January 2008
United States922 Posts
Last Edited: 2008-12-16 17:17:29
December 16 2008 17:14 GMT
#44
so wait i dont understand. why did the devs put a random 10 msecond delay loop in the middle of their code? was that their solution to removing the 100% cpu usage? so if i understand correctly, their code is less efficient than CPU Savior which only adds 1 msecond delay?
"Don't worry so much man. There won't be any more zergs left to QQ. Lots of QQ about TvT is incoming though I bet." - Vrok 9/21/10
Scorch
Profile Blog Joined March 2008
Austria3371 Posts
Last Edited: 2008-12-16 17:23:12
December 16 2008 17:22 GMT
#45
On December 17 2008 02:14 Disastorm wrote:
so wait i dont understand. why did the devs put a random 10 msecond delay loop in the middle of their code? was that their solution to removing the 100% cpu usage? so if i understand correctly, their code is less efficient than CPU Savior which only adds 1 msecond delay?

I don't know any specifics, but my guess is that stuff is ten times as responsive if the sleep lasts only 1ms instead of 10ms. No sleeping at all results in busy waiting and thus 100% load.
MasterOfChaos
Profile Blog Joined April 2007
Germany2896 Posts
December 16 2008 17:52 GMT
#46
Things are not that simple. The delay passed to sleep is a minimum delay. The function only returns at the next tick after the minimum delay has elapsed. On my comp the tick occurs every 16ms, on older comps/OS that interval can be up to 55ms.
The tick interval can be changed by a program at global level, affecting the whole system. Afaik CPU-Savior does that.
The mistakes blizzard made are not that noobish as some of you thought. The early CPU-Savior versions had similar problems. And the ingame lag does not occur on every comp (or atleast some people like me don't notice it).
The main problem is that it passed QA(or was not send to QA at all).
The /r bug is a real wtf on the other hand.
LiquipediaOne eye to kill. Two eyes to live.
Ki_Do
Profile Blog Joined July 2008
Korea (South)981 Posts
Last Edited: 2008-12-16 18:32:20
December 16 2008 18:31 GMT
#47
noobish or not
rich/you and not blizzard programmers fixed many of problems like this.
maybe you and him could be hired too,bet u would be successful breaking sc2 engine
I've got a point, and i'm ready to kill or die for it.
Equinox_kr
Profile Blog Joined December 2006
United States7395 Posts
December 16 2008 19:11 GMT
#48
R1CH BRINGING DOWN THE PAIN
^-^
Night[Mare
Profile Blog Joined December 2004
Mexico4793 Posts
December 16 2008 19:21 GMT
#49
wow rich i hope i'll be as good programmer as you someday :D
Teamliquidian townie
floor exercise
Profile Blog Joined August 2008
Canada5847 Posts
December 16 2008 19:23 GMT
#50
I understand how this could happen when CPU savior did the same thing. I even understand not having a ton of testing go into these patches since SC is really old and frankly for it to be updated at all anymore is surprising. What I don't like is that this patch has been out for how long now? There was feedback about how awful 1.16 runs on some peoples computers hours after the patch was released. There's even detailed explanations why from people like r1ch, so why has there not been a followup patch yet to fix this?
Not_Computer
Profile Blog Joined January 2007
Canada2277 Posts
December 16 2008 19:27 GMT
#51
R1CH is amazing :o
"Jaedong hyung better be ready. I'm going to order the most expensive dinner in Korea."
ZergZoul
Profile Joined April 2007
Mexico408 Posts
Last Edited: 2008-12-16 19:44:24
December 16 2008 19:44 GMT
#52
R1CH can see the matrix code... He Is The One!
Racenilatr
Profile Blog Joined August 2008
United States2756 Posts
December 16 2008 19:55 GMT
#53
lol I love ur language R1ch! It actually makes sense to me....but even if i tried i would never be able to apply it :D Still all very reasonable though and its easy to follow on.
BloodyC0bbler
Profile Blog Joined September 2004
Canada7875 Posts
December 16 2008 20:36 GMT
#54
R1ch, single handedly bitch slapping the man with each failed if statement
#3 Member of the Chill Fanclub / Rhaegar fought nobly. Rhaegar fought valiantly. Rhaegar fought honorably. And Rhaeger died. --Ser Jorah Mormont TL MAFIA FORUM http://www.teamliquid.net/forum/index.php?show_part=31 go go !
Bill307
Profile Blog Joined October 2002
Canada9103 Posts
Last Edited: 2008-12-16 20:50:27
December 16 2008 20:41 GMT
#55
On December 17 2008 02:52 MasterOfChaos wrote:
Things are not that simple. The delay passed to sleep is a minimum delay. The function only returns at the next tick after the minimum delay has elapsed. On my comp the tick occurs every 16ms, on older comps/OS that interval can be up to 55ms.
The tick interval can be changed by a program at global level, affecting the whole system. Afaik CPU-Savior does that.
The mistakes blizzard made are not that noobish as some of you thought. The early CPU-Savior versions had similar problems. And the ingame lag does not occur on every comp (or atleast some people like me don't notice it).
The main problem is that it passed QA(or was not send to QA at all).
The /r bug is a real wtf on the other hand.

The other main problem with this bug is that the programmer did not contact the developers of CPU-Savior to ask them how they implemented it and what kinds of problems they ran into during testing.

Whether this was the fault of the programmer for being ignorant or naive, or the fault of a ridiculous non-disclosure agreement that prohibited him from asking such a harmless question, we'll never know.


As for the /r bug, QA definitely deserves major blame for that one regardless of how WTF-ish the implementation was. Honestly, whoever was responsible for testing that feature is a mediocre tester at best, definitely not the kind of guy you'd expect to be working for Blizzard. A message like ".r test" should have been an obvious test case and it takes about 2 seconds to verify it.
b3h47pte
Profile Blog Joined May 2007
United States1317 Posts
December 16 2008 22:47 GMT
#56
On December 16 2008 20:06 freelander wrote:
thx for the explanation.
this is my 3rd semester studying c++, i am making (lame) games with SDL, so i am interested in this stuff where is the good places in the game loop to put delays.
i have learnt some microcontroller programming meanwhile so I can understand some part of the assembly

i will check out this ollydbg stuff, I haven't heard about it yet but sounds great


if you're focused on making games, Assembly probably isn't THAT relevant to what you want to do. Assembly is probalby only helpful if you plan on making anti-hacks or something of that sort.
GearitUP
Profile Joined November 2008
United States337 Posts
December 16 2008 23:51 GMT
#57
Awesome discovery, I been wondering why these problems were occuring however I have to agree with

On December 16 2008 19:23 Plexa wrote:
First step in making SC obsolete in preparation for SC2


i believe this is true :/
Own<Owned<Ownt<Pwn<Pwned<PwnT< YOU NEWB!
Ganfei
Profile Blog Joined August 2008
Taiwan1439 Posts
December 17 2008 00:07 GMT
#58
well if iccup adds that 3v3 ladder then screw bnet, don't need it for anything anymore
You are crushing me like a cheese sandwich
CharlieMurphy
Profile Blog Joined March 2006
United States22895 Posts
Last Edited: 2008-12-17 00:21:16
December 17 2008 00:20 GMT
#59
Yea, they really have a tester problem. I bet they don't even test it properly. Guy probably just makes the code and makes sure it works then passes it up (without checking for side effects).

They really need to consult outside programmers like MoC, Tec27(the adv loader guy, sorry i forget ur name :/), and you r1ch.

I was just discussing this with EchoOfRain on bnet yesterday. He said that they changed the ports or something too? I don't think he was right.
..and then I would, ya know, check em'. (Aka SpoR)
R1CH
Profile Blog Joined May 2007
Netherlands10340 Posts
December 17 2008 00:25 GMT
#60
On December 17 2008 02:52 MasterOfChaos wrote:
Things are not that simple. The delay passed to sleep is a minimum delay. The function only returns at the next tick after the minimum delay has elapsed. On my comp the tick occurs every 16ms, on older comps/OS that interval can be up to 55ms.

This too was another wtf, they added sleeps without setting the timer resolution to 1ms! So every Sleep could be up to 16ms, however as my test program I posted on my previous blog showed, most people have high timer resolutions to begin with.
AdministratorTwitter: @R1CH_TL
Prev 1 2 3 4 5 6 7 8 Next All
Please log in or register to reply.
Live Events Refresh
Wardi Open
11:00
$400 Monday #40
WardiTV679
OGKoka 375
IndyStarCraft 138
CranKy Ducklings137
Rex119
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
OGKoka 375
Harstem 200
IndyStarCraft 138
Rex 119
ProTech75
StarCraft: Brood War
Britney 30027
Rain 5981
Horang2 3729
Larva 499
Mini 456
EffOrt 455
actioN 447
Stork 311
Zeus 264
Snow 189
[ Show more ]
Light 185
Pusan 160
ZerO 134
Mong 131
JulyZerg 92
Sharp 82
PianO 77
hero 63
Rush 52
Sea.KH 48
sSak 42
Backho 37
Killer 35
JYJ33
zelot 29
Icarus 22
Movie 21
sorry 19
soO 19
Noble 14
Shine 12
Sacsri 10
scan(afreeca) 9
yabsab 8
ivOry 6
Dota 2
420jenkins777
XcaliburYe666
Counter-Strike
olofmeister2399
shoxiejesuss1081
x6flipin477
Other Games
singsing1733
B2W.Neo819
C9.Mang0462
Liquid`RaSZi378
crisheroes359
Fuzer 217
ArmadaUGS177
Lowko134
Pyrionflax116
ZerO(Twitch)15
Organizations
Dota 2
PGL Dota 2 - Secondary Stream11157
PGL Dota 2 - Main Stream1184
Other Games
gamesdonequick517
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• StrangeGG 41
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 4
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Other Games
• WagamamaTV99
Upcoming Events
Replay Cast
12h 8m
Replay Cast
22h 8m
RSL Revival
22h 8m
Cure vs Percival
ByuN vs Spirit
PiGosaur Monday
1d 12h
RSL Revival
1d 22h
herO vs sOs
Zoun vs Clem
Replay Cast
2 days
The PondCast
2 days
RSL Revival
2 days
Serral vs SHIN
Solar vs Cham
RSL Revival
3 days
Reynor vs Scarlett
ShoWTimE vs Classic
uThermal 2v2 Circuit
4 days
[ Show More ]
SC Evo League
5 days
Circuito Brasileiro de…
5 days
Sparkling Tuna Cup
5 days
Liquipedia Results

Completed

Proleague 2025-06-11
2025 GSL S2
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
KCM Race Survival 2025 Season 2
NPSL S3
Rose Open S1
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025
PGL Bucharest 2025

Upcoming

CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
SEL Season 2 Championship
Esports World Cup 2025
HSC XXVII
Championship of Russia 2025
RSL Revival: Season 1
BLAST Open Fall 2025
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
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.