$animblocksize: Difference between revisions
m (Nesciuse moved page $animblocksize/en to $animblocksize without leaving a redirect: Move to proper place) |
Trigger hurt (talk | contribs) m (Fix first line to improve legibility & improved several lines.) |
||
Line 1: | Line 1: | ||
{{LanguageBar}} | {{LanguageBar}} | ||
{{this is a|QC command|name=$animblocksize}} | {{this is a|QC command|name=$animblocksize}} It changes how animation data is stored within the model. | ||
The <code>nostall</code> option will | Normally, all animation data is stored in the <code>[[MDL|.mdl]]</code> file. If this is specified, all the animation data will instead be written to a <code>[[ANI|.ani]]</code> 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 embed the first [[$sectionframes|block]] in the <code>.mdl</code> file. This usually prevents a model from stalling when loaded mid-game, if it has particularly complex animations that otherwise might take some time to load. | |||
{{bug|In games with support for [[BSPZIP#Compression|compressed]] (repacked) maps, the client will crash when attempting to load on-demand animation data if the content is packed into the [[BSP]].}} | {{bug|In games with support for [[BSPZIP#Compression|compressed]] (repacked) maps, the client will crash when attempting to load on-demand animation data if the content is packed into the [[BSP]].}} | ||
==Syntax== | ==Syntax== | ||
$animblocksize (size in K) ["nostall"] | |||
==Example== | ==Example== | ||
Found in {{l4d2}}, "general_dest_plaster_set.mdl": | |||
$animblocksize 32 nostall highres | $animblocksize 32 nostall highres | ||
Revision as of 16:27, 14 July 2024


$animblocksize
is a QC command available in all Source games. It changes how animation data is stored within the model.
Normally, all animation data is stored in the .mdl
file. If this is specified, all the animation data will instead 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 embed the first block in the .mdl
file. This usually prevents a model from stalling when loaded mid-game, if it has particularly complex animations that otherwise might take some time to load.

Syntax
$animblocksize (size in K) ["nostall"]
Example
Found in , "general_dest_plaster_set.mdl":
$animblocksize 32 nostall highres