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 Simbol edited

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

1 comment
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 answered tiberiu11 commented

Hello @EPellissier ,

Is there any news on WASM multithreading? Thank you.

2 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 ·

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.