• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 05:10
CEST 11:10
KST 18:10
  • 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
TL.net Map Contest #21: Voting8[ASL20] Ro4 Preview: Descent11Team TLMC #5: Winners Announced!3[ASL20] Ro8 Preview Pt2: Holding On9Maestros of the Game: Live Finals Preview (RO4)5
Community News
BSL Team A vs Koreans - Sat-Sun 16:00 CET1Weekly Cups (Oct 6-12): Four star herO85.0.15 Patch Balance Hotfix (2025-10-8)80Weekly Cups (Sept 29-Oct 5): MaxPax triples up3PartinG joins SteamerZone, returns to SC2 competition32
StarCraft 2
General
Stellar Fest: StarCraft II returns to Canada herO Talks: Poor Performance at EWC and more... Revisiting the game after10 years and wow it's bad TL.net Map Contest #21: Voting Weekly Cups (Oct 6-12): Four star herO
Tourneys
$1,200 WardiTV October (Oct 21st-31st) WardiTV Mondays RSL Offline Finals Dates + Ticket Sales! SC4ALL $6,000 Open LAN in Philadelphia Crank Gathers Season 2: SC II Pro Teams
Strategy
Custom Maps
External Content
Mutation # 495 Rest In Peace Mutation # 494 Unstable Environment Mutation # 493 Quick Killers Mutation # 492 Get Out More
Brood War
General
BSL Team A vs Koreans - Sat-Sun 16:00 CET BW General Discussion Question regarding recent ASL Bisu vs Larva game [Interview] Grrrr... 2024 Pros React To: BarrackS + FlaSh Coaching vs SnOw
Tourneys
[ASL20] Semifinal B SC4ALL $1,500 Open Bracket LAN [Megathread] Daily Proleagues [ASL20] Semifinal A
Strategy
BW - ajfirecracker Strategy & Training Current Meta Relatively freeroll strategies Siegecraft - a new perspective
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread Dawn of War IV Nintendo Switch Thread ZeroSpace Megathread
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
SPIRED by.ASL Mafia {211640} TL Mafia Community Thread
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Men's Fashion Thread Sex and weight loss
Fan Clubs
The herO Fan Club! The Happy Fan Club!
Media & Entertainment
Anime Discussion Thread [Manga] One Piece Series you have seen recently... Movie Discussion!
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023 NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023
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 Heroism of Pepe the Fro…
Peanutsc
Rocket League: Traits, Abili…
TrAiDoS
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1414 users

Inconsistent DPS? can someone explain please.

Blogs > StaticNine
Post a Reply
StaticNine
Profile Blog Joined March 2017
27 Posts
Last Edited: 2024-12-13 15:40:36
December 10 2024 23:58 GMT
#1
I made 2 zerglings each attacking a different tank at the same time and then saved the game. When I repeatedly load the game it seems random which tank dies first. When I tested this with hydralisks I had the same inconsistent results. I made a video demonstrating my test.

I only show several attempts in the video, but I've tried it many times to make sure I wasn't just getting extremely lucky and seeing something rare. I didn't fish for these examples. I recorded once and saved the results.



I just remembered the ranged miss chance could be a factor for the hydras. I should have tested another melee unit.

EDIT: while trying to google for an answer I stumbled on the liquipedia page for BWcalc which states,

"It is generally accepted that there exists some randomness in attack cooldowns in Brood War. While the exact specifics are not known, it is believed that attack cooldowns can vary by approximately +/- 1-4 logical steps per attack"

