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 


How much memory should I alloc?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
MichaelLee01
Cheater
Reputation: 0

Joined: 07 Apr 2020
Posts: 37

PostPosted: Sat May 02, 2020 9:40 am    Post subject: How much memory should I alloc? Reply with quote

By Aob injection default,cheat engine alloc $1000 memory,
If I write a Inf_ammo Hack,should I change the value?how about a teleport script?
In what circumstances do I need to inc of dec the value?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4704

PostPosted: Sat May 02, 2020 10:48 am    Post subject: Reply with quote

4096 (0x1000) bytes of memory is a lot. That could fit around 400 - 1200 instructions, which is more than sufficient for most scripts.
The only time you might want to increase it is if you're logging data using a code injection, in which case you'll want a sufficiently large buffer to hold that data. Use math to figure out how big it should be, and even then, take precautions against buffer overflow in your code.

Decreasing it won't really help either, since virtual memory is managed on a page granularity. Each page is 4096 bytes, so if you specify anything off that alignment, it'll be rounded up to the nearest page boundary.

Additional allocs increasing the total memory allocated won't matter too much since VirtualAlloc allocates memory on a granularity of 64KiB (0x10000).

_________________
I don't know where I'm going, but I'll figure it out when I get there.
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 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