milliseconds aren't in sync with seconds. The example clock we have includes milliseconds but it's difficult to spot the problem.
Run for example wgpu-shadertoy https://www.shadertoy.com/view/XXGXzK or wgpu-shadertoy https://www.shadertoy.com/view/ll3yWj and you will easily spot it.
Implemented way back in https://github.com/pygfx/wgpu-py/pull/428 and had an issue ever since.
milliseconds aren't in sync with seconds. The example clock we have includes milliseconds but it's difficult to spot the problem.
Run for example
wgpu-shadertoy https://www.shadertoy.com/view/XXGXzK
orwgpu-shadertoy https://www.shadertoy.com/view/ll3yWj
and you will easily spot it.the code in question: (milliseconds are from the
perf_counter()
used byiTime
andiTimeDelta
and not thetime_struct
foriDate
) https://github.com/pygfx/shadertoy/blob/eb14d382a8de5c4e3cc260fac7e8707704fbecf9/wgpu_shadertoy/shadertoy.py#L616-L624I think there are several better solutions, will try a few and hopefully open a PR next week.