19.04.2010, 15:12
Anyone got a good tip of how I can make my objects load faster? I've set the streaming distance to 500. Should I lower it? If yes, then to what amount?
Originally Posted by [03
Garsino ]
Anyone got a good tip of how I can make my objects load faster? I've set the streaming distance to 500. Should I lower it? If yes, then to what amount? |
If items stream too slowly, lower the tickrate; if CPU usage gets too high, raise the tickrate. |
Originally Posted by Sma_X
Quote:
Quote:
|
Originally Posted by $ЂЯĢ
If you want that objects are aloded faster for players at specific situations you can force them to load faster with Streamer_Update(Ex) without lowering global tickrate and affecting all other streamed elements.
|
Originally Posted by [03
Garsino ]
Quote:
|
StreamerUpdateEx(playerid, x,y,z);
// then there position
SetPlayerPos(playerid, x,y,z);
// then freeze them
TogglePlayerControllable(playerid, 0);
// then a timer to unfreeze them
SetTimerEx("unfreeze", 1000, 0, "i", playerid);
//then your function to unfreeze them
function unfreeze(playerid){
TogglePlayerControllable(playerid, 1);
SendClientMessage(playerid, color, "Object's Loaded.");}
dcmd_anfstunt(playerid,params[])
{
#pragma unused params
if(GetPVarInt(playerid, "gCaged") == 1) return SendClientMessage(playerid, RED, "You Can't Use This Command Because You're Trapped!");
if(PlayerInDM[playerid] == 1) return SendClientMessage(playerid, RED, "You Can Not Use This Command While In A Deathmatch Arena. Use /kill To Exit It.");
else
Streamer_UpdateEx(playerid, 2544.5302734375, -2905.310546875, 439.59332275391);
TogglePlayerControllable(playerid, false);
TelePlayer(playerid, 2544.5302734375, -2905.310546875, 439.59332275391, 0, 0);
LoadTimer[playerid] = SetTimerEx("CustomMapsFreeze", 4*1000, false, "i", playerid);
return 1;
}
Originally Posted by $ЂЯĢ
@Shady91, why would he freeze player? You use Streamer_UpdateEx function with a reason before changing player's position.
|
Originally Posted by [03
Garsino ]
pawn Код:
Without the timer and freezing the player, the objects wont load fast enough. |
dcmd_anfstunt(playerid,params[])
{
#pragma unused params
if(GetPVarInt(playerid, "gCaged") == 1) return SendClientMessage(playerid, RED, "You Can't Use This Command Because You're Trapped!");
if(PlayerInDM[playerid] == 1) return SendClientMessage(playerid, RED, "You Can Not Use This Command While In A Deathmatch Arena. Use /kill To Exit It.");
else
Streamer_UpdateEx(playerid, 2544.5302734375, -2905.310546875, 439.59332275391);
TelePlayer(playerid, 2544.5302734375, -2905.310546875, 439.59332275391, 0, 0);
TogglePlayerControllable(playerid, false);
LoadTimer[playerid] = SetTimerEx("CustomMapsFreeze", 1000, false, "i", playerid);
return 1;
}
Originally Posted by $ЂЯĢ
I will stay quiet when you state one reason why you cannot run linux server on linux.
|
Originally Posted by $ЂЯĢ
I will stay quiet when you state one reason why you cannot run linux server on linux.
|
Originally Posted by Shady91
Quote:
https://sampwiki.blast.hk/wiki/Linux_Server |
Originally Posted by Mina
Quote:
Because i'm using 2 plugins, 1 my own which it's compiled on windows and i don't know how to compile it on linux... So i need wine to get server up with my own plugin, and if i use it then i can't use streamer because it need .NET 3.5 |
Originally Posted by Mina
Quote:
|
Originally Posted by $ЂЯĢ
Quote:
|
Originally Posted by Shady91
Quote:
|
Originally Posted by Mina
Quote:
Maybe you too can learn it, it's really good for you |
Originally Posted by Shady91
fuck off why are you posting here for, compile your plugin in Linux or shut up and go away.
|