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
On this page of the site you can watch the video online TypeScript vs C++ for Graphics Programming | Shader Game Engine Development with a duration of hours minute second in good quality, which was uploaded by the user Suboptimal Engineer 21 April 2025, share the link with friends and acquaintances, this video has already been watched 9,601 times on youtube and it was liked by 328 viewers. Enjoy your viewing!