Open dvidbruhm opened 1 year ago
I tried it on Windows, and it only showed 0. I noticed it does redraw it every time there is a change to the window (e.g. resize, minimize, maximize). Perhaps Fedora is adjusting the window after creation?
Thanks for trying, good to know that it works on Windows. Must be fedora (or Gnome) that does something with the window.
I am trying to draw a sketch that requires to loop only once, but whatever I try the view function is always called twice.
Here is a minimal example:
This prints the frame number twice (
0
and1
) instead of once. Is this normal or am I missing something? I also tried usingLoopMode::loop_ntimes(1)
but it behaves the same.For now my workaround is to check for the frame number and return at the beginning of the view function:
I am running nannou 0.18.1 on Fedora (X11) and rust nightly (but the issue is still present on stable).