20.07.2012, 15:25
Hi, and thanks for taking the time to look at my thread. I'm currently developing my own gamemode (roleplay gamemode, specifically) and it's actually coming along rather well.
My question is, under the OnPlayerUpdate callback, would there be a big performance loss if I updated the PlayerData as shown below on each tick, and if so would there still be this performance loss?
My question is, under the OnPlayerUpdate callback, would there be a big performance loss if I updated the PlayerData as shown below on each tick, and if so would there still be this performance loss?
Код:
public OnPlayerUpdate(playerid) { ... PlayerData[playerid][pHealth] = GetPlayerHealth(playerid); PlayerData[playerid][pFoo] = bar; PlayerData[playerid][pVar] = val; ... return 1; }