WombaT
Profile Blog Joined May 2010
Northern Ireland25875 Posts
December 11 2024 00:20 GMT
#2
That is genuinely strange, interested to hear some theories on it
'You'll always be the cuddly marsupial of my heart, despite the inherent flaws of your ancestry' - Squat
micronesia
Profile Blog Joined July 2006
United States24713 Posts
December 11 2024 00:31 GMT
#3
Watching the video in slo-mo, you can see the time between zergling attacks is not constant. I'm not sure how the game calculates the cooldown between attacks, but clearly it worked out differently for these two zerglings. Two possibilities are a randomization factor or a cyclic pattern where the two zerglings each started at different points in the (asymmetric) cycle.
ModeratorThere are animal crackers for people and there are people crackers for animals.
redproduce
Profile Joined December 2024
2 Posts
December 11 2024 05:11 GMT
#4
--- Nuked ---
ZeroByte13
Profile Joined March 2022
772 Posts
Last Edited: 2024-12-11 09:42:42
December 11 2024 09:40 GMT
#5
Isn't there a random 1 frame micro-delay, probably initially added so units like marines shoot more "naturally" and not at exactly the same frame like synchronized robots?
With units like lings where their attack cooldown is very short - 8 frames without glands, 5 with glands - even 1 frame random delay can accumulate to noticeable difference.
WombaT
Profile Blog Joined May 2010
Northern Ireland25875 Posts
December 11 2024 14:41 GMT
#6
On December 11 2024 18:40 ZeroByte13 wrote:
Isn't there a random 1 frame micro-delay, probably initially added so units like marines shoot more "naturally" and not at exactly the same frame like synchronized robots?
With units like lings where their attack cooldown is very short - 8 frames without glands, 5 with glands - even 1 frame random delay can accumulate to noticeable difference.

That would make sense
'You'll always be the cuddly marsupial of my heart, despite the inherent flaws of your ancestry' - Squat
StaticNine
Profile Blog Joined March 2017
27 Posts
Last Edited: 2024-12-11 18:56:12
December 11 2024 18:49 GMT
#7
On December 11 2024 18:40 ZeroByte13 wrote:
Isn't there a random 1 frame micro-delay, probably initially added so units like marines shoot more "naturally" and not at exactly the same frame like synchronized robots?
With units like lings where their attack cooldown is very short - 8 frames without glands, 5 with glands - even 1 frame random delay can accumulate to noticeable difference.



random 1 frame micro delay for every attack? does this mean a unit could get unlucky and attack several frames slower than a unit that did not roll these delays?

I repeated the test for units that attack slower like zealots and DTs and saw the same results. It was a pain to get them to attack at the exact same time, but on the DT test I had them attack a tank which only takes 4 hits to kill. Even if a DT initially attacked 1-2 frames later than the other DT, sometimes it would kill the tank sooner than the DT that attacked first.

I recorded a video of the DT

Nirli
Profile Joined February 2023
Bulgaria373 Posts
December 12 2024 15:43 GMT
#8
Are the stones on the ground in the first vid and the crack in the ground in the second vid doodads?
StaticNine
Profile Blog Joined March 2017
27 Posts
December 12 2024 17:51 GMT
#9
On December 13 2024 00:43 Nirli wrote:
Are the stones on the ground in the first vid and the crack in the ground in the second vid doodads?


I don't think so. I loaded a fresh map on SCdraft and added no doodads.
Acrofales
Profile Joined August 2010
Spain18090 Posts
December 15 2024 13:53 GMT
#10
Not sure about zerglings, but if I'm not mistaken there are a bunch of random factors in attacking. Damage can sometimes vary, cooldowns can vary. Over enough attacks they all average out, but looking at individual zerglings doing damage might not be the best. Now, I'm not sure this holds for zerglings, as quite a lot of the RNG in things was removed. But even if all RNG is removed you'll still have to question how things are implemented. If something attacks every 0.497 seconds, as zerglings do, you might just have some CPU constraints that with enough attacks, they'll desync due to floating point operations, the way things are parallelized (or serialized), etc. I'm guessing that in the design of the game it was less important to have two zerglings kill tanks in *exactly* the same time every time, and more important that a swarm of zerglings responds rapidly and agilely to your commands without syncing all units all the time everywhere.
StaticNine
Profile Blog Joined March 2017
27 Posts
December 15 2024 17:24 GMT
#11
On December 15 2024 22:53 Acrofales wrote:
Not sure about zerglings, but if I'm not mistaken there are a bunch of random factors in attacking. Damage can sometimes vary, cooldowns can vary. Over enough attacks they all average out, but looking at individual zerglings doing damage might not be the best. Now, I'm not sure this holds for zerglings, as quite a lot of the RNG in things was removed. But even if all RNG is removed you'll still have to question how things are implemented. If something attacks every 0.497 seconds, as zerglings do, you might just have some CPU constraints that with enough attacks, they'll desync due to floating point operations, the way things are parallelized (or serialized), etc. I'm guessing that in the design of the game it was less important to have two zerglings kill tanks in *exactly* the same time every time, and more important that a swarm of zerglings responds rapidly and agilely to your commands without syncing all units all the time everywhere.


