Sims

The sim engine

Every sim here runs on SimulationCraft, the open-source simulator for World of Warcraft, built to run in your browser. It is free software under the GNU General Public License, version 3, and so is this build of it: everything you need to make it yourself is on this page.

Version
Our SimulationCraft fork, branch wowhub-healer, commit 555d948
Game data
12.1.5.70783
What we changed
Two things. We added healing sims: raid members who take damage shaped like real fights, and every healer spec checked against top players’ Warcraft Logs, for raids and Mythic+. And a browser build has no threads, while SimulationCraft normally reads the gear sets it compares (its profilesets) on a thread of their own, so a small patch reads them all before the sim starts. Damage sims are SimulationCraft’s own.
How it is built
Compiled to WebAssembly with Emscripten, without the test-realm data. Your browser runs one copy per CPU thread and splits the work between them.
The patch
diff --git a/engine/sim/profileset.cpp b/engine/sim/profileset.cpp
index a7d0631..b50cc20 100644
--- a/engine/sim/profileset.cpp
+++ b/engine/sim/profileset.cpp
@@ -698,6 +698,13 @@ void profilesets_t::initialize( sim_t* sim )
 
   m_init_index = sim -> profileset_map.cbegin();
 
+#if defined( __EMSCRIPTEN__ ) && !defined( __EMSCRIPTEN_PTHREADS__ )
+  // wowhub: browser builds have no threads, so parse every profileset up front
+  if ( ! parse( sim ) )
+  {
+    sim -> cancel();
+  }
+#else
   for ( int i = 0; i < sim -> profileset_init_threads; ++i )
   {
     m_thread.emplace_back([ this, sim ]() {
@@ -707,6 +714,7 @@ void profilesets_t::initialize( sim_t* sim )
       }
     } );
   }
+#endif
 }
 
 void profilesets_t::cancel()