Jump to content


Photo

Cleanmem - A Memory Cleaning Dll


  • Please log in to reply
247 replies to this topic

#221 Debels

Debels

    GMC Member

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

Posted 16 May 2012 - 12:07 AM



Bump

trying to add the dll into GM html5/

Script is giving an error : unknown function.

How to load it inside GM? Through extension?


No, If your trying to use it for HTML5 games you cant!, it only works for .exe games.

You need to put it in the same directory as the project.
You can call cleanmem() all the time you want, but read the first comment that explains when you shouldn't clear memory.

BTW: HTML5 games don't accept dlls, but they accept JavaScript :P


Is there any java script cleaner?

I think not, but you can search on google Java Script Memory Cleaner and see what you get :P
  • 0

#222 mrpeanut188

mrpeanut188

    GMC Member

  • GMC Member
  • 811 posts
  • Version:GM8

Posted 20 June 2012 - 08:33 PM

I made an extension. It automatically initializes and frees the DLL file, and you just have to call cleanmem or cleanmem_get_mem.
Cleanmem Extension on Dropbox
  • 0

#223 PoniesForPeace

PoniesForPeace

    puzzling

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

Posted 21 June 2012 - 08:34 PM

we'll, it knocked off about 90% of memory, but the framerate was still about 25.

Posted Image

Derpy - I DUNNO WAT WENT WRONG
  • 0

#224 Debels

Debels

    GMC Member

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

Posted 21 June 2012 - 09:10 PM

we'll, it knocked off about 90% of memory, but the framerate was still about 25.

Posted Image

Derpy - I DUNNO WAT WENT WRONG


This just cleans some memory, it doesn't give you more fps :P
  • 0

#225 Drara

Drara

    GMC Member

  • GMC Member
  • 294 posts

Posted 21 June 2012 - 10:21 PM

This just cleans some memory, it doesn't give you more fps :P

In fact we know this. But what is then the exact purpose of this if it really doesn't give fps?
I mean, wouldn't the game slow down if there's too much (maybe even all of the physical RAM) of the memory used?

@mrpeanut188 Good idea to make that. It's useful!
  • 0

#226 Debels

Debels

    GMC Member

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

Posted 21 June 2012 - 10:24 PM


This just cleans some memory, it doesn't give you more fps :P

In fact we know this. But what is then the exact purpose of this if it really doesn't give fps?
I mean, wouldn't the game slow down if there's too much (maybe even all of the physical RAM) of the memory used?

@mrpeanut188 Good idea to make that. It's useful!


Lower the Memory usage xD.

Since its not the same a game that uses 20000 KB than a game that uses 10000 KB :P.

This will reduce some lag when your game is killing the users computers xD
  • 0

#227 Dylan93

Dylan93

    GMC Member

  • GMC Member
  • 866 posts
  • Version:GM8

Posted 22 June 2012 - 07:08 PM



This just cleans some memory, it doesn't give you more fps :P

In fact we know this. But what is then the exact purpose of this if it really doesn't give fps?
I mean, wouldn't the game slow down if there's too much (maybe even all of the physical RAM) of the memory used?

@mrpeanut188 Good idea to make that. It's useful!


Lower the Memory usage xD.

Since its not the same a game that uses 20000 KB than a game that uses 10000 KB :P.

This will reduce some lag when your game is killing the users computers xD


I disagree, the game would be faster if it could use the RAM for its content, this DLL makes the game clean its RAM and put it in the Windows Pagefile isntead (or loads it from its own directory) which is much slower than letting it get its information from the RAM.

So yes it does lower RAM usage but for modern computers this isn't needed.
  • 0

#228 TemplarX2

TemplarX2

    GMC Member

  • GMC Member
  • 93 posts

Posted 25 July 2012 - 03:13 PM

Brilliant work. Initially my game was eating up to 200 mb of memory now it's just night. Thanks a lot. You'll be given credits.
  • 0

#229 Lestrade

Lestrade

    GMC Member

  • GMC Member
  • 7 posts

Posted 08 August 2012 - 03:33 PM

Thanks for this great DLL, and thanks for the GEX file, which simplifies things.

One question: currently, quitting my game evokes the error:

___________________________________________
In extension function cleanmem_free:
Error in code at line 1:
external_free(dll);
^
at position 15: Unknown variable dll

I have put "cleanmem(1);" in my Game End event. Can someone explain what I'm doing wrong?
  • 0

#230 Sir

Sir

    Jedi Poodoo

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

Posted 08 August 2012 - 03:43 PM

Thanks for this great DLL, and thanks for the GEX file, which simplifies things.

One question: currently, quitting my game evokes the error:

___________________________________________
In extension function cleanmem_free:
Error in code at line 1:
external_free(dll);
^
at position 15: Unknown variable dll

I have put "cleanmem(1);" in my Game End event. Can someone explain what I'm doing wrong?



You didnt initialize the DLL. Set it some value in a create event.

