Jump to content


Photo

Memory Dll V2.1 Final


  • Please log in to reply
14 replies to this topic

#1 andrewmc

andrewmc

    GMC Member

  • New Member
  • 440 posts

Posted 01 August 2005 - 04:44 PM

Memory DLL

This dll is helpful for apps/games that would like to know the user's total ram, % of ram being used, and other in-depth memory values.

Features

- % of physical memory used
- total physical memory (in MB)
- free physical memory (in MB)
- used physical memory (in MB)

- total page file (in MB)
- free page file (in MB)
- used page file (in MB)

- total virtual memory (in MB)
- free virtual memory (in MB)
- used virtual memory (in MB)

- mem_MBtoGB (see game info)
- mem_MBtoKB (see game info)
- mem_MBtoByte (see game info)

Notes

This is probably the most in-depth memory dll ever created for Game Maker, and made with C++. Check out the example, other than using all of the functions it shows you how you can draw the % of physical memory used with a rectangle. There is also a graph example in v2.1, which was made by coderchris (awesome work). The graph is very nice and very easy to scale/move.

This is (hopefully) the final version, unless when a new version of GM comes out it needs porting.

Download
Here

Edited by andrewmc, 02 August 2005 - 02:13 AM.

  • 0

#2 msoft

msoft

    GMC Member

  • New Member
  • 54 posts

Posted 01 August 2005 - 04:54 PM

where's the link to the dll? i can't see a link!!!
  • 0

#3 andrewmc

andrewmc

    GMC Member

  • New Member
  • 440 posts

Posted 01 August 2005 - 05:10 PM

where's the link to the dll? i can't see a link!!!

<{POST_SNAPBACK}>


Haha oops, I added the link to the bottom of my 1st post.
  • 0

#4 Matt13

Matt13

    GMC Member

  • New Member
  • 580 posts
  • Version:Unknown

Posted 01 August 2005 - 06:36 PM

Pretty nice functions, but I don't see a use for myself using it at the moment.

- Matt
  • 0

#5 andrewmc

andrewmc

    GMC Member

  • New Member
  • 440 posts

Posted 01 August 2005 - 07:14 PM

Pretty nice functions, but I don't see a use for myself using it at the moment.

- Matt

<{POST_SNAPBACK}>


Thanks for the comment. I was thinking about making an app that is a bar locked to one side of the screen that constantly graphs ram usage. Also it would be nice to use if you think your game has a system requirement for ram and want to check if the user's pc meets it, or if your making an app that needs to display it. There really are many uses, but of course I don't see everyone using it.
  • 0

#6 Chirantha

Chirantha

    GMC Member

  • New Member
  • 502 posts

Posted 01 August 2005 - 07:23 PM

This what I need Credits given!!! :D
  • 0

#7 andrewmc

andrewmc

    GMC Member

  • New Member
  • 440 posts

Posted 01 August 2005 - 07:43 PM

This what I need Credits given!!! :wacko:

<{POST_SNAPBACK}>


Nice, look out for my new cpu dll soon :D
  • 0

#8 Scooternew

Scooternew

    GMC Member

  • New Member
  • 1325 posts

Posted 01 August 2005 - 07:58 PM

This would be very useful as a little "side program". What you should do it put the dll into a GM program which displays everything very nicely. Then in a real game, someone can use "execute_shell" and then execute the program to see how all of the memory/etc.
  • 0

#9 coderchris

coderchris

    GMC Member

  • New Member
  • 332 posts

Posted 01 August 2005 - 10:05 PM

Neat little dll you have here :D
  • 0

#10 andrewmc

andrewmc

    GMC Member

  • New Member
  • 440 posts

Posted 02 August 2005 - 12:25 AM

Thanks for the good remarks. v2 is now out!

Edited by andrewmc, 02 August 2005 - 01:18 AM.

  • 0

#11 andrewmc

andrewmc

    GMC Member

  • New Member
  • 440 posts

Posted 02 August 2005 - 01:55 AM

Sorry to bump but v2.1 final is here, with an awesome graph contributed by coderchris!
  • 0

#12 petersvp

petersvp

    GMC Member

  • GMC Member
  • 129 posts

Posted 15 December 2007 - 04:47 AM

I am ALYAYS using this while developing my games, to optimize them. However, I will remove all that stuff from tthe final public release. But thanks for this! :ph34r:
  • 0

#13 eltantillo

eltantillo

    GMC Member

  • GMC Member
  • 416 posts
  • Version:GM:Studio

Posted 18 December 2007 - 04:01 AM

really nice dll, this will help me a lot for my game progress ^^

Thanks.
  • 0

#14 ThePC007

ThePC007

    Chickenator

  • GMC Member
  • 1062 posts
  • Version:GM:Studio

Posted 11 November 2012 - 09:07 PM

Link is broken. D:
  • 0

#15 famous

famous

    GMC Member

  • GMC Member
  • 170 posts
  • Version:Unknown

Posted 20 November 2012 - 10:36 AM

Take a look at MemoryKit (DLL or GEX+Example for GamMaker 8.0). I provides these Functions too, also the functionality of CleanMem and a small Dwm API (Aero Glass).
  • 0
An oversized signature with elements unreadable in light theme: