Thread overview
D and C++ renderer side by side demonstration
Aug 07, 2021
Ki Rill
Aug 07, 2021
kinke
Aug 07, 2021
aberba
Aug 08, 2021
IGotD-
August 07, 2021

Here is a youtube link.

I was watching Timur Gafarov’s videos on Dagon Engine and stumbled upon a video that demonstrated a C++ Renderer Engine using the same Sponza scene. I thought it would be a great idea to show them side by side.

This is not a “X vs Y” video! It just demonstrates the capabilities of D and C++ side by side.

August 07, 2021

On Saturday, 7 August 2021 at 03:15:30 UTC, Ki Rill wrote:

>

I was watching Timur Gafarov’s videos on Dagon Engine and stumbled upon a video that demonstrated a C++ Renderer Engine using the same Sponza scene. I thought it would be a great idea to show them side by side.

This is not a “X vs Y” video! It just demonstrates the capabilities of D and C++ side by side.

Sorry, but it just demonstrates the capabilities of 2 seemingly totally unrelated rendering engines and might easily mislead beginners, not helping D at all. What makes you think the used programming language would have any effect on the capabilities of a rendering engine? Some old Quake engine was ported from C or C++ to Emscripten (JavaScript) via WebGL by Carmack himself IIRC some years ago, and the visual results were unsurprisingly identical. There might be differences in efficiency, especially for JavaScript vs. a system programming language, but most modern graphics are GPU-bound anyway.

August 07, 2021

On Saturday, 7 August 2021 at 07:11:26 UTC, kinke wrote:

>

On Saturday, 7 August 2021 at 03:15:30 UTC, Ki Rill wrote:

> >

This is not a “X vs Y” video! It just demonstrates the capabilities of D and C++ side by side.

might easily mislead beginners, not helping D at all. What makes you think the used programming language would have any effect on the capabilities of a rendering engine?

Relax, not sure where you are drawing this conclusion from. You probably are overthinking this. Any content that shows what D can do or mentions D is a plus IMO.

August 08, 2021

On Saturday, 7 August 2021 at 03:15:30 UTC, Ki Rill wrote:

>

Here is a youtube link.

I was watching Timur Gafarov’s videos on Dagon Engine and stumbled upon a video that demonstrated a C++ Renderer Engine using the same Sponza scene. I thought it would be a great idea to show them side by side.

This is not a “X vs Y” video! It just demonstrates the capabilities of D and C++ side by side.

You can do rendering engines in D, nice example. Next questions would be

  1. Is GC being used or is custom memory management being used?
  2. How much is D and how much are library calls (to OpenGl, DirectX whatever which presumably are done in C++)?