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

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 characters needed characters left characters exceeded

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

1 Answer

· Write an Answer
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 characters needed characters left characters exceeded

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

Thanks Eric,


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

Regards,

Simbol

2 Likes 2 ·

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 4.8 MiB each and 23.8 MiB total.