r/gameenginedevs • • Oct 04 '20

Welcome to GameEngineDevs

110 Upvotes

Please feel free to post anything related to engine development here!

If you're actively creating an engine or have already finished one please feel free to make posts about it. Let's cheer each other on!

Share your horror stories and your successes.

Share your Graphics, Input, Audio, Physics, Networking, etc resources.

Start discussions about architecture.

Ask some questions.

Have some fun and make new friends with similar interests.

Please spread the word about this sub and help us grow!


r/gameenginedevs • • 12h ago

šŸ I ported my Vulkan game engine to macOS in one day

41 Upvotes

A friend lent me his MacBook for the month, and I took advantage of the opportunity to port the game engine I wrote for my roguelike deckbuilder Now You’re Cooking! to aarch64 and x86_64 macOS.

I wrote the game engine in Zig; the renderer is built on Vulkan using the strategies I described Fast, Flexible, and Simple Rendering in Vulkan. The engine libraries are open source although I don’t have a good public example project wiring them all together at the moment.

I was able to get the game running day one of having mac access, and then I spent two additional days cleaning up my build process so that I won't need regular access to a mac in the future.

The TLDR is that Zig makes cross compiling easy and MoltenVK/KosmicKrisp are really solid projects, you can read the full post here.


r/gameenginedevs • • 1h ago

D3D11 + C Game / Engine where you pilot mechas to kill demons

2 Upvotes

I made a youtube devlog too. It's not very technical and I mostly only showcase the game because it's meant to be an introductory video.

I don't use LLMs at all.


r/gameenginedevs • • 11h ago

anything you wish you knew before you started?

3 Upvotes

r/gameenginedevs • • 8h ago

Are-Engine SoftwareGPU - Multisystem

Thumbnail
github.com
0 Upvotes

https://github.com/OuroborosCollective/ARE-SOFTWAREGPU-ENGINE : Are-Engine SoftwareGPU : CPU-only software renderer and graphics-compute research engine with tiled rasterization, optional LLVM JIT and reproducible benchmarks and a weights self improving learning Engine [lokal] #gpu #softwaregpu #cpu


r/gameenginedevs • • 6h ago

Are-Engine SoftwareGPU - Multisystem

Thumbnail
github.com
0 Upvotes

Wie eine software gpu in Android umsetzen und das unix port Problem umgehen?


r/gameenginedevs • • 6h ago

I built a small HTML/CSS/JS runtime that paints straight into a Unity D3D12 texture: zero-copy, damage rects, and the bugs a browser solved 20 years ago

Post image
0 Upvotes

Spent about nine months on this, so sharing some details. The goal was simple: I wanted HTML/CSS/JS for game UI, but I didn't want Chromium inside the game. A browser has to render any page on the internet. Game UI only renders my page, which ships with the game. So most of a browser isn't needed: network, origins, history, cookies, process isolation and so on.

What I took: lexbor for HTML parsing, V8 for JS, Yoga for flexbox, Skia with skparagraph (HarfBuzz, ICU) for text and raster. The DOM, the CSS cascade and paint order I wrote myself, around 20k lines of C++20. Own DOM because I need computed style, layout box, dirty bits, listeners and the JS wrapper right on the node, otherwise every frame is hash lookups. Own cascade because lexbor's css module knows about 45 properties, and border-radius, box-shadow, transform, gap etc come out as raw tokens. Funny thing, the cascade ended up the biggest module, 5,800 lines, more than layout and paint together.

There's no copy into Unity. Skia's GrDirectContext is created on Unity's own D3D12 device and command queue (IUnityGraphicsD3D12v8, plugin event with kUnityD3D12GraphicsQueueAccess_Allow). The texture is a committed resource with ALLOW_RENDER_TARGET | ALLOW_SIMULTANEOUS_ACCESS, wrapped in an SkSurface, and C# gets it through Texture2D.CreateExternalTexture. So Skia draws right into the texture the RawImage samples, and sync is just command order on one queue.

