plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.


Please take a moment to read the platform’s guidelines before you get started!


question

Simbol avatar image
Simbol asked tiberiu11 commented

About WASM and threads

Hello Guys,

This might be a really silly question, but I want to understand and be sure about something regarding MSFS + WASM thread management.

I understand WASM is single threaded at the moment, however I guess this is only per individual WASM module? in other words if I create multiple WASM modules for an aircraft, would each of them run on it's separate thread?

Or we are saying only 1 thread of MSFS will be handling all WASM modules for a particular aircraft?

Thanks in advance,

Simbol

gaugeswasm
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

EPellissier avatar image
EPellissier answered tiberiu11 commented

Hi there,

Right now all WASM modules run on the main thread - this will be changed when WASM multithreading is made available but we might add an intermediate stage where multiple modules are run on different threads (not 100% sure about this yet).

Best regards,

Eric / Asobo

4 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Simbol avatar image Simbol commented ·

Thanks Eric,


Any rough ETA? It would help me to decide how to proceed with a project.

Regards,

Simbol

2 Likes 2 ·
tiberiu11 avatar image tiberiu11 commented ·
Hello @EPellissier ,


I don't want this question to get side tracked, but I have been wondering if there is any news on WASM multi threading?


0 Likes 0 ·
EPellissier avatar image EPellissier ♦♦ tiberiu11 commented ·

@tiberiu11,

Apologies for the lack of response - there's nothing we can share yet on this topic which is still WIP.

Best regards,

Eric / Asobo

1 Like 1 ·
tiberiu11 avatar image tiberiu11 EPellissier ♦♦ commented ·
Thank you @EPellissier , this is totally understood. Is there any any chance a rough ETA on this feature?
0 Likes 0 ·
tiberiu11 avatar image
tiberiu11 answered HybridNZ commented

Hello @EPellissier ,

Is there any news on WASM multithreading? Thank you.

5 comments
10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

EPellissier avatar image EPellissier ♦♦ commented ·
It's still in the pipeline but no ETA yet.

Best regards,

Eric / Asobo

0 Likes 0 ·
tiberiu11 avatar image tiberiu11 EPellissier ♦♦ commented ·
Thank you @EPellissier
0 Likes 0 ·
tiberiu11 avatar image tiberiu11 EPellissier ♦♦ commented ·
Hello @EPellissier ,


As SU12 has been recently released, is there any update on the WASM multi threading? Such a feature should improve performance across the board, in the end, the end customer will have the benefit of it. Thank you.


0 Likes 0 ·
cptalpdeniz avatar image cptalpdeniz tiberiu11 commented ·
We will probably not have it for another 2 years
-1 Like -1 ·
Show more comments

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 19.1 MiB each and 23.8 MiB total.