Memory Checking?

BlitzPlus Forums/BlitzPlus Programming/Memory Checking?

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.

AvailVidMem()

Link to the online docs:

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

Sergio.

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.

Cheers guys!