The annoying part was resource states. Unity doesn't say anywhere what state it expects an external texture in, and Skia's D3D backend ignores MutableTextureState, so after flush the resource sits in COMMON. With simultaneous access D3D12 promotes it implicitly when Unity samples it and decays it after ExecuteCommandLists. It works, but I only believed it after a run with the debug layer on. That run also found one real bug, a SampleDesc.Quality mismatch from the default fSampleQualityPattern in a Skia struct. One line fix. Zero D3D12 errors now.

Threads: Unity main thread only does the C# API, input and messages. A runtime thread does events, timers, V8, style, layout and records an SkPicture. Unity's submission thread replays the picture into the surface and submits. Between threads there's only the immutable SkPicture (last one wins) and bridge messages. The DOM has to be synchronous from JS (set textContent, read it on the next line), so the V8 isolate lives on the runtime thread only.

What I underestimated was damage tracking. A frame is published only if something changed, and only the changed rect is repainted. The painter remembers where each box was in device pixels and compares with the previous frame, old and new rect both go into the union. 800x600, software raster: an idle menu went from 22.7 ms per frame, with every frame published, to 0 ms and 24 frames out of 301. A HUD with one animated element went from 15.9 ms to 0.115 ms, because it repaints 22x22 instead of the whole view. In our co-op game we then cut the HUD into 11 small views instead of one full-screen view. At 1080p on CPU raster that's 282.6 ms -> 9.7 ms per frame, but texture memory went from 7.9 to 15 MB.

Bugs I still remember:

  • The PLAY text sat outside its button. Yoga measures with trial widths up to a million px, the paragraph stayed laid out at that width, and text-align: center centred it somewhere far to the right. You have to lay the paragraph out again at the final width.
  • A button 245 px wide instead of 149. The anonymous inline box inherited the parent's style and added padding and border a second time.
  • The damage rect was always full screen. kDirtyPaintSelf was never cleared, and under that the damage function returned early on full repaints and didn't save bounds, so on the next frame every box looked new again. That one took me a while.

Also, quite often the test was wrong and not the engine. Negative z-index really does paint above the parent's background (CSS 2.1 Appendix E). I check the spec first now.

Missing: grid, float, calc(), custom properties, @media, ::before/::after, :nth-child, plus table, select, canvas, video and iframe. The fast path is Windows x64 + D3D12 only, other APIs fall back to software raster. No input for world-space UI yet. Pages have no network at all. The repo lists 33 deviations from browsers, e.g. the caret doesn't blink (two repaints a second per field, no thanks) and setTimeout(fn, 0) means next frame, because timers run on the game clock.

310 native tests with pixel goldens, 46 PlayMode tests on a real D3D12 device. v0.9, Apache-2.0.

https://github.com/Rovniy/xploit_game_ui

If you did external D3D12 textures in Unity differently, I'd like to hear how you handled the resource states.


r/gameenginedevs • • 17h ago

Using my custom 2D engine to build surveillance app

1 Upvotes

r/gameenginedevs • • 12h ago

I’ve been working on my own game engine and wanted to share it here

0 Upvotes

I’ve been building a custom engine called Canary over at https://github.com/HylightGames/canary and finally felt like it was in a good enough spot to share.
Still early days and plenty left to iron out, but it’s been a really fun project to put together. Would love to hear any thoughts, feedback, or suggestions if anyone wants to check out the repo!


r/gameenginedevs • • 2d ago

I built a geometry based sound propagation system in my custom engine

128 Upvotes

A precomputed spatial map simulates how sound propagates and reflects off location geometry, creating environment dependent echoes.


r/gameenginedevs • • 2d ago

Snack Engine, A WebGpu Powered Game Engine

11 Upvotes

This is Pillow Cat running inside Snack Engine, A WebGpu powered game engine I’m building with TypeScript & Three.js,. I wanted a small game that would tell me where the engine still needs work. A hand hovering a little too far above a cat’s back is the kind of bug you can spot in half a second.

