Skip to content

Add StoreToAddress() alternative for data manipulation. #1375

@GAMMACASE

Description

@GAMMACASE

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions