Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(1 edit)

Hmm the only way I found to add DT doesn't work for functions (the update function), is there another way I haven't found?

EDIT: I came up with my solution. But it doesn't work that well if someone is getting below 40 FPS, above is accurate enough. Anything above 60 FPS is accurate (if I get 200 FPS the update loop will still run at 60 FPS).

So I don’t know much about the python limitations you have but there does appear to be support for high resolution timers.

https://peps.python.org/pep-0564/#annex-clocks-resolution-in-python

Time_ns seasm to be accurate enough and linux and windows to calculate the dt.

It will give you a nano seconds passed that you could covert to seconds.

Not sure if that is helpful. I use the nano time in othe languages all the time for this sort of calculation.