• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 21:13
CEST 03:13
KST 10:13
  • 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
[ASL19] Finals Recap: Standing Tall9HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy6
Community News
[BSL20] Non-Korean Championship 4x BSL + 4x China1Flash Announces Hiatus From ASL63Weekly Cups (June 23-29): Reynor in world title form?13FEL Cracov 2025 (July 27) - $8000 live event22Esports World Cup 2025 - Final Player Roster16
StarCraft 2
General
Program: SC2 / XSplit / OBS Scene Switcher The SCII GOAT: A statistical Evaluation Statistics for vetoed/disliked maps Weekly Cups (June 23-29): Reynor in world title form? PiG Sty Festival #5: Playoffs Preview + Groups Recap
Tourneys
RSL: Revival, a new crowdfunded tournament series FEL Cracov 2025 (July 27) - $8000 live event Sparkling Tuna Cup - Weekly Open Tournament WardiTV Mondays Korean Starcraft League Week 77
Strategy
How did i lose this ZvP, whats the proper response Simple Questions Simple Answers
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 481 Fear and Lava Mutation # 480 Moths to the Flame Mutation # 479 Worn Out Welcome Mutation # 478 Instant Karma
Brood War
General
Player “Jedi” cheat on CSL SC uni coach streams logging into betting site Flash Announces Hiatus From ASL BW General Discussion Practice Partners (Official)
Tourneys
[BSL20] Non-Korean Championship 4x BSL + 4x China CSL Xiamen International Invitational The Casual Games of the Week Thread [BSL20] Grand Finals - Sunday 20:00 CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread Nintendo Switch Thread What do you want from future RTS games? Beyond All Reason
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 Summer Games Done Quick 2025! Trading/Investing Thread Things Aren’t Peaceful in Palestine
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Anime Discussion Thread [Manga] One Piece [\m/] Heavy Metal Thread
Sports
Formula 1 Discussion 2024 - 2025 Football Thread NBA General Discussion TeamLiquid Health and Fitness Initiative For 2023 NHL Playoffs 2024
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Blogs
Culture Clash in Video Games…
TrAiDoS
from making sc maps to makin…
Husyelt
Blog #2
tankgirl
StarCraft improvement
iopq
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 708 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 Ireland25045 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 States24668 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
762 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 Ireland25045 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
Bulgaria365 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
Spain17971 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 States677 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 9h 47m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 211
Livibee 204
RuFF_SC2 98
ProTech69
StarCraft: Brood War
Artosis 1059
Icarus 6
Dota 2
monkeys_forever738
Counter-Strike
tarik_tv6835
Fnx 1706
Stewie2K1026
Super Smash Bros
Mew2King98
Heroes of the Storm
Khaldor207
Other Games
summit1g10198
fl0m750
ViBE251
Maynarde180
JuggernautJason18
Organizations
Other Games
gamesdonequick52701
BasetradeTV53
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH51
• davetesta37
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• Ler59
League of Legends
• masondota2912
Upcoming Events
Wardi Open
9h 47m
Replay Cast
22h 47m
Sparkling Tuna Cup
1d 8h
WardiTV European League
1d 14h
MaNa vs sebesdes
Mixu vs Fjant
ByuN vs HeRoMaRinE
ShoWTimE vs goblin
Gerald vs Babymarine
Krystianer vs YoungYakov
PiGosaur Monday
1d 22h
The PondCast
2 days
WardiTV European League
2 days
Jumy vs NightPhoenix
Percival vs Nicoract
ArT vs HiGhDrA
MaxPax vs Harstem
Scarlett vs Shameless
SKillous vs uThermal
uThermal 2v2 Circuit
2 days
Replay Cast
2 days
RSL Revival
3 days
ByuN vs SHIN
Clem vs Reynor
[ Show More ]
Replay Cast
3 days
RSL Revival
4 days
Classic vs Cure
FEL
4 days
RSL Revival
5 days
FEL
5 days
FEL
5 days
Sparkling Tuna Cup
6 days
RSL Revival
6 days
FEL
6 days
Liquipedia Results

Completed

BSL Season 20
HSC XXVII
Heroes 10 EU

Ongoing

JPL Season 2
Acropolis #3
KCM Race Survival 2025 Season 2
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Jiahua Invitational
Championship of Russia 2025
RSL Revival: Season 1
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

Upcoming

2025 ACS Season 2: Qualifier
CSLPRO Last Chance 2025
CSL Xiamen Invitational
2025 ACS Season 2
CSLPRO Chat StarLAN 3
K-Championship
uThermal 2v2 Main Event
SEL Season 2 Championship
FEL Cracov 2025
Esports World Cup 2025
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
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.