Which language should I use for better run time performance for games in Armory? Hex or Rust?
It doesn’t matter, since the code you are typing is going to be compiled to your target’s platform’s language and there is no real/huge difference of run-time performance between Krom and C++, and the speed of html5 is good too.
HTML5 has multi-threading but i don’t think Krom and C++ has multi-threading support or do they? not sure
It looks like C++ ( Kore ) has multi-threading:
I don’t think Krom does right now, but I would think that the potential is there if HTML5 supports it.
Do I have to manually compile Rust to WASM or will it do it all automatically as soon as I click the play button? (sorry I am new I don’t understand much just yet)?
You’ll have to do it manually. Check out this from the docs: Programming Armory in Rust.
Can I summit a suggestion to make it all automatic?
Sure, maybe just sum it up as a full Rust integration feature.
Armory relies on the Haxe language to produce the final product, and Haxe can work in one of several ways. It can produce byte-code directly in some cases, whereas in others it produces source-code (e.g. in C++) that is then compiled using the native SDK for that particular “target.” Everything that you do in Armory is translated into Haxe. Let Haxe do the work of preparing your final game on whatever target you select.
Armory only supports certain targets (now …), but the Haxe language itself supports many more, and for some of these it produces a binary rather than source-code output.
Of course, as you say, this doesn’t mean that you can simply send a particular application to “any target that you want,” especially in the case of something like Armory, since the requisite low-level interfaces (to hardware) do not exist or are not yet implemented in every case. Language designers and “porters” have to build-out the necessary foundations when “porting” something to a new target such that Haxe can then generate for it.