mirror of
				https://codeberg.org/ashley/poke
				synced 2025-07-17 16:52:11 +00:00 
			
		
		
		
	make 30 fps
This commit is contained in:
		
							parent
							
								
									645c979c18
								
							
						
					
					
						commit
						7147eeb122
					
				| @ -1898,7 +1898,7 @@ let lastDrawTime = 0; // Timestamp of the last draw request | ||||
| const loop = () => { | ||||
|   const now = performance.now(); | ||||
|   const elapsed = now - lastDrawTime; | ||||
|   if (elapsed >= (1000 / 24)) { | ||||
|   if (elapsed >= (1000 / 30)) { | ||||
|     lastDrawTime = now; | ||||
|     ctx.drawImage(AMvideo, 0, 0, canvas.width, canvas.height); | ||||
|   } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ashley ////
						Ashley ////