VERTEX BUFFER SIZE: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
Line 4: Line 4:
== Resolution to VERTEX_BUFFER_SIZE ==
== Resolution to VERTEX_BUFFER_SIZE ==


[[image:vertex_buffer_1.jpg|thumb|When compiled, the game crashes because of too many brushes.]][[image:vertex_buffer_2.jpg|thumb|When compiled, the game runs fine, proving too many brushes is the cause.]]This happens when there are too many brushes in your camera view to be rendered and that is what causes your game to crash, bringing up the VERTEX_BUFFER_SIZE error. Try filling areas with larger brushes rather than using smaller ones, which usually just clog up the max amount of brushes the Source engine allows you to render in your camera view. This should fix VERTEX_BUFFER_SIZE but if the problem persists, go over the smaller brushes and see if you can use one larger brush over a few smaller ones.
This happens when a brush/or several brushes are grouped, causing too many verticies to be rendered on one object. To fix the problem, tie these high vertice brushes/grouped brushes to a "func_detail" entity, and that should fix the problem. If the error persists, its most likely that you missed a brush or two, so just go over your map again to checking if there's any others that have a high vertex count.
 


[[Image:Vertex_buffer_error_1.jpg|This is an example of a brush with too many vertices]]


[[Category:Level_Design]]
[[Category:Level_Design]]
[[Category:Modding]]
[[Category:Modding]]
[[Category:Constants]]
[[Category:Constants]]

Revision as of 00:21, 18 February 2009

Template:Wrongtitle The VERTEX_BUFFER_SIZE is the limit on the size of a single vertex buffer. Multiple buffers are rendered per scene, so this isn't a limit that you should ever encounter. If you are hitting it, you've most likely got a bug in your mod's code or content.

Resolution to VERTEX_BUFFER_SIZE

This happens when a brush/or several brushes are grouped, causing too many verticies to be rendered on one object. To fix the problem, tie these high vertice brushes/grouped brushes to a "func_detail" entity, and that should fix the problem. If the error persists, its most likely that you missed a brush or two, so just go over your map again to checking if there's any others that have a high vertex count.

This is an example of a brush with too many vertices