The notion that a lot of 'sloppy' software is responsible for slow frame rates is wildly off base. The realism of rendering has been marching steadily upward for years, that is the root cause. Programmers aren't getting worse, their job is getting harder.
That's not true at all.
First, there's a lot of sloppy software out there -- there's an almost endless list of games including AAA titles that are released in a horrible state not just when it comes to gameplay / quest bugs, but also to poor rendering performance. Most of them eventually get fixed by post-launch patching, but some are just badly designed and can't be optimized or the developers don't give a damn once they have your money.
Realism has been improving, but at what cost? Does my PC with an RTX 4090 really need to pull 670W from the wall socket continuously so it can barely squeeze past 60 FPS in 1080p in Cyberpunk 2077? Sure it looks realistic, but it's a boring game about being an unemployed nobody in a horrible world.
Finally, programmers are certainly getting worse because:
1. They are pushed to increase productivity which can past certain point only come at the expense of the code quality.
2. They are increasingly reliant on a 3rd party code without good understanding on how it works or sometimes even how to use it correctly with prime example being complex game engines such as Unreal and Unity which take years to master and require domain-specific knowledge (3D rendering, GPU architectures).
3. They are increasingly read-only (meaning they can't read other programmers' code and loudly complain when they have to do it) because that requires knowing low-level stuff and being able to recognize patterns and algorithms while many only know how to find and copy/paste stuff from SO or use pre-built packages and deal with high-level concepts only.
4. There are no universal certifications and licenses for software engineers like there are for civil engineers for example -- literally anyone can say "I am a developer" even if the only thing they can do is put some HTML + JS together.
Source: I am an avid gamer and a software engineer with 15 years of experience in software development, and 30 years of experience in the PC industry with basic understanding of electronics.