In 4v4 SC2, my computer crawls at say 1 fps. Is it due to my weak CPU/GPU or is it due to network lag?

Discussion

Posted Mar 16, 2020, 10:02 AM UTC

215
brutusterr-Anus•

I think it's due to CPU but sc2 only uses one core so 99% of cpus, even very good ones will struggle to render 400 units

4
aXiriNcontroL•

More like up to 1600 in a 4v4.

1
legacy2355iNcontroL•

you could get up to 3200 if they were all zerg and maxed out on lings/banes with no drones, and that's not even counting the amount of overlords each player would have to make

1
_Duckii•

Or just near infinite overlords

1
l2protoss•

Cella.WeRRa flashbacks.

1
AlgorithmopolusOP•

What's the fastest single core CPU these days?

1
javelinRL•

It's CPU and/or GPU - Starcraft and most RTS-like games like DotA use a network system called Lockstep, which was invented with Age of Empires and even back in 1997 could easily handle hundreds of units easily on dial-up Internet. With 2020 Internet in the megabytes per second there is no way this is causing lag in your matches, short of someone else using up all your Internet.

Basically the system only shares where/what/when people clicked and not any real game stuff. From the inputs alone each game client is able to reconstruct the same game in everyone else's machines - which is why when something goes wrong with that you'll get a "desync" error. Not even the best korean pro's insane APM will use up megabytes of Internet connection.

2
l2protoss•

Do you have any insight into how this works with WC3 and its ranges for damage? I’ve always understood how SC works from a message / replay perspective, but can’t think of an efficient way to do it with WC3. Maybe there’s a seed at the beginning of the game and based on time stamp it decides what damage is done? Not sure.

1
javelinRL•

Maybe there’s a seed at the beginning of the game and based on time stamp

It doesn't need a timestamp, after you seed a pseudo-random number generator (pRNG) with a seed, it will give the same results in the same order, even though the results themselves are (practically) random.

So if both game clients are in sync and drawing numbers from the pRNG in the same order at the same time, the results are guaranteed to be the same, as long as the initial seed is the same (which can easily be exchanged or generated between clients when connecting, before the game starts)

That's the entire premise of the Lockstep mechanism: as long as the clients react exactly in the same way to exactly the same inputs, all you need to do is exchange those inputs and everything else falls perfectly in place. It's easier said than done, programming-wise but once it's working, it's butter-smooth on all fronts.

2
l2protoss•

Very cool! Thanks.

1
javelinRL•

I think I might have misunderstood your original comment but hopefully I answered your question somewhere along the way XD cheers!

2
GouraudPalm•

Make a 4v4 will only cpu son you can test it.

1
MimicalAxiom•

The easiest way to determine is by having task manager sit on a second monitor or just alt-tab out. With Winhows 10 you can see the per core, GPU and network usage. Find the thing sitting at 100% usage. Linux you can use Top/Htop and Nvidia SMI or AMD equivalent commands on a terminal screen.

(Note that sometimes the Y-axis on the network scales down or up). This requires no 3rd party programs.

There is a very good chance that one of your cores is pinned right at 100% as the SC2 engine is primary throttled by single core performance.

1
MilExoProtoss•

Network lag doesn't have an impact on FPS

1