goat3d

diff goatview/src/goatview.cc @ 103:45a9d493e98c

fixed the input latency issue by calling QWidget::update() instead of QGLWidget::updateGL() update schedules an update instead of redrawing immediately.
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 12 Sep 2015 17:40:02 +0300
parents 0ea2b355bc96
children
line diff
     1.1 --- a/goatview/src/goatview.cc	Sat Sep 12 17:32:12 2015 +0300
     1.2 +++ b/goatview/src/goatview.cc	Sat Sep 12 17:40:02 2015 +0300
     1.3 @@ -27,7 +27,7 @@
     1.4  void post_redisplay()
     1.5  {
     1.6  	if(glview) {
     1.7 -		glview->updateGL();
     1.8 +		glview->update();
     1.9  	}
    1.10  }
    1.11