The petting code lives in the game project and uses the engine’s public JavaScript API. As you move the mouse, the game samples the surface of the cat’s back to angle the palm. Inverse kinematics makes the arm follow, and five contact points under the palm and fingers press and brush the fur. After a few seconds, ā€œPurr Loadingā€ fades in. Keep going for a minute and the cat starts purring.


r/gameenginedevs • • 2d ago

My Game Engine `Zeyrixon` written in C++

Thumbnail
youtube.com
3 Upvotes

So, this is the current state of my game engine Zeyrixon and it's written in C++, can anyone give tips on what to do next? (Other than finishing the AI Controller/Behavior Tree functionality, that's already in the works). Thank you!

Also, it isn't allowing me to put a second link on there, so I'm just going to put the source code link here Zeyrixon Source code


r/gameenginedevs • • 2d ago

Are you making your engine public?

18 Upvotes

r/gameenginedevs • • 2d ago

The Beast 2.2.0 mobile first webgpu engine

Thumbnail maximumroulette.com
0 Upvotes

I posted demo 2 - to show proof of concepts

Used volumetric tex proj, bloom, physics.

https://youtu.be/dO4LYo-zQ-Y?si=3xTlz0bQhXj3vmtk

[2.2.x] New postproccessing


FXAA GRADE MotionBlurPass CloudsVolumetric CloudsVolumetric2 

Networking is now modular/driven: Kurento/Openvidu support Native nodejs singnaling server (npm run dedicated) NETWORK API Level same : NET DRIVE (kurento,node signaling) 

addHeightfield for AMMO ,cannonjs + example addVehicle for AMMO, cannonjs + example Test claude vs chatgpt race gaem with the beast NET:

 // Easy way 
freekyChat.net = activateNet2({ backend: 'webrtc', sessionName: 'beast-room-01', domain: "https://localhost", signalingUrl: 'ws://localhost:2020', media: {audio: true, video: true} }); // or core access: net = new NativeWebRTC({ domain: sessionOption.domain, port: sessionOption.port || 2020, signalingUrl: sessionOption.signalingUrl, sessionName: sessionOption.sessionName, customData: sessionOption.customData, media: sessionOption.media || false, rtcConfig: sessionOption.rtcConfig }); 

carDemo.addProceduralMeshObj({ name: 'car-terrain', position: {x: 0, y: 0, z: -10}, scale: [1, 1, 1], geometryA: { type: 'heightfield', size: 1, segments: terrainColumns - 1, options: { heightData: terrainHeights, columns: terrainColumns, rows: terrainRows, elementSize: terrainElementSize } }, texturesPaths: ['res/icons/editor/chatgpt-gen-bg-inv.webp'], material: {type: 'standard'}, physics: {enabled: false} }); 

await carDemo.matrixPhysics.addHeightfield({ heightData: terrainHeights, columns: terrainColumns, rows: terrainRows, elementSize: terrainElementSize, position: {x: 0, y: 0, z: -10}, friction: 1, name: 'car-terrain' }); 
 
FXAA

r/gameenginedevs • • 2d ago

How I start Making Game Engine

Post image
0 Upvotes

I am unsure how start making game engine, My Vison is HD game engine. I have knowledge of C++, But I am unsure how headers work is like C++. Also, How Can I make Rendering System.


r/gameenginedevs • • 2d ago

I built a free game engine from scratch (early demo) - NEXUS ENGINE

0 Upvotes

I built a free game engine from scratch that I hope will be as powerful as Unity, without the bloat or the licensing nonsense.

Here is what is actually under the hood right now:

  • Custom OpenGL Renderer (C++): Pipeline supporting PBR shading, shadow mapping, bloom, and post processing.
  • Cloth Simulation: Spring-mass/constraint solver tuned with different stiffness and damping presets (silk, cotton, denim) reacting to directional wind fields.
  • Environment & Water: Dynamic weather states (rain, snow, fog), terrain/foliage rendering, and water shaders with wave displacement, reflections, and shoreline foam.
  • Editor & Tooling: Built-in 3D asset browser/hub and cross-platform builds for Windows, macOS, and Linux.

Early test builds are up here if anyone wants to poke around:https://github.com/Sami9889/NEXUS/releases

if you find a bug make a GitHub issue!

(Note: Source code and architecture docs are coming soon once I finish cleaning up the branch—I'll also post a proper video breakdown of the rasterizer pipeline in the next update.)

Dubby sponsors me. Use code SAMI9889 for 10% off at dubby.gg

demo game

r/gameenginedevs • • 2d ago

I started my first game engine in Rust without SDL using Vulkan/ash (No Editor yet/source first)

Thumbnail
github.com
0 Upvotes

r/gameenginedevs • • 2d ago

Azora Engine - Black Sea Scene

Post image
0 Upvotes

11 years of development. One developer. One ambitious vision.

I'm building Azora - a complete ecosystem for application and game development.

  • Azora Language took me 11 years in development.
  • Azora Engine took me about 4 years in development.
  • Azora Studio took me about 2 years in development.

Everything has been built independently in my spare time.

Today, I'm sharing a glimpse of Azora Studio and Azora Engine, a full ECS game engine.

My next milestone is the first public release in 2027.

I'm now leveraging AI agents to accelerate development, improve productivity, and bring Azora closer to its first public release.

I'd love to hear your thoughts!

https://azoralang.org
https://azoraengine.org
https://azorastudio.org
https://azora.dev

#GameDev #GameEngine #Programming #IndieDev #BuildInPublic #Azora


r/gameenginedevs • • 3d ago

LuEngine: UI

3 Upvotes

https://github.com/Rlocksley/LuEngine

LuEngine has now UIScrollList and UIScrollMatrix components with generic entities as List/Matrix elements.

LuEngine/examples/main20.cpp has an example of an UIScrollMatrix with UIButton entities as elements.


r/gameenginedevs • • 2d ago

Im developing a new game making tool

0 Upvotes

Hi All

I'm an old game programmer, now pensioned off. I started game programming on the old Sony Playstation 1 many many years ago. I used to play around with older version of basic and actually loved the simplicity of the language. I am presently building a modern basic dialect on STEROIDS. Please I need feedback Good or bad all valuable to me. http://www.arcbasic.com

Cheers

James (AKA CodeGit)


r/gameenginedevs • • 3d ago

Exploring Real World Biomes in my Micro Voxel Engine - Devlog #1

Thumbnail
youtube.com
11 Upvotes

Been working on this project for about 2 months, and excited to share my progress so far! Some things in life allowed to take a chance, and make the game and engine we have been dreaming about since playing Minecraft for the first time over a decade ago (sheesh, time really flies). It is not much of a "game" yet, but building the groundwork for the engine has been a huge learning experience, and has been quite enjoyable for me.

So far, my goal with the project is to achieve massive scale environments and worlds that feel like they are living. With a fully simulated mix of living biomes where your outside knowledge can actually be applied in the world to help survive, and your actions impact the world around you permanently. For now, it is a fun little walking simulator at the very least.

The current world scale is fully adjustable (depending on what your hardware can support), up to 64km x 64km x 3km for pre-streamed worlds and support for infinite world generation, with currently 8 different Macro-biomes. Currently uses around 3-4 GB, with a 25% upscale to 4K and a 3000m viewing distance.

Voxel scale is 0.1m so my goal is to really push the limits, but tons of challenges with getting memory and performance optimized so far.

Written in C++ and Vulkan, running and recorded on an Nvidia GTX 3060.

If you have any questions about the project, do not hesitate to ask! I would love to dive into any of the technical details or plans for the project.


r/gameenginedevs • • 2d ago

Rate my engine

0 Upvotes

This is my 2d engine im planing to relase soewhere in the middle of 2027. It will be on steam and opensource and bla bla bla... just rate it.