summaryrefslogtreecommitdiff
path: root/src/core/window-private.h
diff options
context:
space:
mode:
authorOwen W. Taylor <otaylor@fishsoup.net>2012-11-15 17:49:57 -0500
committerOwen W. Taylor <otaylor@fishsoup.net>2013-02-13 09:48:27 -0500
commit87fe9685b50c81481589b6748c188d152e8f0bd1 (patch)
tree6b1a68225b3e19d0c9b499458dbd5c08ebefc9a7 /src/core/window-private.h
parent2d9b8bb2d05b223581847f9245c96ed296372317 (diff)
downloadmutter-87fe9685b50c81481589b6748c188d152e8f0bd1.tar.gz
Distinguish "no delay" frames from spontaneous drawing
When a client is drawing as hard as possible (without sleeping between frames) we need to draw as soon possible, since sleeping will decrease the effective frame rate shown to the user, and can also result in the system never kicking out of power-saving mode because it doesn't look fully utilized. Use the amount the client increments the counter value by when ending the frame to distinguish these cases: - Increment by 1: a no-delay frame - Increment by more than 1: a non-urgent frame, handle normally https://bugzilla.gnome.org/show_bug.cgi?id=685463
Diffstat (limited to 'src/core/window-private.h')
-rw-r--r--src/core/window-private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/window-private.h b/src/core/window-private.h
index 97b06acc3..676a6ee8b 100644
--- a/src/core/window-private.h
+++ b/src/core/window-private.h
@@ -360,6 +360,11 @@ struct _MetaWindow
* last update the sync request counter */
guint needs_frame_drawn : 1;
+ /* if TRUE, the frame that was just drawn was drawn without any delay
+ * on the client's part and thus is high-priority - if we add delay
+ * we might cause the client to miss it's target frame rate */
+ guint no_delay_frame : 1;
+
/* Note: can be NULL */
GSList *struts;