Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Question Regarding Lagg (https://forums.graalonline.com/forums/showthread.php?t=80385)

[email protected] 07-06-2008 01:33 PM

Question Regarding Lagg
 
So, I have around 50+ players on a server each day. Every one of them are sending alot of 'triggerservers()' nearly every second. would it be better if i did something like this serverside

HTML Code:

function onCreated() {
  for (temp.i: allplayers) i.performFunctionNeeded();
  scheduleevent(15, "Created", "");
}

instead of each player doing it every second? the function being called will just set a flag, nothing big/bad etc... what would you say? keep the client to server or just make it all server based? i am thinking server...

xXziroXx 07-06-2008 01:35 PM

My bet would be that keeping it on serverside all the time would be less laggy.

[email protected] 07-06-2008 01:36 PM

i was thinking that too... just wanted to see if anyone else saw it as that ^^ ty


All times are GMT +2. The time now is 01:48 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.