2
0
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:
Jarrod Johnson
2026-10-26 09:32:42 -04:00
parent c192fff69a
commit 6426a081c0
+4
View File
@@ -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)