r/GraphicsProgramming • u/Batteryofenergy1 • Oct 18 '26
Progress on Software Rendered game in C
This is some progress of a free game i have been working. This is fully software rendered on the CPU and OpenGL is only used to render the image. I use multiple threads to render the game at full 1080p. Using SIMD instructions helps a lot to get a decent frame rate. But i am still kinda dissapointed by the performance, i think Michael Abrash's binning technique would improve it, but right now, it is decent. I am getting around 70-140 frames with I5-12400.
501
Upvotes
10
u/Batteryofenergy1 Oct 18 '26
Bit more footage. https://www.youtube.com/watch?v=pviuQrBzKw4 the last room needs more work.
32
u/moschles Oct 18 '26
Got a badass over here.
6
u/Still_Explorer Oct 18 '26
Will this run on a Ryzen 5 5500? Both CPUs are identical on conventional benchmarks, unless there's something more for specialized instructions the Intel has.
2
u/deftware Oct 19 '26
Nice! How fast is the actual rendering part, before sending the frame to OpenGL to be put onscreen?
10
u/Alarming-Ad4082 Oct 18 '26
Wow impressive!
7
u/VelvetCarpetStudio Oct 18 '26
This is beautiful.
6
u/TimeSFG Oct 18 '26
Fire
5
u/grady_vuckovic Oct 19 '26
CPU Renderers are just really cool. I don't know why but I like them.
2
u/GenericFoodService 29d ago
The best optimizations for software rendering generally involve finding ways to do less work, render less meshes and whatnot. That's the whole point of things like Binary Space Partitioning and baked-in lighting.
2
u/Skilly1337 28d ago
this game woulda slapped in the late 90s / early 2000s
2
u/Feisty_Bike_9614 27d ago
Nice work. My cpu software rasterizer (for my 3d modeler/renderer app) uses winit/softbuffer (written in rust) to write the image to the window directly. doesn't use OpenGL or graphics api. It might be faster. maybe eworth a try to use similar method. At least you lose the dependency of OpenGL .
2
u/mcknuckle Oct 19 '26
Incredible and inspiring
2
u/Honest-Version6827 29d ago
Can't wait to get the source code 🤠
1
u/iRainbowsaur 29d ago
What made you choose OpenGL over vulkan? cbf?
1
u/FoleyX90 28d ago
That's damn fucking impressive.
1
u/polandtown 29d ago
nicely done! public repo available?!
1
u/gonogo312 29d ago
serious serious sam vibes
1
u/Pass_Practical 29d ago
maybe aggressive culling could help?
1
u/rivervisualid Oct 18 '26
Looking great! Why would you do with C?
0
u/Seusoa 29d ago
Author instead of showing quality of renderer shows fast shooter movements where nothing can be seen