Unigine::Memory Class
Header: | #include <UnigineMemory.h> |
Memory Class
Members
static int isInitialized ( ) #
Returns the status of the memory manager.Return value
1 if the memory manager is initialized; otherwise, 0.static void * allocate ( size_t size ) #
Allocates the dynamic memory.Arguments
- size_t size - Size of the allocated memory block.
Return value
Allocated memory block.static void deallocate ( void * ptr ) #
Deallocates the dynamic memory.Arguments
- void * ptr - Pointer to the allocated memory block.
static void deallocate ( void * ptr, size_t size ) #
Deallocates the dynamic memory.Arguments
- void * ptr - Pointer to the allocated memory block.
- size_t size - Size of the allocated memory block.
size_t getHeapUsage ( ) #
Shows the overall amount of allocated memory pools in bytes.Return value
Allocated memory pools in bytes.size_t getMemoryUsage ( ) #
Shows the overall amount of used memory in bytes.Return value
Used memory in bytes.size_t getSystemUsage ( ) #
Shows the overall amount of used system memory in bytes.Return value
Used system memory in bytes.int getNumAllocations ( ) #
Shows overall number of memory allocation operations.Return value
Number of memory allocations.int getNumFrameAllocations ( ) #
Number of memory allocations between calls of this function, which is called each frame by the engine.Return value
Number of memory allocations between calls of this function.The information on this page is valid for UNIGINE 2.18.1 SDK.
Last update:
2024-04-19
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)