Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Is there a function to free memory

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
SunnyTiTi
How do I cheat?
Reputation: 0

Joined: 23 Apr 2017
Posts: 8

PostPosted: Sun May 13, 2018 7:54 pm    Post subject: Is there a function to free memory Reply with quote

Hello,

My CE uses a lot of memory when using more than 6 hours. I can exit CE and reopen manually to free memory but sometime I can't so is there a lua function to free its memory?

Thanks.



Capture.PNG
 Description:
 Filesize:  7.77 KB
 Viewed:  255 Time(s)

Capture.PNG


Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater
Reputation: 17

Joined: 10 Apr 2015
Posts: 613

PostPosted: Sun May 13, 2018 11:11 pm    Post subject: Reply with quote

If you run or execute CE tables or lua script when using CE then use :

Code:
collectgarbage()


check :

http://luatut.com/collectgarbage.html

_________________
Singapore Sling + Johnnie Walker + Some Peanuts....
Back to top
View user's profile Send private message
SunnyTiTi
How do I cheat?
Reputation: 0

Joined: 23 Apr 2017
Posts: 8

PostPosted: Mon May 14, 2018 5:59 pm    Post subject: Reply with quote

Thanks for your help,

My CE is using about 10GB ram and I tried but it does not work.

Code:

print(collectgarbage("count")) // 1951.703125
a = "123"
print(collectgarbage("count")) // 1951.7900390625
collectgarbage()
print(collectgarbage("count")) // 1950.7197265625


It frees a small memory but not all 10GB.

P.S. I use CE mainly for Speedhack. I have a program which closes and reopens game every a minute.



Capture.JPG
 Description:
 Filesize:  12.11 KB
 Viewed:  210 Time(s)

Capture.JPG


Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater
Reputation: 17

Joined: 10 Apr 2015
Posts: 613

PostPosted: Mon May 14, 2018 6:36 pm    Post subject: Reply with quote

Please check :

https://www.youtube.com/watch?v=HWGeQ__XsiQ
https://forum.cheatengine.org/viewtopic.php?t=540179&sid=12fdd9c87423b800c7fc8a9682fd6a21
https://forum.cheatengine.org/viewtopic.php?t=603183&sid=1574368923d91d3374107ebdc3c10adf

or example single lua script:

Code:
os.execute("del E:\\test\\*.*")


change E:\\test to CE temp folder name

_________________
Singapore Sling + Johnnie Walker + Some Peanuts....
Back to top
View user's profile Send private message
SunnyTiTi
How do I cheat?
Reputation: 0

Joined: 23 Apr 2017
Posts: 8

PostPosted: Tue May 15, 2018 1:30 am    Post subject: Reply with quote

My CE temp folder is C:\Users\xxx\AppData\Local\Temp\Cheat Engine\ and its size is 0. It could be 0 because I do not scan anything, I only use Speedhack.

I just want to free memory on RAM (not on disk) used by CE.

Anyway, thanks you.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 352

Joined: 09 May 2003
Posts: 20505
Location: The netherlands

PostPosted: Tue May 15, 2018 1:55 am    Post subject: Reply with quote

do you use the autoattach function on ce ?

Quote:
I have a program which closes and reopens game every a minute.

ok...

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
SunnyTiTi
How do I cheat?
Reputation: 0

Joined: 23 Apr 2017
Posts: 8

PostPosted: Tue May 15, 2018 6:42 am    Post subject: Reply with quote

Dark Byte wrote:
do you use the autoattach function on ce ?

Quote:
I have a program which closes and reopens game every a minute.

ok...


At first, I turn on autoattach. After you gave me "openProcess" function in lua, I use that function and turned autoattach off.

In both cases, memory that CE used is not be cleaned and it increases about 50MB for every new process.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites