Skip to content

Simple Data Oriented Design Project - OOP direct comparison

Notifications You must be signed in to change notification settings

LetMeCode01/DOD-Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

DOD-Project

This simple DOD project highlights different implementations and design decisions between an OOP and DOD approach of generating a large number( >100k, even) of objects of a screen.

First, I started implementing this problem using OOP concepts, the ones that I am most familiar with.

Then, I tried implementing a DOD thinking: I used structured of arrays at first, then added grid spacing and multiplexing, giving me a more optimised cache-friendly code.

As I want to expand on my DOD approach, I will use familiar concepts, such as: Batch processing/SIMD, Object Pooling/Preallocation, Spatial Hashing, Data Compactness, Alignment for vectors etc.

How to run the project

Download the project and make sure to extract it to the desired location. Make sure you have SDL installed. Then, open the .slnx file (I used Microsoft Visual Studio). Enjoy!

🎥 Demo Video

2026-01-28.00-18-53.mp4
image

About

Simple Data Oriented Design Project - OOP direct comparison

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages