lua signals, processes implemented
This commit is contained in:
@@ -48,14 +48,16 @@ void MainComponent::run()
|
||||
{
|
||||
static wiTimer timer = wiTimer();
|
||||
static double accumulator = 0.0;
|
||||
const double elapsedTime = timer.elapsed() / 1000.0;
|
||||
timer.record();
|
||||
|
||||
wiLua::GetGlobal()->SetDeltaTime(elapsedTime);
|
||||
|
||||
if (frameskip)
|
||||
{
|
||||
accumulator += timer.elapsed() / 1000.0;
|
||||
accumulator += elapsedTime;
|
||||
if (accumulator > applicationControlLostThreshold) //application probably lost control
|
||||
accumulator = 0;
|
||||
timer.record();
|
||||
|
||||
|
||||
while (accumulator >= targetFrameRateInv)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user