Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-06-2008, 01:33 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
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...
Reply With Quote
  #2  
Old 07-06-2008, 01:35 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
My bet would be that keeping it on serverside all the time would be less laggy.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #3  
Old 07-06-2008, 01:36 PM
[email protected] sid.gottlieb@googlemail.com is offline
Banned
Join Date: Mar 2008
Posts: 861
sid.gottlieb@googlemail.com will become famous soon enough
i was thinking that too... just wanted to see if anyone else saw it as that ty
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:36 AM.


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