how to enable hardware buffer

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
gtimworks
Posts: 21
Joined: Sun Nov 03, 2013 8:07 pm

how to enable hardware buffer

Post by gtimworks »

My understanding is that I don't need to do anything at the application level to enable hardware buffer (VBO). If I use the geometry creator to create a mesh the mapping hint will be set to static and the hardware buffer will be used automatically.

However, I set a breakpoint at function createHardwareBuffer() and it is never been hit. Looks like it is not using VBO at all.

I am using the prerelease COGLES2 driver.
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: how to enable hardware buffer

Post by hendu »

There is a minimum threshold, 500 verts by default. You can change that with the setMinHardwareBufferVertexCount call.

That limit is due to VBO switching overhead, for really small meshes it's faster not to use VBO.
Post Reply