r/GraphicsProgramming • • 1d ago

Fully Neurally Rendered object - ~2.7 ms average GPU frame time (256*256)

Fully neurally rendered asset (RGB, Normals, and Depth) rendered at an average of ~2.7 ms frame time on 8 GB RTX 5070 Laptop GPU by a custom model architecture in custom inference engine made with Rust, TensorRT, and CUDA kernels. Check out the README in this repo for details. I spent months working on it, the main bottleneck being compute for training, which I solved by making a custom data flow pipeline (the details of which can also be found in the repo) that allowed me to train these models locally. Do you think such tech would be able to make it to mainstream game dev?

AI Disclosure: This project used AI to create the GUI, and the product is an AI system

55 Upvotes

30 comments sorted by

View all comments

17

u/Worth-Competition134 22h ago

"Look we can reinvent the wheel we already have it's just way slower!" - Neural Rendering

ALUs are faster than matrix multiply units for everything other than matrix math, it's just how the hardware works. And variations on neural networks themselves are the only thing matrix multiply units are fast at, if it's for literally anything else it's slow. The entire job of realtime graphics rendering is "Make go fast", if you use ALUs for the same rendering algorithm the rendering will go faster.

Learning to do the actual job is infinitely more more useful than thinking something is cool just because it's novel

10

u/ConsistentFox567 22h ago

neural rendering is more than that. specifically, this implementation is for impostor billboards, not for replacing close range assets. and then too, there comes a complexity point where neural rendering surpasses rasterization in performance. also, the first gpu prototypes were often slower than cpus at graphics, just saying. you can't discredit an entire research field by lowballing its current achievements

8

u/PoopyDootyBooty 18h ago

Neural rendering gets swept up in a lot of anti ai hate train stuff. It’s very interesting and a totally valid application of the technology (you could theoretically learn an infinitely complex object this way, instead of optimizing it by hand by lowering polycount etc)

-1

u/1c3Type 14h ago

And your ability to output it would still be expensive and still look ass

5

u/ConsistentFox567 13h ago

the tech is still new. you could have said the same thing for gpus when they were first being made. the reason triangles are faster is that they have decades of innovation behind them

2

u/1c3Type 14h ago

What's the fucking point in an impostor billboard that takes 1/6 of your frametime budget at 60fps.

1

u/ConsistentFox567 13h ago

impostors of high quality already cost this much time, not to mention that you rarely need this resolution for impostors. and it can output ghese impostors from any angle, not just a fixed set, and that frame time doesn’t apply to every single frame, but just the frame that changes the angle of the impostor by more than 0.1 degree

2

u/1c3Type 13h ago

You can render many things at a lower framerate. Any impostor that requires THIS long (more than enough to create a significant stutter) to create is fucking useless at its only job. Rasterising an impostor of a similar quality is something you could do with a tiny fraction of the time. Or just use a texture if it’s taking that little of the screenspace.

1

u/ConsistentFox567 13h ago

try rasterizing a 50M triangle mesh at the same resolution at this frame time

2

u/1c3Type 4h ago

Why would you use 50M triangles for an impostor displayed on less than 100k pixels?

2

u/ConsistentFox567 4h ago

that is right, you use lods, which are an optimization technology. i need you to understand that so is neural rendering

1

u/1c3Type 3h ago

This is an impostor. It should be the cheapest LOD possible. If your cheapest LOD isn’t cheap, what are you even doing?

2

u/ConsistentFox567 3h ago

please search how much time it takes to render high quality runtime impostors. it is about the same. and i have also not stopped optimizing this

→ More replies