I do think people who make stuff like this are a bit lost in the sauce as to why simplicity is actually important.
Much of the 51m lines is historical cruft not the essential complexity of rendering pages. Managing it better entrenches rather than removes complexity.
Increasingly drawn to the Weird Tales Triumvirate (Lovecraft, Clark Ashton Smith, Robert E. Howard) cosmic pessimism contending with Colin Wilson’s evolutionary optimism. Fascinating stalemate with equal ammunition on both sides.
I don't understand how at Rockstar:
- they have so many draw calls (individual parts) & materials in view
- they have so many hair simulations running at once
- they have so many volumetric lights casting soft bokeh shadows
- they have so many rigidbodies (every vehicle, creature, prop, door, rock, plant is a physical object).
- they simulate so many unique NPCs (pathfinding, AI, voices, animation, hair simulation, active ragdoll, relationships, possessions, etc...)
- they have global illumination with no noise and no barely any temporal artefacts
- they have full raytraced reflections
- they stream all of this data seamlessly
- they render this all at native 1440p, no dynamic resolution
It's a monumental achievement, a lesson for any gamedev, like Red Dead Redemption 2 was & still is. That's what the hardware is capable of. That's the bar.
Solving Antialiasing:
I’d like to share some first principles thoughts I’ve been having on how to completely eliminate aliasing and shimmering when rendering.
To start with, identify why the problem occurs in the first place: we are mapping from a source coordinate representation of content into a 2D pixel grid coordinate system that doesn’t perfectly align with it. Current algorithms, such as hardware rasterizers, offer imperfect (MSAA) to no correction for it. Postprocess antialiasing is even worse as it’s already lost key data. To compound the problem, we’ve been doing shading on incorrectly generated pixel fragments post-rasterization as well.
Why is MSAA flawed? Because it’s just a random assortment of points being sampled where every different arrangement gives a different result. Worse, there is no conservation of energy guarantee as every different grid alignment results in a different total pixel intensity from luck of the point sampling draw, causing shimmering/flickering as the camera moves.
Even basic rasterization offers no subpixel information in its output and potential edge fragments are often culled before reaching the fragment shader.
Pixels are not a point or a collection of points. Pixels have a surface area. Geometries cover a percentage of this surface area. At the edges, these percentages will be less than 100%. To maintain conservation of energy as the camera moves and the edge alignments change, the final generated RGB pixel value sent to the hardware for opaque geometry should have its intensity scaled by the percentage of area coverage across the pixel square.
If multiple opaque geometries contribute to this same pixel, the visible portion of each must be scaled and then added in. For example:
A: 50% coverage of (0.5, 0.5, 0)
B: 25% coverage of (1.0, 0, 0)
C: 25% coverage of (0, 0, 1)
This becomes
(0.25, 0.25, 0) + (0.25, 0, 0) + (0, 0, 0.25)
or a final pixel value of (0.5, 0.25, 0.25).
If the source geometry is itself treated as a grid of texels, then one isn’t dealing with just subpixel geometry edges but also distinct subpixel texel values that themselves can each be mapped into the screen space grid by percentage. Multiple source texels may end up covering part of a destination pixel and need their pixel coverage areas calculated and corrected for to avoid loss.
One then needs to think about what the data is that we are actually performing all of this intensity blending on. It’s not always pure color. How does one safely blend multiple subpixel normals and what does it even mean? What about blending distinct material properties with PBR?
Furthermore, the lighting calculations are occurring after this coordinate system mapping has occurred and they’re being performed on blended data where the distinct material and normal information of each geometry may have already been lost.
Instead, we should consider doing all of this shading PRIOR to the mapping to screen space, e.g. in texture space, before any of this data loss has occurred. This is also convenient for deterministic contiguous data access and doesn’t require texture sampling in an off-grid manner with texture filtering and unpredictable cache misses.
Nobody has combined all of these approaches and done it all on a GPU yet, but I can see it being quite doable in compute shaders, particularly with SDFs and voxels. One may even do this blending multiple times in a frame, such as first doing it when mapping from a voxelized object space to a voxel world space as the grids don’t align, and again to a camera space, having a final pass from back to front to handle partially occluded geometries.
I haven’t had any free time to explore implementing all of these ideas just yet, but I do believe it can be done isochronously.
Rockwell Collins (Evans & Sutherland), my former employer, handled area-based anti-aliasing in custom hardware. @NOTimothyLottes gave me the idea for texture-space rendering. The rest is original thinking on my part.
GTA 6, the last game, and the game of the last men.
A simulacrum, plugged so deeply into modern man's love of surrogate activities, that they've turned building flat-pack furniture and getting groceries into an 'enjoyable' experience.
A life sim, built for a world without life.
Jeff Bezos says if Jensen Huang isn't coming back, he wouldn't hire an outsider as Nvidia's CEO.
He says outside CEOs at complex companies have a "vanishingly small chance of succeeding."
SITUATION DETECTED: The White House and Treasury are discussing a proposal that would require US companies to publicly disclose the use of Chinese open-weight AI models on their websites, aiming to discourage their use through public pressure, per Reuters.
Either way, I don't think it's just small mindedness. The inability of current agents to generate clean systems with beautiful abstractions is a real cognitive gap! Maybe it will be closed soon, and maybe it doesn't matter, but the gap is real nonetheless.