LibreSplit icon indicating copy to clipboard operation
LibreSplit copied to clipboard

Auto Splitters: Add optional cache for memory mappings

Open EXtremeExploit opened this issue 9 months ago • 0 comments

Mainly an experimental feature (i think values 0 and 1 shouldnt be experimental since i havent seen any problem with them) i liked to see for some games that dont have a fixed game state update rate where a lot of reads happen and its VERY important to have a super accurate timer. More info is included in the docs

Performance

Performance is taken from 150 samples on a script that reads on the same module 10 times. Numbers are in microseconds

mapsCacheCycles Average min max
0 (default) 8555 6850 15930
1 1148 948 3934
2 631 122 1417

Notes:

  • Because values higher than 1 make some cycles completely cached the results oscillate between completely cached and 1 cache missed like this: image

  • Also i added the documentation for getPID on the documentation

  • And an extra check for type string in case the user specifies (or doesnt) an invalid string size

EXtremeExploit avatar May 13 '24 18:05 EXtremeExploit