summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/utils.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2016-09-14 13:25:13 +0200
committerwm4 <wm4@nowhere>2016-09-14 14:07:21 +0200
commit8f1a889f75fb9ac385de12ff79b97b1e53cf304c (patch)
treed5c9de02ee981206fe1a136b6abb2704a039bc25 /video/out/opengl/utils.h
parent9b6c93e904e0880dc276885dcad35ff6ed4ccfc2 (diff)
downloadmpv-8f1a889f75fb9ac385de12ff79b97b1e53cf304c.tar.bz2
mpv-8f1a889f75fb9ac385de12ff79b97b1e53cf304c.tar.xz
vo_opengl: make the number of PBOs tunable
Also set the number of PBOs from 2 to 3, which should be better for pipelining. This makes it easier to add more in the future.
Diffstat (limited to 'video/out/opengl/utils.h')
-rw-r--r--video/out/opengl/utils.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/video/out/opengl/utils.h b/video/out/opengl/utils.h
index ec54d19b8a..d81599a71f 100644
--- a/video/out/opengl/utils.h
+++ b/video/out/opengl/utils.h
@@ -182,10 +182,12 @@ uint64_t gl_timer_last_us(struct gl_timer *timer);
uint64_t gl_timer_avg_us(struct gl_timer *timer);
uint64_t gl_timer_peak_us(struct gl_timer *timer);
+#define NUM_PBO_BUFFERS 3
+
struct gl_pbo_upload {
GL *gl;
int index;
- GLuint buffers[2];
+ GLuint buffers[NUM_PBO_BUFFERS];
size_t buffer_size;
};