$animblocksize: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
Line 13: Line 13:


*[[$bonesaveframe]]
*[[$bonesaveframe]]
 
*[[$sectionframes]]
[[Category:QC Commands|animblocksize]]__NOTOC__
[[Category:QC Commands|animblocksize]]__NOTOC__

Revision as of 10:51, 9 November 2011

If this is specified, all the animation data will be written to a .ani file, and when sequences are needed, the data will be loaded on demand. This is helpful for streaming animation data of "cinematic" physics. The "size in K" is the block size the animations will be grouped into. Sizes between 4K and 64K are fine, though 16K or 32K has better memory fragmentation characteristics.

The nostall option will make the first section not demand load but by included in the .mdl file.

Syntax

$animblocksize (size in K) ["nostall"]

For example (In Left 4 Dead 2 modelsrc qc, "props_destruction/general_dest_plaster_set.mdl"):

$animblocksize 32 nostall highres

See also