summaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authorRichard Grenville <[email protected]>2013-12-26 20:43:06 +0800
committerRichard Grenville <[email protected]>2013-12-26 20:43:06 +0800
commit0969d7d525ce8e053f9e8e7dd79540570307f477 (patch)
tree442f814fd72bb737bb64aeab159e6a47b8937723 /common.h
parent43b47ec45346c895c5c555d9771fbdfbaca387ff (diff)
downloadtdebase-0969d7d525ce8e053f9e8e7dd79540570307f477.tar.gz
tdebase-0969d7d525ce8e053f9e8e7dd79540570307f477.zip
Misc #163: Make usage of glFinish() optional
Make usage of glFinish() optional to avoid high CPU usage. (#163)
Diffstat (limited to 'common.h')
-rw-r--r--common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/common.h b/common.h
index 71ea8975b..7786f82b8 100644
--- a/common.h
+++ b/common.h
@@ -513,6 +513,9 @@ typedef struct {
bool dbe;
/// Whether to do VSync aggressively.
bool vsync_aggressive;
+ /// Whether to use glFinish() instead of glFlush() for (possibly) better
+ /// VSync yet probably higher CPU usage.
+ bool vsync_use_glfinish;
// === Shadow ===
/// Enable/disable shadow for specific window types.