• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 20:04
CEST 02:04
KST 09:04
  • 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
Team TLMC #5 - Finalists & Open Tournaments0[ASL20] Ro16 Preview Pt2: Turbulence9Classic Games #3: Rogue vs Serral at BlizzCon9[ASL20] Ro16 Preview Pt1: Ascent10Maestros of the Game: Week 1/Play-in Preview12
Community News
Weekly Cups (Sept 8-14): herO & MaxPax split cups4WardiTV TL Team Map Contest #5 Tournaments1SC4ALL $6,000 Open LAN in Philadelphia8Weekly Cups (Sept 1-7): MaxPax rebounds & Clem saga continues29LiuLi Cup - September 2025 Tournaments3
StarCraft 2
General
#1: Maru - Greatest Players of All Time Weekly Cups (Sept 8-14): herO & MaxPax split cups Team Liquid Map Contest #21 - Presented by Monster Energy SpeCial on The Tasteless Podcast Team TLMC #5 - Finalists & Open Tournaments
Tourneys
Maestros of The Game—$20k event w/ live finals in Paris SC4ALL $6,000 Open LAN in Philadelphia Sparkling Tuna Cup - Weekly Open Tournament WardiTV TL Team Map Contest #5 Tournaments RSL: Revival, a new crowdfunded tournament series
Strategy
Custom Maps
External Content
Mutation # 491 Night Drive Mutation # 490 Masters of Midnight Mutation # 489 Bannable Offense Mutation # 488 What Goes Around
Brood War
General
[ASL20] Ro16 Preview Pt2: Turbulence ASL20 General Discussion Diplomacy, Cosmonarchy Edition BGH Auto Balance -> http://bghmmr.eu/ BW General Discussion
Tourneys
[ASL20] Ro16 Group D [ASL20] Ro16 Group C [Megathread] Daily Proleagues SC4ALL $1,500 Open Bracket LAN
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Path of Exile Stormgate/Frost Giant Megathread General RTS Discussion Thread Nintendo Switch Thread Borderlands 3
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
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread Canadian Politics Mega-thread Russo-Ukrainian War Thread The Big Programming 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
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: 1145 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 Ireland25648 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 Ireland25648 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
Spain18049 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 States694 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
PiGosaur Monday
00:00
#49
davetesta53
Liquipedia
OSC
23:00
OSC Elite Rising Star #16
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Nina 143
trigger 18
StarCraft: Brood War
Artosis 743
Backho 133
NaDa 15
Dota 2
monkeys_forever378
Counter-Strike
fl0m796
kRYSTAL_48
Super Smash Bros
C9.Mang0254
Heroes of the Storm
NeuroSwarm135
Other Games
summit1g8266
Grubby3674
shahzam925
Day[9].tv602
ToD224
Sick178
Maynarde127
XaKoH 62
Trikslyr59
ViBE47
Organizations
Other Games
gamesdonequick674
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• intothetv
• AfreecaTV YouTube
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• masondota22314
Other Games
• Scarra1190
• imaqtpie839
• Day9tv602
Upcoming Events
LiuLi Cup
10h 56m
OSC
18h 56m
RSL Revival
1d 9h
Maru vs Reynor
Cure vs TriGGeR
The PondCast
1d 12h
RSL Revival
2 days
Zoun vs Classic
Korean StarCraft League
3 days
BSL Open LAN 2025 - War…
3 days
RSL Revival
3 days
BSL Open LAN 2025 - War…
4 days
RSL Revival
4 days
[ Show More ]
Online Event
4 days
Wardi Open
5 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

Proleague 2025-09-10
Chzzk MurlocKing SC1 vs SC2 Cup #2
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
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 World Championship of Poland 2025
IPSL Winter 2025-26
BSL Season 21
SC4ALL: Brood War
BSL 21 Team A
Stellar Fest
SC4ALL: StarCraft II
EC S1
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
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.