I tested a bunch of other units too including DTs on tanks which only take 4 attacks to kill. In a later post here I linked a video of a DT attacking later than the other DT yet it kills the tank sooner. The conclusion seems to be there is indeed randomness in attack cooldowns. The liquipedia page for BWcalc describes it as "plus or minus 1-4 logical steps per attack" which at fastest game speed means attacks can vary from 42-168 milliseconds per attack.

While this doesn't have a big effect, I imagine it has impacted game results at times when a high damage unit was killed milliseconds before an attack came out like maybe with a big reaver or lurker shot. It's not like anything can be done about it, that's just how the game was coded, but I think it's interesting to know. Many people think DPS is constant and I thought it was as well.
ThunderJunk
Profile Joined December 2015
United States706 Posts
December 17 2024 17:19 GMT
#12
This reminds me of one time I saw a KR stream where some pros seemed convinced that a zergling could 1vs1 an SCV in a direct fight if the zergling was perfectly microed. Like, someone at the level of Shuttle was spending 20-30 minutes clicking the ling, and trying to subtly influence the attack speed of the ling by declaring attacks really precisely. They never succeeded. The SCV always survived and the ling always died. Perhaps it is possible to influence the random factor by supplying some sort of really specifically timed manual input. Definitely not sure about that, though.
I am free because I know that I alone am morally responsible for everything I do.
StaticNine
Profile Blog Joined March 2017
27 Posts
December 17 2024 19:54 GMT
#13
On December 18 2024 02:19 ThunderJunk wrote:
This reminds me of one time I saw a KR stream where some pros seemed convinced that a zergling could 1vs1 an SCV in a direct fight if the zergling was perfectly microed. Like, someone at the level of Shuttle was spending 20-30 minutes clicking the ling, and trying to subtly influence the attack speed of the ling by declaring attacks really precisely. They never succeeded. The SCV always survived and the ling always died. Perhaps it is possible to influence the random factor by supplying some sort of really specifically timed manual input. Definitely not sure about that, though.


do you mean the other way around? a zergling always kills an scv in a 1on1 fight. they usually end up attacking sooner when engaging, but even when I created a save state where they both initially attack each other on the same frame the zergling still always wins and it's not close enough that the RNG can overcome it. the zergling always survives with either 2 or 1 hits remaining.
Please log in or register to reply.
Live Events Refresh
Next event in 51m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 238
SortOf 135
StarCraft: Brood War
Rain 1030
Killer 601
actioN 451
GuemChi 302
sorry 90
JulyZerg 74
ToSsGirL 69
Mini 39
soO 26
Sacsri 25
[ Show more ]
ajuk12(nOOB) 13
ivOry 8
firebathero 0
Dota 2
XcaliburYe1156
League of Legends
JimRising 723
Counter-Strike
Stewie2K305
oskar62
Heroes of the Storm
Khaldor175
Other Games
summit1g13367
B2W.Neo321
C9.Mang0283
KnowMe135
Mew2King129
singsing112
ViBE51
Trikslyr22
Organizations
Counter-Strike
PGL8657
Other Games
gamesdonequick1381
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• Berry_CruncH176
• LUISG 15
• Adnapsc2 12
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos2042
• HappyZerGling140
Other Games
• WagamamaTV583
Upcoming Events
CranKy Ducklings
51m
BSL Team A[vengers]
4h 51m
Bonyth vs Paralyze
StRyKeR vs Ample
Safe House 2
7h 51m
Sparkling Tuna Cup
1d
Safe House 2
1d 7h
Monday Night Weeklies
2 days
Tenacious Turtle Tussle
4 days
The PondCast
5 days
Online Event
6 days
RSL Revival
6 days
Liquipedia Results

Completed

Acropolis #4 - TS2
WardiTV TLMC #15
HCC Europe

Ongoing

BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
C-Race Season 1
IPSL Winter 2025-26
EC S1
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
BLAST Bounty Fall Qual

Upcoming

SC4ALL: Brood War
BSL Season 21
BSL 21 Team A
BSL 21 Non-Korean Championship
RSL Offline Finals
RSL Revival: Season 3
Stellar Fest
SC4ALL: StarCraft II
CranK Gathers Season 2: SC II Pro Teams
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 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.