From 6cc4560cdc2781a445be274d7c520eed8b4eb264 Mon Sep 17 00:00:00 2001 From: "BADIM-PC\\Vadim" Date: Mon, 22 Jan 2018 16:35:19 +0300 Subject: [PATCH] Use WebAssembly instead ASM.JS #515 --- Makefile | 3 +++ src/studio.c | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9ca5e09..0ad4e13 100644 --- a/Makefile +++ b/Makefile @@ -296,6 +296,9 @@ $(TIC80_DLL): $(TIC80_O) emscripten: $(EMS_CC) $(SOURCES) $(TIC80_SRC) $(OPT) $(INCLUDES) $(EMS_OPT) $(EMS_LINKER_FLAGS) -o build/html/tic.js +wasm: + $(EMS_CC) $(SOURCES) $(TIC80_SRC) $(OPT) $(INCLUDES) $(EMS_OPT) -s WASM=1 $(EMS_LINKER_FLAGS) -o build/html/tic.js + mingw: $(DEMO_ASSETS) $(TIC80_DLL) $(TIC_O) bin/html.o bin/res.o $(CC) $(TIC_O) bin/html.o bin/res.o $(TIC80_A) $(OPT) $(INCLUDES) $(MINGW_LINKER_FLAGS) -o $(MINGW_OUTPUT) diff --git a/src/studio.c b/src/studio.c index 4321986..00c07e3 100644 --- a/src/studio.c +++ b/src/studio.c @@ -2805,9 +2805,6 @@ static void emstick() } else emscripten_set_main_loop_timing(EM_TIMING_SETTIMEOUT, delay); - - if(studio.missedFrames > 0) - studio.missedFrames--; } #endif