| View previous topic :: View next topic |
| Author |
Message |
Razi Expert Cheater
Reputation: 1
Joined: 17 Jan 2018 Posts: 205
|
Posted: Sun Apr 09, 2023 6:49 am Post subject: How to reduce memory consumption in the trainer? |
|
|
I want to ask about the RAM that the trainer uses.
I made a trainer with several thousand lines of lua code, collectgarbage("collect") is executed once per minute.
A standalone 32-bit trainer (with controls created in the form designer) uses 175-225 MB of RAM, on win xp 32 bit.
A standalone 64-bit trainer uses 300-350 MB of memory. The code: collectgarbage("count") shows that 90 MB of memory is being used. (Perhaps this code does not take into account how much memory the form with controls uses).
1) Is it possible to somehow use only these 90 MB of memory? What needs to be done for this?
For example: standalone trainer with Empty form without code uses 70 MB of memory.
2) How to use less than 70mb?
3) Is it possible to remake/modify the compiler (Exe Trainer Generator) so that the trainer uses less RAM?
4) Suggestion: Can the Exe Trainer Generator for 32-bit trainer insert a dbghelp.dll by checkbox, if it is checked, then insert the dbghelp.dll? And dbghelp checkbox should be enabled/checked by default for 32-bit.
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25859 Location: The netherlands
|
Posted: Sun Apr 09, 2023 11:13 am Post subject: |
|
|
Checking RAM usage is useless. Windows will assign a process RAM when the process needs it and take it away when another process needs it.
anyhow, you can execute this lua code to quickly release the RAM it currently doesn't need:
| Code: |
executeCodeLocal("EmptyWorkingSet", -1)
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
Razi Expert Cheater
Reputation: 1
Joined: 17 Jan 2018 Posts: 205
|
Posted: Sun Apr 09, 2023 5:37 pm Post subject: |
|
|
| Dark Byte wrote: | | Code: | executeCodeLocal("EmptyWorkingSet", -1)
|
|
Thanks a lot.
|
|
| Back to top |
|
 |
|