Add back main update loop with framerate limit
This commit is contained in:
		
							parent
							
								
									e69f14021a
								
							
						
					
					
						commit
						80df1ee771
					
				
					 4 changed files with 67 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -159,6 +159,10 @@ int rgssThreadFun(void *userdata)
 | 
			
		|||
	/* Start script execution */
 | 
			
		||||
	scriptBinding->execute();
 | 
			
		||||
 | 
			
		||||
#ifdef __EMSCRIPTEN
 | 
			
		||||
	return 0;
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
	threadData->rqTermAck.set();
 | 
			
		||||
	threadData->ethread->requestTerminate();
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue