• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 00:56
CEST 06:56
KST 13:56
  • 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
Classic Games #3: Rogue vs Serral at BlizzCon8[ASL20] Ro16 Preview Pt1: Ascent10Maestros of the Game: Week 1/Play-in Preview12[ASL20] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway13
Community News
SC4ALL $6,000 Open LAN in Philadelphia5Weekly Cups (Sept 1-7): MaxPax rebounds & Clem saga continues23LiuLi Cup - September 2025 Tournaments3Weekly Cups (August 25-31): Clem's Last Straw?39Weekly Cups (Aug 18-24): herO dethrones MaxPax6
StarCraft 2
General
#1: Maru - Greatest Players of All Time Team Liquid Map Contest #21 - Presented by Monster Energy What happened to Singapore/Brazil servers? SC4ALL: A North American StarCraft LAN Classic Games #3: Rogue vs Serral at BlizzCon
Tourneys
SC4ALL $6,000 Open LAN in Philadelphia RSL: Revival, a new crowdfunded tournament series LANified! 37: Groundswell, BYOC LAN, Nov 28-30 2025 LiuLi Cup - September 2025 Tournaments Maestros of The Game—$20k event w/ live finals in Paris
Strategy
Custom Maps
External Content
Mutation # 490 Masters of Midnight Mutation # 489 Bannable Offense Mutation # 488 What Goes Around Mutation # 487 Think Fast
Brood War
General
ASL20 General Discussion BGH Auto Balance -> http://bghmmr.eu/ alas... i aint gon' lie to u bruh... BW General Discussion [ASL20] Ro16 Preview Pt1: Ascent
Tourneys
[ASL20] Ro16 Group B Small VOD Thread 2.0 [ASL20] Ro16 Group A [Megathread] Daily Proleagues
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Borderlands 3 Stormgate/Frost Giant Megathread The PlayStation 5 General RTS Discussion Thread Iron Harvest: 1920+
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
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread The Games Industry And ATVI UK Politics Mega-thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
Movie Discussion! [Manga] One Piece Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s)
TL Community
BarCraft in Tokyo Japan for ASL Season5 Final The Automated Ban List
Blogs
The Personality of a Spender…
TrAiDoS
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1089 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 Ireland25599 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 States24701 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
768 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 Ireland25599 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
Bulgaria372 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
Spain18043 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 States692 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 5h 5m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 175
ProTech80
StarCraft: Brood War
Leta 150
Noble 115
Shine 71
sSak 70
NaDa 28
Icarus 13
Dota 2
NeuroSwarm69
League of Legends
JimRising 800
Counter-Strike
Stewie2K633
m0e_tv264
Coldzera 171
Other Games
summit1g9944
hungrybox245
XaKoH 199
fpsfer 1
Organizations
Other Games
gamesdonequick1522
BasetradeTV53
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 17 non-featured ]
StarCraft 2
• practicex 38
• Sammyuel 19
• Kozan
• Migwel
• sooper7s
• AfreecaTV YouTube
• intothetv
• IndyKCrew
• LaughNgamezSOOP
StarCraft: Brood War
• Diggity6
• STPLYoutube
• ZZZeroYoutube
• BSLYoutube
League of Legends
• Rush1566
• Lourlo996
• Stunt423
Other Games
• Scarra851
Upcoming Events
RSL Revival
5h 5m
Classic vs TriGGeR
ByuN vs Maru
Online Event
7h 5m
Kung Fu Cup
7h 5m
BSL Team Wars
14h 5m
RSL Revival
1d 5h
Maestros of the Game
1d 9h
ShoWTimE vs Classic
Clem vs herO
Serral vs Bunny
Reynor vs Zoun
Cosmonarchy
1d 11h
Bonyth vs Dewalt
[BSL 2025] Weekly
1d 13h
RSL Revival
2 days
Maestros of the Game
2 days
[ Show More ]
BSL Team Wars
2 days
Afreeca Starleague
3 days
Snow vs Sharp
Jaedong vs Mini
Wardi Open
3 days
Sparkling Tuna Cup
4 days
Afreeca Starleague
4 days
Light vs Speed
Larva vs Soma
LiuLi Cup
5 days
The PondCast
6 days
Liquipedia Results

Completed

Copa Latinoamericana 4
SEL Season 2 Championship
HCC Europe

Ongoing

BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Points
ASL Season 20
CSL 2025 AUTUMN (S18)
LASL Season 20
RSL Revival: Season 2
Maestros of the Game
Chzzk MurlocKing SC1 vs SC2 Cup #2
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1

Upcoming

2025 Chongqing Offline CUP
BSL Polish World Championship 2025
BSL Season 21
BSL 21 Team A
EC S1
SL Budapest Major 2025
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
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.