digitalmars.D - D game engine from scratch
- Andi (10/10) Apr 04 hi everyone.
- Andi (4/14) Apr 04 oh an maybe to point out, every pixel in that video is via D and
- madwebness (13/30) Apr 04 So you probably saw my thread about text-editor from scratch. I
- Andi (8/39) Apr 04 I wanted to write everything from scratch and use as little third
- matheus (5/9) Apr 04 Since there is no source linked, in this is Software Rendering,
- Andi (3/12) Apr 04 hi, yes both the UI and the raymarcher write to a byte[] which i
- Kapendev (3/13) Apr 06 Looks like a fun project.
hi everyone. im a big fan of D since uh, i guess it was around 2014 but i never had the time to dig really deep into it. ~4 weeks ago i started to write my game engine (not the first time haha) but in D, and im so extremely amazed how frictionless this whole process was so far. I dont understand why this language hasnt more widespread adoption, its awesome <3 greetings! ps.: 400 unit tests so far, i love this! https://www.youtube.com/watch?v=unZW1Bqin5c
Apr 04
On Saturday, 4 April 2026 at 20:14:23 UTC, Andi wrote:hi everyone. im a big fan of D since uh, i guess it was around 2014 but i never had the time to dig really deep into it. ~4 weeks ago i started to write my game engine (not the first time haha) but in D, and im so extremely amazed how frictionless this whole process was so far. I dont understand why this language hasnt more widespread adoption, its awesome <3 greetings! ps.: 400 unit tests so far, i love this! https://www.youtube.com/watch?v=unZW1Bqin5coh an maybe to point out, every pixel in that video is via D and software rendered, no win11 crap either, i just copied the icons because i like them (sorry)
Apr 04
On Saturday, 4 April 2026 at 20:16:58 UTC, Andi wrote:On Saturday, 4 April 2026 at 20:14:23 UTC, Andi wrote:So you probably saw my thread about text-editor from scratch. I use Raylib for my editor's rendering, but I was also thinking of maybe making it easier to later swap backends and also allow software rendering, like GOP for example. What's your experience with software rendering, how do you draw pixels on screen? Because I initially considered specifically that, but on Linux/BSD/X11 it was extremely difficult, for some reason, to just open a window and draw one pixel - I eventually managed to do it, but it was a lot of boilerplate, whereas with Raylib "it just werks" (tm) and is pretty portable. I also do wonder why haven't you used Raylib yourself (D has a nice binding!).hi everyone. im a big fan of D since uh, i guess it was around 2014 but i never had the time to dig really deep into it. ~4 weeks ago i started to write my game engine (not the first time haha) but in D, and im so extremely amazed how frictionless this whole process was so far. I dont understand why this language hasnt more widespread adoption, its awesome <3 greetings! ps.: 400 unit tests so far, i love this! https://www.youtube.com/watch?v=unZW1Bqin5coh an maybe to point out, every pixel in that video is via D and software rendered, no win11 crap either, i just copied the icons because i like them (sorry)
Apr 04
On Sunday, 5 April 2026 at 00:25:37 UTC, madwebness wrote:On Saturday, 4 April 2026 at 20:16:58 UTC, Andi wrote:I wanted to write everything from scratch and use as little third party code as possible. so I wrote my own UI system which i simply call "widget". and writing the software renderer for it was really fun and a huge learning experience. aside from rasterizing and only updating the pixels which actually changed, multit hreading the drawing loop gave the biggest performance boost and D made that super simple to implementOn Saturday, 4 April 2026 at 20:14:23 UTC, Andi wrote:So you probably saw my thread about text-editor from scratch. I use Raylib for my editor's rendering, but I was also thinking of maybe making it easier to later swap backends and also allow software rendering, like GOP for example. What's your experience with software rendering, how do you draw pixels on screen? Because I initially considered specifically that, but on Linux/BSD/X11 it was extremely difficult, for some reason, to just open a window and draw one pixel - I eventually managed to do it, but it was a lot of boilerplate, whereas with Raylib "it just werks" (tm) and is pretty portable. I also do wonder why haven't you used Raylib yourself (D has a nice binding!).hi everyone. im a big fan of D since uh, i guess it was around 2014 but i never had the time to dig really deep into it. ~4 weeks ago i started to write my game engine (not the first time haha) but in D, and im so extremely amazed how frictionless this whole process was so far. I dont understand why this language hasnt more widespread adoption, its awesome <3 greetings! ps.: 400 unit tests so far, i love this! https://www.youtube.com/watch?v=unZW1Bqin5coh an maybe to point out, every pixel in that video is via D and software rendered, no win11 crap either, i just copied the icons because i like them (sorry)
Apr 04
On Saturday, 4 April 2026 at 20:16:58 UTC, Andi wrote:... oh an maybe to point out, every pixel in that video is via D and software rendered, no win11 crap either, i just copied the icons because i like them (sorry)Since there is no source linked, in this is Software Rendering, you draw every pixel on a buffer (RAM) and then send/swap with the video buffer? So you are using only CPU? Matheus.
Apr 04
On Sunday, 5 April 2026 at 00:38:17 UTC, matheus wrote:On Saturday, 4 April 2026 at 20:16:58 UTC, Andi wrote:hi, yes both the UI and the raymarcher write to a byte[] which i just hand over to the OS.... oh an maybe to point out, every pixel in that video is via D and software rendered, no win11 crap either, i just copied the icons because i like them (sorry)Since there is no source linked, in this is Software Rendering, you draw every pixel on a buffer (RAM) and then send/swap with the video buffer? So you are using only CPU? Matheus.
Apr 04
On Saturday, 4 April 2026 at 20:14:23 UTC, Andi wrote:hi everyone. im a big fan of D since uh, i guess it was around 2014 but i never had the time to dig really deep into it. ~4 weeks ago i started to write my game engine (not the first time haha) but in D, and im so extremely amazed how frictionless this whole process was so far. I dont understand why this language hasnt more widespread adoption, its awesome <3 greetings! ps.: 400 unit tests so far, i love this! https://www.youtube.com/watch?v=unZW1Bqin5cLooks like a fun project. Great work!
Apr 06
On Monday, 6 April 2026 at 08:47:01 UTC, Kapendev wrote:On Saturday, 4 April 2026 at 20:14:23 UTC, Andi wrote:it totally is! the only issue i have is with vscode + code-d. its less usable than im used to from other IDEs/languages. do you have a suggestions for me on how i could improve that situation or is that just something i have to deal with (the D tax :P ) im using github copilot for autocomplete and refactoring help, so it hides some of the shortcomings.hi everyone. im a big fan of D since uh, i guess it was around 2014 but i never had the time to dig really deep into it. ~4 weeks ago i started to write my game engine (not the first time haha) but in D, and im so extremely amazed how frictionless this whole process was so far. I dont understand why this language hasnt more widespread adoption, its awesome <3 greetings! ps.: 400 unit tests so far, i love this! https://www.youtube.com/watch?v=unZW1Bqin5cLooks like a fun project. Great work!
Apr 08
On Wednesday, 8 April 2026 at 14:00:42 UTC, Andi wrote:it totally is! the only issue i have is with vscode + code-d. its less usable than im used to from other IDEs/languages. do you have a suggestions for me on how i could improve that situation or is that just something i have to deal with (the D tax :P ) im using github copilot for autocomplete and refactoring help, so it hides some of the shortcomings.I only code with syntax highlighting :) Sometimes I also use grep to find things.
Apr 08
On Wednesday, 8 April 2026 at 19:06:22 UTC, Kapendev wrote:On Wednesday, 8 April 2026 at 14:00:42 UTC, Andi wrote:i remember the times without syntax highlighting :P but im glad about modern IDE features, im getting old remembering all the apis im usingit totally is! the only issue i have is with vscode + code-d. its less usable than im used to from other IDEs/languages. do you have a suggestions for me on how i could improve that situation or is that just something i have to deal with (the D tax :P ) im using github copilot for autocomplete and refactoring help, so it hides some of the shortcomings.I only code with syntax highlighting :) Sometimes I also use grep to find things.
Apr 10









Andi <cadetschimmel gmail.com> 