Page 1 of 1

Free ram and processor/video card ID ?

Posted: Mon Nov 27, 2023 11:10 pm
by DigitalDreams
I can see several memory allocation commands but not one to show the current free ram on the system ?

Also is there a command to identify the current processor/video card and possibly their capabilities ?

Thanks in advance...

Re: Free ram and processor/video card ID ?

Posted: Tue Nov 28, 2023 12:46 am
by idle
Syntax

Result.q = MemoryStatus(Type)
Description

Returns the specified memory type information.
Parameters

Type The type of memory to get. It can be one of the following value:
#PB_System_TotalPhysical: the total amount of installed memory, in bytes
#PB_System_FreePhysical : the available memory, in bytes
#PB_System_TotalVirtual : the total virtual memory size, in bytes (Windows only)
#PB_System_FreeVirtual : the available virtual memory size, in bytes (Windows only)
#PB_System_TotalSwap : the total swap memory size, in bytes (Windows and Linux only)
#PB_System_FreeSwap : the available swap memory size, in bytes (Windows and Linux only)
#PB_System_PageSize : the memory page size, in bytes (usually 4KB).

Return value

Returns the specified memory type information.
Supported OS
Don't know about Graphics card without some digging

Re: Free ram and processor/video card ID ?

Posted: Wed Nov 29, 2023 12:08 am
by Olli
It seems that openGL had a function to know this.