EngineStreamingGetMemorySize: Difference between revisions
Jump to navigation
Jump to search
(Change build number to the correct value) |
(Fix Returns styling) |
||
Line 8: | Line 8: | ||
{{OOP||[[EngineStreaming]]:getMemorySize|memorySize|engineStreamingSetMemorySize}} | {{OOP||[[EngineStreaming]]:getMemorySize|memorySize|engineStreamingSetMemorySize}} | ||
==Returns== | ===Returns=== | ||
The maximum amount of RAM [in bytes] that can be used for streaming. It is always a non-zero positive number. | The maximum amount of RAM [in bytes] that can be used for streaming. It is always a non-zero positive number. | ||
Revision as of 23:20, 25 August 2023
Gets the maximum amount of RAM [in bytes] that can be used for streaming
Syntax
number engineStreamingGetMemorySize()
OOP Syntax Help! I don't understand this!
- Method: EngineStreaming:getMemorySize(...)
- Variable: .memorySize
- Counterpart: engineStreamingSetMemorySize
Returns
The maximum amount of RAM [in bytes] that can be used for streaming. It is always a non-zero positive number.
Example
This example adds a command that can be used to change the streaming memory size, and display the previous value.
addCommandHandler("ssms", function(_, sizeMB) if tonumber(sizeMB) then outputChatbox("The maximum streaming memory available has been changed from " .. math.floor(engineGetStreamingMemorySize() / 1024 / 1024) .. " MB to " .. sizeMB .. " MB") engineStreamingSetMemorySize(tonumber(sizeMB) * 1024 * 1024) -- Convert MB to Bytes else outputChatbox("Please enter a numeric value!") end end, false, false)
Requirements
This template will be deleted.
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