Converting Available video memory to MB form

Blitz3D Forums/Blitz3D Programming/Converting Available video memory to MB form

luke101(Posted 2004) [#1]
Hello, I am trying to convert the value that AvailVidMem() gives me to ??MB form. How would I divide this


luke101(Posted 2004) [#2]
and also is there a way to get the Available free ram??


WolRon(Posted 2004) [#3]
1 MB = 1,048,576 Bytes


GfK(Posted 2004) [#4]
This will tell you the amount of available video memory, in MB:
freeVidMemMB# = AvailVidMem() / 1024.0 / 1024.0
As for your other question, I wrote a userlib to report various system resources, which I posted on this site. I've bought an entire new system since and don't have the code any more.

I've tried searching for it, but the search facilities on this site are absolutely abysmal. I just couldn't find it anywhere. Its in here somewhere though. :/


luke101(Posted 2004) [#5]
thank you


GfK(Posted 2004) [#6]
Found it - if you still need it.

http://www.blitzbasic.com/codearcs/codearcs.php?code=842