-
-
Notifications
You must be signed in to change notification settings - Fork 464
Description
Description
Feature request: StoreToAddress() for data manipulation as a raw data in memory. Currently StoreToAddress() is mainly designed for code patching as I was told by @asherkin in discord, and it has poor performance when used extensively (pretty slow and unusable in this cases). The main use case of the extensive usage is when you need to work with data structures in memory directly via raw data pointers received from dhook detour or some other way and when the code is called very frequently (i.e. once per tick).
Problematic Code (or Steps to Reproduce)
Can't really provide small code snippet as an example, but that was a problem in here, there's methodmaps that are wrappers for real c structures, and StoreToAddressCustom() there is used as an alternative to default StoreToAddress() that in fact just an asm function. That resulted in speed increase up to ~45 times compared to default StoreToAddress(). The comparison was done using default sm profiler.