Memory Checking?

BlitzPlus Forums/BlitzPlus Programming/Memory Checking?

Eck(Posted 2003) [#1]
How can you find out the Total Amount of RAM / and how much RAM is free in Blitz, so that you can check if the PC running your game/code has enough memory?

Cheers.


semar(Posted 2003) [#2]
AvailVidMem()

Link to the online docs:

http://www.blitzbasic.com/bpdocs/command.php?name=AvailVidMem&ref=goto

Sergio.


coffeedotbean(Posted 2003) [#3]
I use this, show how much is being used:

UsedMemory#=((TotalVidMem()/1024)-(AvailVidMem()/1024))
Text 10,10,(UsedMemory#/1024)


oh use this to show total memory:

totalmemory()/1024


BTW these show memeory in KB instead of the normal Bytes. 1024kb=1MB.


Eck(Posted 2003) [#4]
Cheers guys!