sourcemod icon indicating copy to clipboard operation
sourcemod copied to clipboard

Add `Address` methodmap

Open Wend4r opened this issue 3 years ago • 2 comments

So far, draft. Need tests

Wend4r avatar Oct 13 '22 13:10 Wend4r

Everything works from the first tests

[SM] Plugin methodmap_address_speedtests.smx reloaded successfully.
sm plugins reload methodmap_address_speedtests
L 10/13/2022 - 18:35:45: [methodmap_address_speedtests.smx] Target memory access flags is 0b0011
L 10/13/2022 - 18:35:45: [methodmap_address_speedtests.smx] Start <methodmap Address> memory tests
L 10/13/2022 - 18:35:45: [methodmap_address_speedtests.smx] <methodmap Address> tests done in 0.148277 sec.
L 10/13/2022 - 18:35:45: [methodmap_address_speedtests.smx] 24640000 reads by each <int8>, 12320000 writes by each <int8>
L 10/13/2022 - 18:35:45: [methodmap_address_speedtests.smx] Start <LoadFromAddress() and StoreToAddress()> memory tests
L 10/13/2022 - 18:35:45: [methodmap_address_speedtests.smx] <LoadFromAddress() and StoreToAddress()> memory tests done in 0.156457 sec.
L 10/13/2022 - 18:35:45: [methodmap_address_speedtests.smx] 12320000 reads by each <int8>, 12320000 writes by each <int8>
[SM] Plugin methodmap_address_speedtests.smx reloaded successfully.

methodmap_address_speedtests.zip

Wend4r avatar Oct 13 '22 15:10 Wend4r

Added int16 and int32 to tests.

sm plugins reload methodmap_address_speedtests
L 10/13/2022 - 19:05:51: [methodmap_address_speedtests.smx] Target memory access flags is 0b0011
L 10/13/2022 - 19:05:51: [methodmap_address_speedtests.smx] Start <methodmap Address> memory tests
L 10/13/2022 - 19:05:51: [methodmap_address_speedtests.smx] <methodmap Address> tests done in 0.259314 sec.
L 10/13/2022 - 19:05:51: [methodmap_address_speedtests.smx] 24640000 reads by each <int8>, 12320000 writes by each <int8>
L 10/13/2022 - 19:05:51: [methodmap_address_speedtests.smx] 12320000 reads by each <int16>, 6160000 writes by each <int16>
L 10/13/2022 - 19:05:51: [methodmap_address_speedtests.smx] 6160000 reads by each <int32>, 3080000 writes by each <int32>
L 10/13/2022 - 19:05:51: [methodmap_address_speedtests.smx] Start <LoadFromAddress() and StoreToAddress()> memory tests
L 10/13/2022 - 19:05:51: [methodmap_address_speedtests.smx] <LoadFromAddress() and StoreToAddress()> memory tests done in 0.262618 sec.
L 10/13/2022 - 19:05:51: [methodmap_address_speedtests.smx] 12320000 reads by each <int8>, 12320000 writes by each <int8>
L 10/13/2022 - 19:05:51: [methodmap_address_speedtests.smx] 6160000 reads by each <int16>, 6160000 writes by each <int16>
L 10/13/2022 - 19:05:51: [methodmap_address_speedtests.smx] 3080000 reads by each <int32>, 3080000 writes by each <int32>
[SM] Plugin methodmap_address_speedtests.smx reloaded successfully.

methodmap_address_speedtests.zip

If one of the methods worked incorrectly, the server would crash when RemoveEntity().

Wend4r avatar Oct 13 '22 16:10 Wend4r