@Codger
Thanks for running some tests. I'm using the 3DWS 'Industrial complex' level in the tests which currently has over 3270 objects. A lot of these are various model meshes or clones of such, not simple primitives, so maybe that's making a difference. Currently I see an increase of about 7 fps by using this command. Not huge but useful with a level that is already pushing the engine regarding fps.
Like you I see my application exe taking about 50%+ cpu during the exiting phase.
Quote: "Do you have any documentation on this command I was unable to locate any"
Again, undocumented in DGDK but DBPro has the following:
Quote: "
This command will set the creation mode of the object manager. A Creation Mode of zero is the default, whereas a value of one will force the objects to share vertex buffers where possible. Vertex buffers are the internal memory resource the engine uses to store all geometry data before it is rendered to the screen. By sharing vertex buffers, you can gain performance on some 3D cards, but not others. By default vertex buffers are not shared for the sake of widest compatibility, better generic performance and less
prone to buffer overruns.
"
It does indicate it's graphics card dependant so not everyone may benefit. I'm currently running a Gainward 7800GS+ (which is actually the 7900 gpu running on AGP).
I may be missing something here, but by sharing vertex buffers I'd have thought that would have made cleaning up afterwards actually faster not slower!
No matter how good your code is, someone will improve on it