I was wondering if it was possible to create a static buffer in the create event, and then add or remove models from the static buffer as needed. Sort of placing them in the buffer "on standby" when they don't need to be changed in any way. This would be great for performance.
Currently, if fauxton_model_add_static() is not called within the game step the buffer is created, the game creates an error popup window saying:
Win32 function failed: HRESULT: 0x80070057
Call: GR_D3D_Device->CreateBuffer at line 296 in file \VertexBuilderM.cpp
(I tracked this down to a vertex_freeze call in load_buffer_maps(), which if removed gives even more errors)
Also, can you give me some info on how to go about making a fauxton_model_REMOVE_static() function? That would be great!
TL;DR Basically I want to add/remove models from a static buffer whenever needed to massively boost performance
Thanks