In this video, we go over why I chose C++ over TypeScript for building a shader game engine.
The first reason is that C++ has better libraries for graphics UI development than TypeScript. ImGui comes with all the tools built into the library, while the JS libraries (like Dat.GUI and Tweakpane) are lacking features. It also used by most game dev companies across the industry so there is strong community support.
The second reason is that state-management is easier with ImGui than it is with React. This is because React re-renders when state changes while ImGui re-renders the entire UI every frame. This makes it easier to handle state changes and does not require the use of component life-cycle hooks and on click handlers.
The third reason is that JavaScript is way too slow. I learned about this when reading how Microsoft improved the performance of the TypeScript compiler by 10x by switching to using GoLang.
The fourth reason is that the graphics community uses C++ as the main language of choice.
🎥 YouTube - / suboptimaleng
💻 GitHub - https://github.com/SuboptimalEng
🐦 Twitter - / suboptimaleng
🧵 Threads - https://www.threads.net/@suboptimaleng
📸 Instagram - / suboptimaleng
== [ Related Videos ] ==
Sable Art Style Renderer - • How to Recreate Sable Art Style with Shaders
WebGPU Compute Shader Simulation - • WebGPU Compute Shaders: Coding a Slime Mol...
== [ Timestamps ] ==
00:00 Intro
00:20 Shader Demos
01:37 What is a Shader Game Engine?
02:32 Alternative Game Engines
03:44 TypeScript vs C++
04:06 Professional Experience
04:55 External Libraries
06:17 State Management
07:08 Performance
07:54 Graphics Programming Community
== [ Music Credits] ==
Nujabes - Aruarian Dance
Lee - Rain
Sur cette page du site, vous pouvez voir la vidéo en ligne TypeScript vs C++ for Graphics Programming | Shader Game Engine Development durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Suboptimal Engineer 21 avril 2025, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 9,601 fois et il a aimé 328 téléspectateurs. Bon visionnage!