4 ms·
How are threads handled? The standard Unreal engine isn't single-threaded.
by dmpk2k 13y ago
How are threads handled? The standard Unreal engine isn't single-threaded.
- paraboul 13y agoWeb workers I guess.
- MasterScrat 13y agoEmscripten uses web workers to compile multithreaded code, provided they don't use shared states (which isn't doable in JS).
- iso8859-1 13y agoDo you know where I can find documentation for that?
- ndesaulniers 13y agoThey aren't. There is no 1:1 thread construct in JavaScript for sharing memory between threads. Web workers seem like a solution, but it's incorrect to think that is what's going on here. You could use message passing with web workers, but emscripten currently won't turn a semaphore into web worker code. The Unreal Engine 3 had to support older hardware, single core boxes, which is what the demo is compiled as.