Remove the emscripten async update timer stuff as its broken af
This commit is contained in:
parent
68a5cfb5ff
commit
352fa9a178
@ -413,23 +413,23 @@ static void Frame()
|
|||||||
SDL_GL_SwapWindow(s_window);
|
SDL_GL_SwapWindow(s_window);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef EMSCRIPTEN
|
// #ifdef EMSCRIPTEN
|
||||||
|
|
||||||
static void Update(void* args)
|
// static void Update(void* args)
|
||||||
{
|
// {
|
||||||
|
|
||||||
// std::cout << "update called" << std::endl;
|
// // std::cout << "update called" << std::endl;
|
||||||
if (can_update && (SDL_GetTicks() - last_update >= 100))
|
// if (can_update && (SDL_GetTicks() - last_update >= 100))
|
||||||
{
|
// {
|
||||||
// std::cout << "calling Frame()" << std::endl;
|
// // std::cout << "calling Frame()" << std::endl;
|
||||||
Frame();
|
// Frame();
|
||||||
}
|
// }
|
||||||
|
|
||||||
emscripten_async_call(Update, nullptr, 100);
|
// emscripten_async_call(Update, nullptr, 100);
|
||||||
// std::cout << "update finished" << std::endl;
|
// // std::cout << "update finished" << std::endl;
|
||||||
}
|
// }
|
||||||
|
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
static void Main() {
|
static void Main() {
|
||||||
if (s_url.empty())
|
if (s_url.empty())
|
||||||
@ -460,7 +460,7 @@ static void Main() {
|
|||||||
|
|
||||||
#ifdef EMSCRIPTEN
|
#ifdef EMSCRIPTEN
|
||||||
emscripten_set_main_loop(Frame, 0, false);
|
emscripten_set_main_loop(Frame, 0, false);
|
||||||
Update(nullptr);
|
// Update(nullptr);
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user