summaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
authorPeter Wu <lekensteyn@gmail.com>2014-01-12 19:47:46 +0100
committerPeter Wu <lekensteyn@gmail.com>2014-01-12 19:47:46 +0100
commit1ce5f6dc78e4c1636b89338bd428c2b6830b9189 (patch)
tree459131fccead48232a825c9cbf99648af69182b1 /run.sh
parentcc500dd153608caa4c6ada41ee8a2906b714f1fb (diff)
download2iv60-robots-1ce5f6dc78e4c1636b89338bd428c2b6830b9189.tar.gz
Workaround for slow HW rendering
GLJPanel thinks it is a great idea to use glReadPixels. The Intel i965 DRI driver thinks otherwise and does no get more than 2 FPS on a i5-460M CPU (HD Graphics). With Mesa software rendering (LIBGL_ALWAYS_SOFTWARE=1), the performance gets stuck on 20 FPS or something. Unfortunately, the software renderer crashes since Mesa 10[1]. This workaround improves performance by replacing GLJPanel by GLCanvas as mentioned in the Jogamp wiki[2]. FPS now caps on 30 (but this can be bumped to 42 by changing Base.FPS to 60). [1]: https://bugs.freedesktop.org/show_bug.cgi?id=72926 [2]: http://jogamp.org/wiki/index.php/Using_JOGL_in_AWT_SWT_and_Swing
Diffstat (limited to 'run.sh')
0 files changed, 0 insertions, 0 deletions