Free ram and processor/video card ID ?

Just starting out? Need help? Post your questions and find answers here.
User avatar
DigitalDreams
User
User
Posts: 18
Joined: Mon Oct 30, 2023 10:50 pm

Free ram and processor/video card ID ?

Post 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...
User avatar
idle
Always Here
Always Here
Posts: 5098
Joined: Fri Sep 21, 2007 5:52 am
Location: New Zealand

Re: Free ram and processor/video card ID ?

Post 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
Olli
Addict
Addict
Posts: 1071
Joined: Wed May 27, 2020 12:26 pm

Re: Free ram and processor/video card ID ?

Post by Olli »

It seems that openGL had a function to know this.
Post Reply