ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

DisableVoxelCache

From ModEnc
Jump to navigation Jump to search
Tiberian Dawn The Covert Operations Red Alert Counterstrike Aftermath Tiberian Sun Firestorm HyperPatch Red Alert 2 Yuri's Revenge Ares Generals Zero Hour Tiberium Wars Kane's Wrath
Flag: DisableVoxelCache
File(s): Art(md).ini
Values: Boolean values: yes or no, true or false, 1 or 0
Default: no
Applicable to: VehicleTypes (voxel only), AircraftTypes


Normally the game will create a sprite sheet (renderings) of all the necessary draw angles of a voxel, turning what is notionally a 3D object into 2D for faster drawing. This tag tells the game never to save the rendered result of the voxel in any animation state or rotation, thus there is no cache to speed up drawing it on the next frame.

The developers' original intention seems to have been to reduce memory consumption caused by caching animated voxels. However, it should be noted that disabling voxel caching can cause rather drastic performance drop with large animated voxels, when a substantial amount of them are drawn on screen at once, as they have to be constantly re-rendered without being able use faster cached data.

Unlike in case of DisableShadowCache, where a shadow might significantly diverge from its animated state, not disabling the voxel caching generally will not result in any visual problems.