8000 Increasing time gap in flow module · Issue #12 · britzl/ludobits · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Increasing time gap in flow module #12
Closed
@MinchukSergei

Description

@MinchukSergei

In flow module while creating new instance of timer you use 0.016 delay.

After a little test:

init function:

timer.delay(0.016, true, function(self, handler, dt)
  timer_time = timer_time + dt
  print('timer: ' .. timer_time)
end)

update function:

update_time = update_time + dt
print('update: ' .. update_time)

The difference between timer_time and update_time keeps growing:
image

In other modules you using timer.delay(0... and in this case the gap is gone:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0