filmov
tv
TypeScript vs C++ for Graphics Programming | Shader Game Engine Development

Показать описание
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.
== [ Related Videos ] ==
== [ 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
== [ Tags ] ==
#suboptimal #glsl #shaders #cpp #typescript
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.
== [ Related Videos ] ==
== [ 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
== [ Tags ] ==
#suboptimal #glsl #shaders #cpp #typescript
Комментарии