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