|  |  |  | @ -7,7 +7,7 @@ from openpilot.common.basedir import BASEDIR | 
			
		
	
		
			
				
					|  |  |  |  | from openpilot.common.swaglog import cloudlog | 
			
		
	
		
			
				
					|  |  |  |  | from openpilot.system.hardware import HARDWARE | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | DEFAULT_FPS = 60 | 
			
		
	
		
			
				
					|  |  |  |  | DEFAULT_FPS = 30 | 
			
		
	
		
			
				
					|  |  |  |  | FPS_LOG_INTERVAL = 5  # Seconds between logging FPS drops | 
			
		
	
		
			
				
					|  |  |  |  | FPS_DROP_THRESHOLD = 0.9  # FPS drop threshold for triggering a warning | 
			
		
	
		
			
				
					|  |  |  |  | FPS_CRITICAL_THRESHOLD = 0.5  # Critical threshold for triggering strict actions | 
			
		
	
	
		
			
				
					|  |  |  | @ -44,7 +44,7 @@ class GuiApplication: | 
			
		
	
		
			
				
					|  |  |  |  |   def request_close(self): | 
			
		
	
		
			
				
					|  |  |  |  |     self._window_close_requested = True | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   def init_window(self, title: str, fps: int=DEFAULT_FPS): | 
			
		
	
		
			
				
					|  |  |  |  |   def init_window(self, title: str, fps: int = DEFAULT_FPS): | 
			
		
	
		
			
				
					|  |  |  |  |     atexit.register(self.close)  # Automatically call close() on exit | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     HARDWARE.set_display_power(True) | 
			
		
	
	
		
			
				
					|  |  |  | 
 |