diff options
author | wm4 <wm4@nowhere> | 2012-09-23 20:28:05 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2012-10-03 03:17:39 +0200 |
commit | d079395c5d33749422e730697092f7d8e2bb3263 (patch) | |
tree | d061231d264d99fe1a8f487ccac05a6401742659 /subopt-helper.c | |
parent | 3611d1bf9ba6f34909108166aaa21deaffc72c57 (diff) | |
download | mpv-d079395c5d33749422e730697092f7d8e2bb3263.tar.bz2 mpv-d079395c5d33749422e730697092f7d8e2bb3263.tar.xz |
vo_opengl: always check GL errors in first 5 frames
Normally, we don't want to call glGetError() all the time, because this
supposedly causes slowdowns. (I could not measure any on Linux with
nVidia binary drivers; maybe it's due to the fact that we have only a
few, expensive calls per frame.)
However, having to ask users to add the "debug" suboption when trying to
diagnose problems is very annoying. Since most errors happen during
initialization only, enabling it for the first 5 frames only is an
interesting compromise.
Diffstat (limited to 'subopt-helper.c')
0 files changed, 0 insertions, 0 deletions