EngineStreamingRestoreMemorySize: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__NOTOC__ {{Client function}} {{New feature/item|3.0160|1.6.0|21874|Restores the maximum amount of RAM [in bytes] that can be used for streaming to the default value}} {{Tip|The function to manipulate the memory size is engineStreamingSetMemorySize}} ==Syntax== <syntaxhighlight lang="lua"> nil engineStreamingSetMemorySize() </syntaxhighlight> {{OOP||EngineStreaming:restoreMemorySize||}} ==Example== This example adds a command that can be used to change the stre...") |
Fernando187 (talk | contribs) (Remove obsolete Requirements section) |
||
Line 19: | Line 19: | ||
end, false, false) | end, false, false) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Engine functions}} | {{Engine functions}} |
Latest revision as of 17:33, 7 November 2024
Restores the maximum amount of RAM [in bytes] that can be used for streaming to the default value
Tip: The function to manipulate the memory size is engineStreamingSetMemorySize |
Syntax
nil engineStreamingSetMemorySize()
OOP Syntax Help! I don't understand this!
- Method: EngineStreaming:restoreMemorySize(...)
Example
This example adds a command that can be used to change the streaming memory size, and display the previous value.
addCommandHandler("rsms", function() local prevMB = math.floor(engineGetStreamingMemorySize() / 1024 / 1024) engineStreamingRestoreMemorySize() outputChatbox("The maximum streaming memory available has been restored to the original value of " .. math.floor(engineGetStreamingMemorySize() / 1024 / 1024) .. " MB [Was " .. prevMB .. " MB]") end, false, false)
See Also
- engineAddImage
- engineApplyShaderToWorldTexture
- engineFreeModel
- engineGetModelFlags
- engineGetModelIDFromName
- engineGetModelLODDistance
- engineGetModelNameFromID
- engineGetModelPhysicalPropertiesGroup
- engineGetModelTextureNames
- engineGetModelTextures
- engineGetModelTXDID
- engineGetModelVisibleTime
- engineGetObjectGroupPhysicalProperty
- engineGetSurfaceProperties
- engineGetVisibleTextureNames
- engineImageGetFilesCount
- engineImageGetFiles
- engineImageGetFile
- engineImageLinkDFF
- engineImageLinkTXD
- engineImportTXD
- engineLoadCOL
- engineLoadDFF
- engineLoadIMG
- engineLoadIFP
- engineLoadTXD
- engineRemoveImage
- engineRemoveShaderFromWorldTexture
- engineReplaceAnimation
- engineReplaceCOL
- engineReplaceModel
- engineRequestModel
- engineResetModelFlags
- engineResetModelLODDistance
- engineResetSurfaceProperties
- engineRestoreAnimation
- engineRestoreCOL
- engineRestoreDFFImage
- engineRestoreModel
- engineRestoreModelPhysicalPropertiesGroup
- engineRestoreObjectGroupPhysicalProperties
- engineRestoreTXDImage
- engineRestreamWorld
- engineSetAsynchronousLoading
- engineSetModelFlag
- engineSetModelFlags
- engineSetModelLODDistance
- engineSetModelPhysicalPropertiesGroup
- engineSetModelVisibleTime
- engineSetObjectGroupPhysicalProperty
- engineSetSurfaceProperties
- engineStreamingFreeUpMemory
- engineStreamingGetUsedMemory