On a side not, can we have an update for 8.1?

Edited by SirGuy, 08 August 2012 - 03:44 PM.

  • 0

#231 Lestrade

Lestrade

    GMC Member

  • GMC Member
  • 7 posts

Posted 08 August 2012 - 06:47 PM

You didnt initialize the DLL. Set it some value in a create event.


I'm sorry, but I'm not seeing how to do this. Can you please elaborate?
  • 0

#232 Sirosky

Sirosky

    GMC Member

  • GMC Member
  • 1323 posts
  • Version:GM8

Posted 08 August 2012 - 06:58 PM

Just look in the example, there's a script called cleanmem_init() or something like that.

In the create event:
cleanmem_init(0);
  • 0

#233 PHL

PHL

    GMC Member

  • GMC Member
  • 170 posts

Posted 15 August 2012 - 09:47 PM

Debug version returned zero, and still didn't clear any memory.
CM.exe is complete rubbish, it seems to be corrupt, and I can't delete it...thanks for the Trojan, removed.


What exactly does this do?

There's a nice animated picture in the first post, it really describes this much better then we can in words. :skull:


Now you are smiling. I hope you apologized to the original poster for earlier calling hiser(his or her) thing a Trojan.
  • 0

#234 Lightang3l

Lightang3l

    GMC Member

  • GMC Member
  • 851 posts

Posted 01 October 2012 - 11:09 AM

I don't know how people got thous crazy results, 50% less memory and such... their code must have been all over the place or something...

I got 342.228K with cleanmem and 342.102 without it... so yeah, does not work.
Will not be using this, but thanks anyway.
  • 0

#235 Debels

Debels

    GMC Member

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

Posted 01 October 2012 - 12:27 PM

I don't know how people got thous crazy results, 50% less memory and such... their code must have been all over the place or something...

I got 342.228K with cleanmem and 342.102 without it... so yeah, does not work.
Will not be using this, but thanks anyway.


:/, maybe you used it wrong, because i used this dll a lot of times before and my games/programs used 50-75% less memory (which is a good amount) and my game wasn't affected at all (there was no difference when the memory was "cleaned"
  • 0

#236 famous

famous

    GMC Member

  • GMC Member
  • 169 posts
  • Version:Unknown

Posted 01 October 2012 - 04:43 PM

Created DLL like this too. (FreeMemory) 50%? I've tested my DLL wih "Tlighting" and fall from 140+ to 2 MB. Also, you can disable AeroGlass Style - this expands available memory.
  • 0

#237 Lightang3l

Lightang3l

    GMC Member

  • GMC Member
  • 851 posts

Posted 02 October 2012 - 01:01 PM


I don't know how people got thous crazy results, 50% less memory and such... their code must have been all over the place or something...

I got 342.228K with cleanmem and 342.102 without it... so yeah, does not work.
Will not be using this, but thanks anyway.


:/, maybe you used it wrong, because i used this dll a lot of times before and my games/programs used 50-75% less memory (which is a good amount) and my game wasn't affected at all (there was no difference when the memory was "cleaned"


I tried using the extension.

I run "cleanmem()" at room start of every room. Nothing happens. Except getting an error in a random object that has nothing to do with anything...It's not even in the room.

Anyway... using cleanmem_init() will return "not a valid function" while using the gex...

How do you use it?
  • 0

#238 Debels

Debels

    GMC Member

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

Posted 02 October 2012 - 01:21 PM



I don't know how people got thous crazy results, 50% less memory and such... their code must have been all over the place or something...

I got 342.228K with cleanmem and 342.102 without it... so yeah, does not work.
Will not be using this, but thanks anyway.


:/, maybe you used it wrong, because i used this dll a lot of times before and my games/programs used 50-75% less memory (which is a good amount) and my game wasn't affected at all (there was no difference when the memory was "cleaned"


I tried using the extension.

I run "cleanmem()" at room start of every room. Nothing happens. Except getting an error in a random object that has nothing to do with anything...It's not even in the room.

Anyway... using cleanmem_init() will return "not a valid function" while using the gex...

How do you use it?

just call cleanmem_init() with no arguments and when you want to clear the memory clearnmem()
  • 0

#239 Lightang3l

Lightang3l

    GMC Member

  • GMC Member
  • 851 posts

Posted 03 October 2012 - 09:12 AM

just call cleanmem_init() with no arguments and when you want to clear the memory clearnmem()


No luck... random errors again and the memory usage does not flinch...
Doesn't matter anyway, my game only takes up about 350MB of RAM.
  • 0

#240 LestradeTGQ

LestradeTGQ

    GMC Member

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

Posted 04 October 2012 - 05:36 PM

Just wanted to jump in here and say thanks for this DLL, Halo SHG! I have been using this for the past little while in my game Home, which is on Steam. Running the memory test where you press space to clear memory works wonders. On my first gameplay screen, it drops my memory usage from around 795 MB (after initial load) to 12 MB!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users