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
Hi,
I wanted to have the screen contents refreshed after each timer interrupt. I found and tried Event::Refresh inside on_event() function. But somehow, it seems even if I've set autorefresh or fps, only the draw() function is affected. It doesn't seem to reach Event::Refresh at all.
Could you please confirm if using Event::Refresh inside on_event() for Canvas is appropriate for such a situation or something else should be used?
Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I wanted to have the screen contents refreshed after each timer interrupt. I found and tried Event::Refresh inside on_event() function. But somehow, it seems even if I've set autorefresh or fps, only the draw() function is affected. It doesn't seem to reach Event::Refresh at all.
Could you please confirm if using Event::Refresh inside on_event() for Canvas is appropriate for such a situation or something else should be used?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions