Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

However, I'm not insane enough to imagine that the whole game could be written in JS - that would just be stupid. HoweverBut, there are large chunks of the C++ code for which performance is non-critical, primarily because most code gets called due to a state change, rather than constantly whilst in that state. Code that's called only occasionally doesn't need to be high performance - it could be bloaty ad horrible and yet still not have any adverse effects on the game. So identifying where and when to use JS vs. C++ is going to be a key goal of my experiments.

Proof of concept

Over the next two months, I plan on chipping away at a JS proof of concept that will show how a great deal of the C++ code relating to droids can be ported over to JS. As I'm doing this in my spare time, don't expect results any time soon!

...