r/GraphicsProgramming • u/ConsistentFox567 • 2d 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
3
u/rikardolajos 1d ago
Interesting! Could explain a bit more about the neural shading architecture? The README is not very approachable... Also, what is you memory footprint like, especially compared to traditional impostors? I have done some work with neural billboards myself and keeping the size of the neural model small is key to beating the baseline. And I think that is needed if you want it to be used in mainstream game dev.
5
u/ConsistentFox567 1d ago
sorry for the README being bad, i am still working on it. I am currently working on benchmarking it, so I can get better comparison data, so you will be able to get measured data after that, but by mathematical calculations, the VRAM footprint is about 7% less than normal impostors (again, this is an estimate calculation, and the real measurement can be wildly different). The model is not that big at 0.42M parameters. The way it works is that it takes three G-buffers of an object, at an angles such that the three views form a triangle around the desired angle, taken from a pool of 120 G-buffers per asset. The model then warps pixels to create the G-buffer for the exact angle needed. Again, sorry for the README being unhelpful, and it would be great if you could tell me what problem you faced with it
3
u/rikardolajos 1d ago
Ah, okay I think I understand. 120 G-buffers per asset sounds a lot, but maybe it is still less than regular implementations of impostors.
I think the README is good context for the AI but not very readable for humans. It is very verbose with details that are not needed at first sight of the repo. What you explained here is what I would have wanted to find out when I start reading the README.
4
u/ConsistentFox567 1d ago
the 120 G-buffers (118 to be specific) do sound like a lot, but they are compressed before being loaded into VRAM, and only the required views are decompressed using nvComp directly on the GPU. Equivalent impostor tech uses 64-128 views, so it falls around the higher range
1
u/Clean_Patience4021 49m ago
But that's just an impostor; why not simply render it as an impostor?
Or is it a proof of concept?
1
u/ConsistentFox567 47m ago
it is a poc. its quality is significantly higher than an impostor, and it can be used close range too. you can check out my latest post for a better visualisation of it
1
2
u/mmmniple 1d ago
It is very interesting, Thanks for sharing. I belive you Will like to see this : https://x.com/EtiennePinchon/status/2118592292680618480
1
u/AutoModerator 2d ago
Recently updated rules. Please check that your post is in compliance with Rules 1, 4, 5, and 6 on the sidebar. TL;DR:
No showcases.
Disclose AI usage in post or project.
Present a topic to talk about, e.g. how something works.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
20
u/Worth-Competition134 1d 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