Misc #163: Make usage of glFinish() optional

Make usage of glFinish() optional to avoid high CPU usage. (#163)
This commit is contained in:
Richard Grenville
2013-12-26 20:43:06 +08:00
parent 9e053910f2
commit 3e783f3e1e
2 changed files with 13 additions and 2 deletions

View File

@@ -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.