4 ms·
Great post! I'm a huge C++/Anti-GC/Games developer here. Few notes. On performance, most of the time, I'm GPU bound when writing games. In this JavaScript base
by ashcairo 13y ago
Great post! I'm a huge C++/Anti-GC/Games developer here.
Few notes.
On performance, most of the time, I'm GPU bound when writing games. In this JavaScript based game for iOS: http://imgur.com/XQdGKHw,swTBC9T#0 http://imgur.com/XQdGKHw,swTBC9T#0
I'm getting 11ms used up on the CPU and 29ms used up on the GPU: http://imgur.com/XQdGKHw,swTBC9T#1 http://imgur.com/XQdGKHw,swTBC9T#1
That's 11ms using iOS JavaScript which isn't JIT optimised.
Granted CPU will go crazy if I try running advanced Physics using JavaScript, but I tend to push Math intensive functions to C++ using a hybrid approach.
On GC, I'm not a fan, I like managing my memory. However, UnrealEngine, which is super-awesome, has a built in garbage collector. In my experience with it, whenever someone tries to blame its GC for performance/memory abuse, to my dissatisfaction, the problem usually lies elsewhere.
Main reason I've full on switched to the JavaScript world for development is its ability to re-interpret code on the fly. Allowing me to write and tweak, code/ui/design changes in real-time across multiple-devices.