draw every loop
							parent
							
								
									a55cd83123
								
							
						
					
					
						commit
						b93945c51b
					
				|  | @ -77,8 +77,6 @@ namespace MoonWorks | ||||||
| 
 | 
 | ||||||
|                 accumulator += frameTime; |                 accumulator += frameTime; | ||||||
| 
 | 
 | ||||||
|                 bool updateThisLoop = (accumulator >= timestep); |  | ||||||
| 
 |  | ||||||
|                 if (!quit) |                 if (!quit) | ||||||
|                 { |                 { | ||||||
|                     while (accumulator >= timestep) |                     while (accumulator >= timestep) | ||||||
|  | @ -95,10 +93,7 @@ namespace MoonWorks | ||||||
| 
 | 
 | ||||||
|                     double alpha = accumulator / timestep; |                     double alpha = accumulator / timestep; | ||||||
| 
 | 
 | ||||||
|                     if (updateThisLoop) |                     Draw(timestep, alpha); | ||||||
|                     { |  | ||||||
|                         Draw(timestep, alpha); |  | ||||||
|                     } |  | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue