rigidbody rb_geo;
- /* TODO Maybe make this less hardcoded */
+ /* TODO Maybe make this less hardcoded...
+ * im on it, boss*/
mdl_submesh sm_geo_std_oob, sm_geo_std, sm_geo_vb,
sm_foliage_main, sm_foliage_alphatest,
sm_graffiti, sm_subworld, sm_terrain;
- /*
- * Allocated AFTER all previous buffers are done
- * --------------------------------------------------------------------------
- */
-
- struct instance_cache
- {
- mdl_context *mdl;
- u32 pstr_file;
- }
- instance_cache[32];
- u32 instance_cache_count;
}
world;
/* Allocate dynamic world memory arena */
u32 max_size = 72*1024*1024;
- world.dynamic_vgl = vg_create_linear_allocator( vg_mem.rtmemory, max_size );
- for( u32 i=0; i<72*1024*1024; i++ )
- ((u8 *)world.dynamic_vgl)[i] = 0xfe;
+ world.dynamic_vgl = vg_create_linear_allocator( vg_mem.rtmemory, max_size,
+ VG_MEMORY_SYSTEM );
}
VG_STATIC void world_update( v3f pos )