Add back main update loop with framerate limit

This commit is contained in:
Varun Patil 2020-05-07 00:51:18 +05:30
parent e69f14021a
commit 80df1ee771
4 changed files with 67 additions and 2 deletions

View file

@ -191,7 +191,7 @@ void Config::read(int argc, char *argv[])
PO_DESC_ALL;
gameFolder = "game";
fixedFramerate = 40;
fixedFramerate = -1;
syncToRefreshrate = false;
rgssVersion = 1;
defScreenW = 640;
@ -199,6 +199,7 @@ void Config::read(int argc, char *argv[])
enableBlitting = false;
winResizable = false;
windowTitle = "KN_E";
frameSkip = false;
#undef PO_DESC
#undef PO_DESC_ALL

View file

@ -159,6 +159,10 @@ int rgssThreadFun(void *userdata)
/* Start script execution */
scriptBinding->execute();
#ifdef __EMSCRIPTEN
return 0;
#endif
threadData->rqTermAck.set();
threadData->ethread->requestTerminate();