The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Question
Author Message
karma
Moderator
****

Posts: 178
Likes Given: 17
Likes Received: 32 in 29 posts
Joined: Jul 2012
Reputation: 3



Post: #24
RE: Question
Scripting engine is complicated, i can't give you a theoric answer. Best way to try is to put the code inside a FOR 10000 loop and SERV.LOG <SERV.TIME> before and after the loop, and compare the time elapsed doing the if/endif or qval check.
As you said, if @step checks stam more times, then it'll be heavier than @userstats Tongue to be lighter not only the players should be most of the time still, but also the npcs in the active sectors. Moreover, imagine 10 chars running for 10 minutes, it isn't that light

Inviato dal mio LG-D855 utilizzando Tapatalk
(This post was last modified: 01-14-2016 04:51 AM by karma.)
01-14-2016 04:50 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Question - rastrero - 01-13-2016, 03:23 PM
RE: Question - Criminal - 01-13-2016, 04:56 PM
RE: Question - rastrero - 01-13-2016, 05:17 PM
RE: Question - pointhz - 01-13-2016, 10:24 PM
RE: Question - Criminal - 01-13-2016, 11:11 PM
RE: Question - Artyk - 01-13-2016, 10:52 PM
RE: Question - rastrero - 01-14-2016, 02:12 AM
RE: Question - Kanibal - 01-14-2016, 02:31 AM
RE: Question - zottolo - 01-14-2016, 02:39 AM
RE: Question - rastrero - 01-14-2016, 02:44 AM
RE: Question - Kanibal - 01-14-2016, 02:50 AM
RE: Question - rastrero - 01-14-2016, 02:54 AM
RE: Question - Kanibal - 01-14-2016, 02:57 AM
RE: Question - rastrero - 01-14-2016, 03:16 AM
RE: Question - Kanibal - 01-14-2016, 03:18 AM
RE: Question - zottolo - 01-14-2016, 03:06 AM
RE: Question - rastrero - 01-14-2016, 03:21 AM
RE: Question - karma - 01-14-2016, 03:44 AM
RE: Question - rastrero - 01-14-2016, 03:49 AM
RE: Question - karma - 01-14-2016, 03:53 AM
RE: Question - rastrero - 01-14-2016, 04:00 AM
RE: Question - karma - 01-14-2016, 04:08 AM
RE: Question - rastrero - 01-14-2016, 04:32 AM
RE: Question - karma - 01-14-2016 04:50 AM
RE: Question - rastrero - 01-14-2016, 04:59 AM
RE: Question - Coruja - 01-19-2016, 02:13 AM
RE: Question - rastrero - 01-19-2016, 03:49 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)