Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Server Load (https://forums.graalonline.com/forums/showthread.php?t=64395)

Maniaman 02-26-2006 11:41 PM

Server Load
 
It would be nice if there was some way to determine the current server load with the new scripting engine. This could be used to disable certain features on servers when the load gets too high.

For example:
NPC Code:

function IntensiveProcess() {
if (serverload < 20) {
//do stuff
} else {
say2("The server load is currently too high! Please try again later.");
}
}



For Maloria, I would use it to disable certain things like mass messages with the message system (/mass blah blah), as those require the server to loop through every player and set strings.

ZeLpH_MyStiK 02-27-2006 12:33 PM

Could be potentially useful. I know on Maloria, it would stop the npcserver from dying.

Admins 03-01-2006 04:08 AM

Could be added yes, althought it might be easier to optimize the scripts. The npcserver is now displaying up to 20 npcs when doing /stats, also it is displaying in which classes they are so it's easier to find the scripts which are lagging the server.


All times are GMT +2. The time now is 03:17 PM.

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