News for hackers. Stuff that matters.
Re:Serious Sam handled massive amounts of enemies on 56k mod... by mizzao on Wednesday June 12, 2024 @11:46PM (#40665740)
Is this the same idea as "1500 archers on a 28.8" for Age of Empires?

https://www.gamedeveloper.com/programming/1500-archers-on-a-...

Re:Serious Sam handled massive amounts of enemies on 56k mod... by forrestthewoods on Wednesday June 12, 2024 @11:58PM (#40665793)
Yes. Both are “deterministic lockstep” systems. Many many games have used such a system over the years. Although it’s probably less common these days for a variety of reasons.
Re:Serious Sam handled massive amounts of enemies on 56k mod... by LarsDu88 on Thursday June 13, 2024 @12:06AM (#40665825)
Is this due to the heterogeneity of client hardware?
Re:Serious Sam handled massive amounts of enemies on 56k mod... by Thaxll on Thursday June 13, 2024 @12:21AM (#40665900)
Indeed, imagine all the cpu / compiler / different platform, all must behave the same.
Re:Serious Sam handled massive amounts of enemies on 56k mod... by nightowl_games on Thursday June 13, 2024 @01:03AM (#40666135)
Not primarily. There were weirder CPUs in the past. Today's CPUs have largely converged on floating point operations. Basically just sin/cos/tan differ now.

It's possible to write fully cross platform deterministic code today, but it's harder to do and uncommon in libraries.

Writing state synchronization and using client side prediction is generally easier. Determinism is only necessary if there are bandwidth constraints.

Re:Serious Sam handled massive amounts of enemies on 56k mod... by eru on Thursday June 13, 2024 @02:00AM (#40666387)
Also it's easier to cheat when your local client has all the data.
Re:Serious Sam handled massive amounts of enemies on 56k mod... by meheleventyone on Thursday June 13, 2024 @05:43AM (#40667655)
Not so much easier but enables a different class of cheats in games where players don't have perfect information, even with other schemes there is normally enough information leaked that similar cheats are possible. OTOH using a deterministic simulation prevents a whole class of other cheats.
Re:Serious Sam handled massive amounts of enemies on 56k mod... by nightowl_games on Thursday June 13, 2024 @10:16AM (#40669954)
What class of cheats are prevented in deterministic simulation but possible with a dedicated server running a state synchronization netcode model? I don't think any...
Re:Serious Sam handled massive amounts of enemies on 56k mod... by eru on Thursday June 13, 2024 @11:24AM (#40670814)
Well, unless you don't trust the server.
Re:Serious Sam handled massive amounts of enemies on 56k mod... by kalleboo on Thursday June 13, 2024 @02:26AM (#40666549)
Wasn't that even worse before? Games like Warcraft and Doom played across Intel x86, Motorola 680x0 and PowerPC
Re:Serious Sam handled massive amounts of enemies on 56k mod... by hnthrowaway0328 on Thursday June 13, 2024 @05:19AM (#40667536)
Fun time. Developers essentially have to dig very low into the stack and deal with multiple architectures. The way to build great programmers.
Re:Serious Sam handled massive amounts of enemies on 56k mod... by mobiuscog on Thursday June 13, 2024 @05:25AM (#40667569)
They didn't have to deal with agile/scrum though. Clearly not real programmers ;)
Re:Serious Sam handled massive amounts of enemies on 56k mod... by nottorp on Thursday June 13, 2024 @07:58AM (#40668557)
Did Warcraft 1 and Doom have cross platform multiplayer back then?
Re:Serious Sam handled massive amounts of enemies on 56k mod... by kalleboo on Thursday June 13, 2024 @08:52AM (#40669043)
I don't know about WC1/Doom1 but WC2/Doom 2 on the Mac also supported IPX to play against PCs in addition to the native AppleTalk support they had. The only time I ever saw IPX on a Mac.
Re:Serious Sam handled massive amounts of enemies on 56k mod... by ThatPlayer on Thursday June 13, 2024 @07:25AM (#40668262)
I think another issue with lockstep is that for it to work, each client needs all the input data from all the other clients to be able to simulate the next step, otherwise the simulations become out of sync. So how does the simulation handle both your input, and another clients input that comes in 100ms later? If you just pause until you get their input, your game is effectively pausing and running at 10 steps/second. For comparison Starcraft 1 ran at 42ms a step, or ~24 steps per second. You'd be playing in slow motion.

Games like Starcraft 1 would handle it by adding an artificial delay to your inputs (and all your opponent's inputs). Putting it into a buffer for future steps instead. If anyone remembers the latency option for "Extra high latency", this would increase the delay on inputs so that simulations did not have to pause while waiting for inputs from other clients. And then if any network fluctuations causes your input buffer of other clients to empty, you have to pause again.

In fighting games this is usually called delay-based netcode, and people hate it. It makes your inputs feel unresponsive, and in games that require fast reactions (like fighting games) gives you a smaller window to react.

Re:Serious Sam handled massive amounts of enemies on 56k mod... by hypertexthero on Thursday June 13, 2024 @08:31AM (#40668847)
This is all way above my understanding, but:

Recently I’ve been playing Arma Reforger with friends online on a dedicated server, and when driving vehicles the collision physics are off, especially when driving fast, making the whole scene “teleport” forward, with frames lost and the vehicle reappearing in unexpected positions.

I wonder if this is related to this type of code. The game is technically out of early access, but there’s lots to be added still on the roadmap.

Re:Serious Sam handled massive amounts of enemies on 56k mod... by chainingsolid on Thursday June 13, 2024 @06:56PM (#40675802)
Some games that used a determinism based architecture, will actually provide immediate feed back faked on the client and then some how make that work when the real stuff happens later. See Starcraft providing instant audio response when moving units or for Factorio: https://factorio.com/blog/post/fff-83 https://factorio.com/blog/post/fff-412 (second half of post)
Re:Serious Sam handled massive amounts of enemies on 56k mod... by ThatPlayer on Friday June 14, 2024 @07:31AM (#40679767)
Fighting games still typically use a deterministic simulation too. The difference is the good netcode, called rollback, works by using save states and rewinding the simulation to the time of your opponent's 100ms late input, and then resimulating the 100ms from there. You can get away with little or no delay on your own inputs.

I doubt that'll scale to games like Starcraft and Factorio, because in my example, you would need to resimulate 100ms of simulations in ~16ms. In a fighting game with 2 characters and not much else to simulate, that's a lot easier.

https://words.infil.net/w02-netcode.html

Re:Serious Sam handled massive amounts of enemies on 56k mod... by forrestthewoods on Thursday June 13, 2024 @01:53PM (#40672582)
Lockstep determinism has a lot of issues.

First, building a PERFECTLY deterministic sim is brutally difficult. Even for a single piece of hardware. It’s so so hard and expensive. A single bug “crashes” the game with a “desync” error. Making it work cross-platform was never really an issue.

Second, you’re bound by the slowest client. No one can go faster than the weakest link.

Third, you can’t stop cheating. Every client has full and complete world state. This is fine for co-op but a major issue for competitive.

Really the ONLY benefit to lockstep sync is it minimizes bandwidth. In the days or 56k this was a strict necessity. But these days client-server is almost always a better choice.

Re:Serious Sam handled massive amounts of enemies on 56k mod... by killcoder on Thursday June 13, 2024 @12:45AM (#40666037)
Factorio is a good example of a modern game that works this way.
Re:Serious Sam handled massive amounts of enemies on 56k mod... by Anotheroneagain on Thursday June 13, 2024 @12:06AM (#40665828)
The hidden benefits bit reminds me of how traditional societies seemed to be almost entirely immune to brainwashing. (as noted by Daniel Everett among others) When you have broad education,you can easily slip in some propaganda. In a traditional society, where people were mostly expected to think for themselves and education was pretty much nonexistent, no brainwashing was possible, as any falsehood would be at odds with everybody else's experience.
Re:Serious Sam handled massive amounts of enemies on 56k mod... by throwawayqqq11 on Thursday June 13, 2024 @01:11AM (#40666170)
The history of religion contradicts your point. Judaism emerged in the most illiterate area of its time.

I think "immunity for brainwashing" is the wrong term. Back in the simple days people got less exposed to, how ever you would like to call it. The first ever printed western book was the f'ing bible and people in the 2000s thought the internet would spark a new era of education, you know, printing press 2.0 and such.

Ok, enough OT.

Re:Serious Sam handled massive amounts of enemies on 56k mod... by defrost on Thursday June 13, 2024 @01:24AM (#40666225)
> Judaism emerged in the most illiterate area of its time.

I'm pretty sure Australia was way more illerate at that time - plenty of cave and rock art going on for some 70K years prior, sure, but no written language at all even by 1788.

Re:Serious Sam handled massive amounts of enemies on 56k mod... by throwawayqqq11 on Thursday June 13, 2024 @01:56AM (#40666365)
I meant right next to rome, egypt and persia. Palestine is right in the middle, so relative illiterate.
Re:Serious Sam handled massive amounts of enemies on 56k mod... by racional on Thursday June 13, 2024 @11:54AM (#40671183)
Judaism emerged in the most illiterate area of its time.

How do we know this?

The very fact of its emergence (and reliance on written teachings) speaks to the very opposite.

Re:Serious Sam handled massive amounts of enemies on 56k mod... by wizzwizz4 on Thursday June 13, 2024 @06:08PM (#40675382)
The majority of the Torah is the Oral Torah: the Written Torah is only five books (and they're not huge books, either).
Re:Serious Sam handled massive amounts of enemies on 56k mod... by peppertree on Thursday June 13, 2024 @01:14AM (#40666177)
As in traditional societies that burn scientists for suggesting earth revolves around the sun? This is why it’s important to learn history instead of just making things up in your head.
Re:Serious Sam handled massive amounts of enemies on 56k mod... by defrost on Thursday June 13, 2024 @01:18AM (#40666190)
> It’s important to learn history instead of just making things up in your head.

I agree.

Which traditional societies burnt scientists (plural) for suggesting earth revolves around the sun?

Re:Serious Sam handled massive amounts of enemies on 56k mod... by eru on Thursday June 13, 2024 @02:04AM (#40666413)
Indeed!

Giordano Bruno comes closest and is perhaps what peppertree has in mind. But have a look at his Wikipedia article https://en.wikipedia.org/wiki/Giordano_Bruno for some more nuance.

See also the Wikipedia article on Galileo.

Re:Serious Sam handled massive amounts of enemies on 56k mod... by defrost on Thursday June 13, 2024 @02:32AM (#40666570)
Let's assume, just for laughs, that I know a little history.

Many people have been burnt alive, Bruno included, Galileo excluded.

Bruno was a singular immolation for multiple heresy's, the Cathari were immolated en masse along with non heretics (for God to sort out) .. but none for claiming the earth traveled about the sun, Bruno (IIRC) made waves for denying actual core beliefs.

( Wikipedia cites Bruno not accepting the Trinity, the divinity of Christ, the virginity of Mary, transubstantiation, et al as the main items on the docket .. more than enough for the church of the time )

Galileo wasn't burnt at the stake and many would hold that despite popular opinion his trial had less (almost nothing) to do with his support of heliocentrism nor even his "mocking" of an old friend and now Pope as "Simplicio" and was instead rooted in the worst kind of corporate infighting - he had savagely insulted people that ascended to power within the church who seized their chance for revenge when it came.

You can always find a hook to hang people upon if you look hard enough, the actual reasons for wanting them hung are often orthogonal to any claimed in performative public trials.

Re:Serious Sam handled massive amounts of enemies on 56k mod... by eru on Thursday June 13, 2024 @02:38AM (#40666612)
Yes, I agree with you (and disagree with what peppertree seems to have in mind.)
Re:Serious Sam handled massive amounts of enemies on 56k mod... by Anotheroneagain on Thursday June 13, 2024 @02:40AM (#40666622)
You somehow missed it was the highly educated, clerical class not some illiterate peasants, who burned him at the stake.
Re:Serious Sam handled massive amounts of enemies on 56k mod... by defrost on Thursday June 13, 2024 @02:55AM (#40666748)
I don't agree with your implied 1:1 isomorphism between "traditional societies" and "illiterate peasants".

Many would argue that the "highly educated, clerical class" of those times represented a rigidly traditional society that punished any who deviated slightly from their norms.

Re:Serious Sam handled massive amounts of enemies on 56k mod... by pastage on Thursday June 13, 2024 @04:00AM (#40667118)
The original point was about the evils of traditional religious societies and brain washing. Religion is a convenient way to kill people, and a way to brain wash the masses. Of course it is both easier and harder than the meme religion is bad because of its apparent need of traditional catharsism through burning people. You seem to agree with this so what are we discussing?
Re:Serious Sam handled massive amounts of enemies on 56k mod... by eru on Thursday June 13, 2024 @05:26AM (#40667576)
> Of course it is both easier and harder than the meme religion is bad because of its apparent need of traditional catharsism through burning people.

Burning of people only happened in some parts of the world for some time. Religion is much more widespread phenomenon.

So it's hard to argue that one is a need of the other?

Re:Serious Sam handled massive amounts of enemies on 56k mod... by 082349872349872 on Thursday June 13, 2024 @04:49AM (#40667359)
Orwell, in particular, via his character Goldstein, called out the highly educated, clerical class as the most likely to define deviation and punish deviants.

moderately educated, owning class: these can afford (at least some privacy for) their deviations, but in order to administer the economies which support their lifestyle, have need of the

highly educated, clerical class: these (having been deputised some power) must conform, lest they be rusticated into the

poorly educated, working class: these again get to deviate (because who cares); they've never ever been, and they're never ever going to be, any danger to the owning class.

But of course this tripartite division only holds true in Oceania (and Eastasia, and Eurasia); it clearly wouldn't in any actual earthly polities, right?

Re:Serious Sam handled massive amounts of enemies on 56k mod... by vinnyvichy on Thursday June 13, 2024 @06:40AM (#40667979)
Stalinist Russia: highly educated peasants

Post-republican China: self-punishment as first resort

Current-day North Korea: traditional society

Re:Serious Sam handled massive amounts of enemies on 56k mod... by atoav on Thursday June 13, 2024 @01:37AM (#40666286)
I think that is untrue. It was harder (but not impossible) to push propaganda to uniformist societies because:

1. they were already brainwashed to some degree. In the sense that someone made them believe things that were objectively either not true or arbitrary ("our rabbit god against their duck god")

2. these societies did have no mass media. Reaching many people of the society was only possible through elaborate structures and later the printing press, hence the influence of the back then most elaborate brainwashing structure there was: the catholic church. And even they had a lot of work to make this count as many people could not read the books they were printing.

The bible is a perfect example for how those societies in fact were very unprepared for being brainwashed. The fact that mass media didn't exist just meant the whole thing was much more time- and labor-intensive than a similar thing would have been today. Although I argue today the challenge would be to get as broad of a movement — because people were more isolated back in the day and therefore more scared to deviate from the perceived norms.

Hence why today's brainwashing movements, cults etc. always strive to isolate their followers from the rest of society.

Re:Serious Sam handled massive amounts of enemies on 56k mod... by Anotheroneagain on Thursday June 13, 2024 @02:49AM (#40666691)
This is why I meantioned Everett, who got rejected by the natives. It took centuries of organized effort, that often involved a total reorganization of the society, to christianize Europe.
Re:Serious Sam handled massive amounts of enemies on 56k mod... by TeMPOraL on Thursday June 13, 2024 @02:53AM (#40666731)
What? You're forgetting that those traditional societies had a class with a literal cheat code to push anything into the minds of people: religion. All that "thinking for themselves" didn't happen there - historically, people have always been more than happy to outsource the spiritual to a small group of specialists.

Then again, traditional societies had little to do other than farming and breeding ad infinitum, so there was limited value to any propaganda.

Re:Serious Sam handled massive amounts of enemies on 56k mod... by rightbyte on Thursday June 13, 2024 @06:25AM (#40667893)
The pope might have had a word with any king or priest that tried to push the wrong things into peoples head though. It wasn't like a do whatever concept. You'd had to have broad support in the ruling class.
Re:Serious Sam handled massive amounts of enemies on 56k mod... by TeMPOraL on Thursday June 13, 2024 @07:07AM (#40668110)
For the big things, yes. But for matters of community, or trivialities of daily lives, the words of the clergy might as well have been words of god. You can still see this today, for example in countrysides of various Christian countries, where the local priests are given authority and respect by default, and when they e.g. start hinting that one political option is good and the other is evil, people end up voting just like the priests hinted.
Re:Serious Sam handled massive amounts of enemies on 56k mod... by OptionOfT on Thursday June 13, 2024 @01:33PM (#40672333)
This number actually shows how weird it is to have a unit cap in Tempest Rising.

Either you have the resources, or you don't. Don't cap for reasons of capping.