News for hackers. Stuff that matters.
Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by sph on Saturday April 23, 2022 @01:47AM (#31131750)
Same. I got tired of arguing on forums that some games I play are badly optimised, and it's not my $3000 desktop PC the bottleneck, especially when the vast majority play on a thermally constrained laptop. There's some nasty software around that would have issues running on this nitrogen cooled rocket.

Good hardware in gaming has somewhat become a waste of money because often the bottleneck is just bad unoptimised code, and if you had worse hardware you'd be happier compromising; meanwhile good game engines (like id Tech) fly on any modern hardware.

Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by mhh__ on Saturday April 23, 2022 @02:55AM (#31132044)
Even amongst fairly involved programmers I'm usually able to find a speedup just by fiddling with the compiler flags, I suspect a lot of games leave a fair amount on the table.

How many Joules have we lost to Microsoft C++ vs. LLVM for example

Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by FartyMcFarter on Saturday April 23, 2022 @03:41AM (#31132257)
> I suspect a lot of games leave a fair amount on the table.

I worked as a programmer for a AAA game. My feeling is that there needs to be someone in the team with enough influence who cares about optimisation enough to invest a lot of time on it.

After working on the game for a while I had enough political budget to spend time fixing ocasional frame stalls that annoyed me, which felt nice. I also worked a bit on general optimisation, but mostly on stalls. There were definitely lots of people who cared about performance, but this probably varies from studio to studio. If I hadn't done this, I'm sure someone else would have fixed some of them, but not necessarily all of them.

Let's also remember that lots of teams are under tight pressure and deadlines to deliver features and they may not have time to work on performance even if they want to - and if you're using an external engine, this gets even harder to work on.

Anyway, just my 2 cents, maybe other people who were in similar contexts will chime in with their own experiences.

Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by nollbit on Saturday April 23, 2022 @04:10AM (#31132383)
Another issue with game dev for games that release on PC is that devs are usually on very high-end machines. NVMe RAIDs, 3080's, etc. Great for productivity, but there's very little dog fooding on low-spec machines.
Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by FartyMcFarter on Saturday April 23, 2022 @04:30AM (#31132449)
That is true. The game I worked on was also on PS4 and Xbox One, which are both somewhat similar in architecture to a PC (at least in terms of CPU performance), just slower. If we could make the game perform well on the XB1, we knew it most likely would do well on PS4 and PC as well. But you're right, there could be PC-specific issues that would only show up on low-spec PCs.

In previous console generations things were harder back then as each platform's code was more different than now.

Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by iforgotpassword on Saturday April 23, 2022 @05:39AM (#31132694)
I have been deeply impressed with the unreal engine over the last few years. If a gaming studio picks it, chances are much higher it works well on mid- to low tier machines. It's incredible how well optimized it is. It probably takes the "looks per CPU/GPU cycle" crown if that is a thing. ;-)
Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by mhh__ on Saturday April 23, 2022 @01:27PM (#31136268)
The types of games I'm thinking about are actually non-trivial Indie/niche games.

I won't name it but there's a simulator game I play thats very detailed but technically just screams like at some point they either didn't know or didn't have time to care about architecture then just winged it so now you have huge amounts of logic dumped into a basically single-threaded program.

I trust game engine developers a lot, I trust game developers in general not all that much - making games has a very tight feedback loop so a lot of them don't sit back and do it right rather than passing "tests" (not that games have tests most of the time).

Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by FartyMcFarter on Sunday April 24, 2022 @04:44AM (#31142283)
I see - I think it's my bias as well as seeing a lot of people complaining about AAA performance that led me to reply the way I did :)

Your example sounds like it could be caused by a program outgrowing its initial design and might almost need a complete rewrite in order to improve, which is an unfortunate thing that happens naturally sometimes.

Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by ehnto on Saturday April 23, 2022 @07:30AM (#31133317)
I just can't picture how performance couldn't be one of the milestones, surely it's common to have a minimum performance target at least?
Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by FartyMcFarter on Saturday April 23, 2022 @08:05AM (#31133541)
Games are a realtime application, so there's always a performance target and some performance work unless the game is very simple. All professional game developers are conscious of performance to some extent.

On the other hand, games are not hard-realtime - if the framerate sometimes drops below the target or there's the occasional stall, not all teams will care enough or be able to fix that.

In my post above I was talking from the perspective of going the extra mile and trying to make performance really good, which not all games do.

Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by ehnto on Sunday April 24, 2022 @03:01AM (#31141871)
Ah I understand, so in the circumstance you're thinking of it does generally run quite well, but there might be hitches or areas of lower performance that would take a bit more work to get performing perfectly. Without someone directly responsible for those areas as that are changes hands a few times no doubt, eventually it's reached launch time and no one took responsibility.

I recently started working with a large organization and it's made me empathize with how these behemoth pieces of work can miss seemingly obvious issues. People probably noticed, but no one did anything about it since it wasn't in their work stream anymore.

Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by kllrnohj on Saturday April 23, 2022 @09:28AM (#31134075)
The minimum performance target is usually 30fps (more common) or 60fps (less common) as that's all that a consoles budget usually allows. All you need is one thread that comes in just under 32ms on a PS4, but maybe doesn't scale all that well. For example, it's a task that's heavily memory bandwidth or latency bound, which isn't really all that much better on modern top-end desktops. Bam, now you have both a "badly optimized" game and one in which all performance targets are achieved.

Which is not really all that unlikely of a scenario. Just look at the absurd gains that the 5800X3D achieves in some engines over the 5800X, despite the X3D running at lower clock speeds. GTA 5 is a good example here ( https://youtu.be/hBFNoKUHjcg?t=885 ) - the 5800X3D achieves the highest fps on that at 171, a staggering 40 fps higher than the 5800X (by comparison the 12900K is 154fps). Something about that engine just slams into a memory bandwidth/latency wall, at which point it just stops scaling.

Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by tambourine_man on Saturday April 23, 2022 @12:08PM (#31135523)
Is Microsoft C++ faster than LLVM?

There was a time when Intel and IBM (PPC) compilers where unbeatable, but I don’t know if that’s the case anymore with the amount of investment done on LLVM in the past decade or so.

Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by mhh__ on Saturday April 23, 2022 @01:23PM (#31136226)
Microsoft C++ has improved a lot but no I mean LLVM being faster than it.
Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by bitwize on Saturday April 23, 2022 @05:01AM (#31132561)
At one point, not too long ago, if you weren't compiling with Microsoft C++, you were leaving lots of energy on the table.
Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by the_only_law on Saturday April 23, 2022 @02:08AM (#31131852)
It becomes ever worse on Linux. I remember being basically unable to play native ports, only saved by proton.

> and if you had worse hardware you'd be happier compromising

hah, when the game in my original post was new I was running it on garbage tier hardware. I got spoiled when I had a top of the line GPU. Nowadays I have to run it like I still have decade old hardware to get decent perf.

Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by grishka on Saturday April 23, 2022 @02:53AM (#31132028)
I do wonder though, if it's so terrible on top of the line hardware, what do these developers test their games on that they run fine for them?
Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by fxtentacle on Saturday April 23, 2022 @03:18AM (#31132143)
After 2 months of crunch time, everyone is like: fuck it, let's ship and go home
Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by noir_lord on Saturday April 23, 2022 @04:22AM (#31132420)
arma3 - 9 years old - still get 40fps in multiplayer on an RTX2080.

Its hilariously badly optimised but so inutterably brilliant that there is nothing* else that compares, it's a genre of 1* - kind of ironic that the game I really look forwards to playing after I upgrade backend of this year next will be a decade old.

Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by srer on Saturday April 23, 2022 @08:16PM (#31140015)
Much like you I look forward to (mostly CPU) increases to get better arma3 performance!

We need all the performance we can get, because even if it was the worlds most optimized engine, we'd just create bigger scenarios. Who wouldn't find a 10,000 unit mission fun, even if it was only at 40fps? :)

Inutterably brilliant and a genre of 1, I couldn't agree more.

Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by Sebb767 on Saturday April 23, 2022 @06:35AM (#31132971)
Just add the DayZ mod and you'll not only be able to enjoy thrilling Zombie survival bugs, but also dreadful 20 FPS :)
Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by mahesh_rm on Saturday April 23, 2022 @04:33AM (#31132464)
arma4 should come up soon
Re:Core i9-12900KS World Record: How I Hit 7.8 GHz on 8 Cores by xattt on Saturday April 23, 2022 @05:47AM (#31132733)
Will there be arma4 on arm64?