mirror of
https://github.com/xcat2/confluent.git
synced 2026-11-21 01:42:22 +00:00
Skip writing image data that matches current
For example, when a cursor is blinking and a recording is happening, we may get the same frame as already on screen. Skip such an update.
This commit is contained in:
@@ -1278,6 +1278,10 @@ def _draw_worker():
|
||||
_draw_node(node, imgdata, errorstr, firstnodename, cwidth, cheight)
|
||||
|
||||
def _draw_node(node, imgdata, errorstr, firstnodename, cwidth, cheight):
|
||||
oldimgdata = imagedatabynode.get(node)
|
||||
if oldimgdata == imgdata:
|
||||
# skip redundant screen update
|
||||
return
|
||||
imagedatabynode[node] = imgdata
|
||||
if node in nodepositions:
|
||||
prep_node_tile(node)
|
||||
|
||||
Reference in New Issue
Block a user