]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
changed default gl_vbo from 1 to 3 to try to avoid stalls on certain ATI
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 7 May 2008 07:25:00 +0000 (07:25 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 7 May 2008 07:25:00 +0000 (07:25 +0000)
cards, does not seem to have any significant effect on NVIDIA
performance either way (1 is faster on Radeon HD though, if it works)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8280 d7cf8633-e32d-0410-b094-e92efae38249

gl_backend.c

index 8e04ea242087673d66d51052ecf49917bc646540..fa0aba57999ad42dfa2d22200b134a8cb3826a27 100644 (file)
@@ -15,7 +15,7 @@ cvar_t gl_polyblend = {CVAR_SAVE, "gl_polyblend", "1", "tints view while underwa
 cvar_t gl_dither = {CVAR_SAVE, "gl_dither", "1", "enables OpenGL dithering (16bit looks bad with this off)"};
 cvar_t gl_lockarrays = {0, "gl_lockarrays", "0", "enables use of glLockArraysEXT, may cause glitches with some broken drivers, and may be slower than normal"};
 cvar_t gl_lockarrays_minimumvertices = {0, "gl_lockarrays_minimumvertices", "1", "minimum number of vertices required for use of glLockArraysEXT, setting this too low may reduce performance"};
-cvar_t gl_vbo = {CVAR_SAVE, "gl_vbo", "1", "make use of GL_ARB_vertex_buffer_object extension to store static geometry in video memory for faster rendering"};
+cvar_t gl_vbo = {CVAR_SAVE, "gl_vbo", "3", "make use of GL_ARB_vertex_buffer_object extension to store static geometry in video memory for faster rendering, 0 disables VBO allocation or use, 1 enables VBOs for vertex and triangle data, 2 only for vertex data, 3 for vertex data and triangle data of simple meshes (ones with only one surface)"};
 
 cvar_t v_flipped = {0, "v_flipped", "0", "mirror the screen (poor man's left handed mode)"};
 qboolean v_flipped_state = false;