You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to emscripten-discuss
Hello,
If i program 2D game in javascript and i use some modules to export and import data between C and javascript with webassembly.memory. can this slow the game because every loop the code js must enter and exit the file .wasm to pass data.
And what is the exact function that can import and export data without slowing the game.
Thank you.
Brian Gavin
unread,
May 14, 2019, 10:07:00 AM5/14/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to emscripten-discuss
It is hard to say without giving more details what you are doing. I would work on getting it to work first and if it is slow run the web browser profiler on it. Generally speaking it is probably better to copy larger amounts of data in loop. You may find without any optimization it is already good enough.