draw every loop

pull/14/head
cosmonaut 2021-01-26 14:09:10 -08:00
parent a55cd83123
commit b93945c51b
1 changed files with 1 additions and 6 deletions

View File

@ -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,13 +93,10 @@ namespace MoonWorks
double alpha = accumulator / timestep; double alpha = accumulator / timestep;
if (updateThisLoop)
{
Draw(timestep, alpha); Draw(timestep, alpha);
} }
} }
} }
}
private void HandleSDLEvents() private void HandleSDLEvents()
{ {