[Glamor] [PATCH 2/2] vbo: Raise VBO size
Grigori Goronzy
greg at chown.ath.cx
Thu Jun 5 08:38:23 PDT 2014
This reduces CPU overhead due to buffer orphaning, which results in
a small overall performance improvement.
---
src/glamor_vbo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/glamor_vbo.c b/src/glamor_vbo.c
index 2cabca1..82f9ae4 100644
--- a/src/glamor_vbo.c
+++ b/src/glamor_vbo.c
@@ -54,7 +54,7 @@ glamor_get_vbo_space(ScreenPtr screen, int size, char **vbo_offset)
dispatch->glUnmapBuffer(GL_ARRAY_BUFFER);
if (size > glamor_priv->vbo_size) {
- glamor_priv->vbo_size = MAX(65536, size);
+ glamor_priv->vbo_size = MAX(256 * 1024, size);
/* We aren't allowed to resize glBufferStorage()
* buffers, so we need to gen a new one.
--
1.8.3.2
More information about the Glamor
mailing list