$animblocksize: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Preparing page for move. This action was perfomed by a bot under supervision.)
Line 1: Line 1:
{{lang|$animblocksize}}
{{langsp}}
{{This is a|c0|name=$animblocksize}} If this is specified, all the animation data will be written to a '''[[ANI|.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.
If this is specified, all the animation data will be written to a '''[[ANI|.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 <code>nostall</code> option will make the first [[$sectionframes|section]] not demand load but by included in the '''[[MDL|.mdl]]''' file.
The <code>nostall</code> option will make the first [[$sectionframes|section]] not demand load but by included in the '''[[MDL|.mdl]]''' file.
Line 17: Line 17:
*[[$sectionframes]]
*[[$sectionframes]]


[[Category:Modeling]]
__NOTOC__
[[Category:QC Commands|A]]
[[Category:Source]]__NOTOC__

Revision as of 13:17, 9 January 2024

English (en)Translate (Translate)
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.

Icon-Bug.pngBug:In games with support for compressed (repacked) maps, the client will crash when attempting to load on-demand animation data if the content is packed into the BSP.  [todo tested in ?]

Syntax

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

Example

For example in Left 4 Dead 2 modelsrc qc, "general_dest_plaster_set.mdl"

$animblocksize	32 nostall highres

See also