It may seem strange request but I am controlling my gameloop through system.getTimer and then calculating the time between the last iterations to ensure the main loop is optimised and as smooth as possible. So i am doing something like this:
[lua]tPrevious = system.getTimer()
– then in game loop
local tDelta = event.time - tPrevious
– Update the previous variable for the next time its called
tPrevious = event.time[/lua]
I could do a really clunky calculation and determine the length of system time each time its paused and then subtract from the overall delta but this seems very hacky.
I’m sure as always there is a better way of handling this so would be very pleased to here
J [import]uid: 103970 topic_id: 22413 reply_id: 322413[/import]