Posted: Sat May 02, 2020 9:40 am Post subject: How much memory should I alloc?
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?
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.
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