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
Since this function is usually called often (i.e. once per frame), would it make sense to skip this step if the image hasn't changed (i.e. should_wait == false)? I understand refresh is also called from display and set_position in which case it wouldn't be desirable to skip this step, but this could be mitigated by adding a flat to it, i.e. refresh(force = False) and calling it as refresh(True) from those two spots.
The text was updated successfully, but these errors were encountered:
Looking at the code for
refresh
inviewport
, it seems it will callself._device.display
even when there's nothing to do:luma.core/luma/core/virtual.py
Lines 113 to 127 in 6b69584
Since this function is usually called often (i.e. once per frame), would it make sense to skip this step if the image hasn't changed (i.e.
should_wait == false
)? I understandrefresh
is also called fromdisplay
andset_position
in which case it wouldn't be desirable to skip this step, but this could be mitigated by adding a flat to it, i.e.refresh(force = False)
and calling it asrefresh(True)
from those two spots.The text was updated successfully, but these errors were encountered: