summaryrefslogtreecommitdiff
path: root/src/openglgraphics.h
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-25 20:06:09 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-07-25 20:12:42 +0200
commit517747b402b92558e98918db8d13b1ae6cf89cae (patch)
tree423b23afce9df8cc5367340046515caf9eee642c /src/openglgraphics.h
parentdd5b4ccecd15be24fd7846e268fba3b400f73685 (diff)
downloadmana-517747b402b92558e98918db8d13b1ae6cf89cae.tar.gz
mana-517747b402b92558e98918db8d13b1ae6cf89cae.tar.bz2
mana-517747b402b92558e98918db8d13b1ae6cf89cae.tar.xz
mana-517747b402b92558e98918db8d13b1ae6cf89cae.zip
Added an option to reduce input lag
Always enabled at the moment.
Diffstat (limited to 'src/openglgraphics.h')
-rw-r--r--src/openglgraphics.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/openglgraphics.h b/src/openglgraphics.h
index a1d78e46..63c32261 100644
--- a/src/openglgraphics.h
+++ b/src/openglgraphics.h
@@ -43,6 +43,16 @@ class OpenGLGraphics : public Graphics
void setSync(bool sync);
bool getSync() const { return mSync; }
+ /**
+ * Sets whether input lag should be reduced.
+ *
+ * This means waiting until the graphics card has finished drawing and
+ * displaying the current frame until continuing towards the next,
+ * possibly at the cost of performance and CPU usage.
+ */
+ void setReduceInputLag(bool reduceInputLag);
+ bool getReduceInputLag() const { return mReduceInputLag; }
+
bool setVideoMode(int w, int h, int bpp, bool fs, bool hwaccel);
bool drawImage(Image *image,
@@ -114,6 +124,7 @@ class OpenGLGraphics : public Graphics
bool mAlpha, mTexture;
bool mColorAlpha;
bool mSync;
+ bool mReduceInputLag;
};
#endif //USE_OPENGL