You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implemented way back in pygfx/wgpu-py#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 or wgpu-shadertoy https://www.shadertoy.com/view/ll3yWj and you will easily spot it.
the code in question: (milliseconds are from the perf_counter() used by iTime and iTimeDelta and not the time_struct for iDate)
Implemented way back in pygfx/wgpu-py#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
)shadertoy/wgpu_shadertoy/shadertoy.py
Lines 616 to 624 in eb14d38
I think there are several better solutions, will try a few and hopefully open a PR next week.
The text was updated successfully, but these errors were encountered: