aras-p/dod-playground
关于
Sample OOP/ECS/DOD project (C++) for an internal Unity lecture in 2018
开发工具实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文dod-playground
Sample OOP/ECS/DOD project (C++) for an internal Unity lecture in 2018, aimed at junior/future engineers.
This is a super-simple C++ "game" (just a bunch of sprites moving around with very small amount of logic really) I made to show how one might go from a very traditional OOP style GameObject/Component based code to an ECS (Entity Component System) / DOD (Data Oriented Design) based code. In the process making it run 10x faster, initialize 5x faster, and saving 100MB of memory in the process.
Talk slides are here (10MB pdf).
The app playground should work on Windows (uses D3D11, VS2017 project in projects/vs2017/dod-playground.sln) and
macOS (uses Metal, Xcode 9 project in projects/xcode/dod-playground.xcodeproj).
I used some excellent other libraries/resources to make life easier for me here:
- Sokol libraries for application setup, rendering and time functions. zlib/libpng license.
- stb library for image loading. mit/unlicense license.
- Sprites used by "the game" I took from Dan Cook's Space Cute prototyping challenge.
探索相关项目
加载中…