22.07.2012, 02:50
I did some benchmarking for this, here are the results if anyone is interested (Note: VehicleID is the player's vehicle variable):
pawn Код:
// First time
[04:57:18] GetPlayerVehicleID took 262 ms to execute
[04:57:19] VehicleID took 231 ms to execute
// Second time
[04:57:47] GetPlayerVehicleID took 308 ms to execute
[04:57:47] VehicleID took 218 ms to execute
// Third time
[04:57:49] GetPlayerVehicleID took 260 ms to execute
[04:57:49] VehicleID took 215 ms to execute