SET GLOBAL OBJECT CREATION This command will set the creation mode of the object manager.
Syntax
    SET GLOBAL OBJECT CREATION Creation Mode
Parameters
    Creation Mode
Integer A Creation Mode of 0 is the default, whereas 1 will force the objects to share vertex buffers, 2+3 stops texture sorting, 4+5 uses sort by number and 6+7 sorts by depth.
Returns
This command does not return a value.
Description
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. Additionally, objects that share vertex buffers take longer to delete as they must be disentangled from its buffer on removal.
Example Code
    backdrop off

    set global object creation 0

    for o=1 to 10000

     make object cube o,10

    next o

    sync

    t=timer()

    delete objects 1,10000

    print timer()-t;"ms - press a key"

    wait key

    set global object creation 1

    for o=1 to 10000

     make object cube o,10

    next o

    sync

    t=timer()

    delete objects 1,10000

    print timer()-t;"ms - press a key"

    wait key
See also
BASIC3D Commands Menu Index