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
timerd problem. (56d-Nightly)
Author Message
Satvet
Journeyman
*

Posts: 105
Likes Given: 32
Likes Received: 6 in 6 posts
Joined: Sep 2015
Reputation: 0



Post: #1
timerd problem. (56d-Nightly)
"timerd" does not work on the item on the character. (56d-Nightly)
but there is no such problem in "56d-X", it works properly.
How "timerd" works like "56d-X"?

Errors triggers success.
02-04-2020 11:04 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: timerd problem. (56d-Nightly)
I'm testing here using this code, and its working fine

Code:
[TYPEDEF t_test_timer] // usage: just type ".xevents +t_test_timer" or ".xtype t_test_item" and then ".xtimerd 10"
ON=@Timer
say timer
return 1

But note that sphere internal engine must loop through all objects on world to keep updating the timer of each one, and its not a good idea loop through many hundreds/millions of items 10x per second (TIMERD), so sphere only uses TIMERD on chars, and TIMER on items. You can set TIMERD on items but it will automatically drop the precision (eg: TIMERD=22 will turn into TIMER=2)
02-06-2020 07:14 AM
Find all posts by this user Like Post Quote this message in a reply
Satvet
Journeyman
*

Posts: 105
Likes Given: 32
Likes Received: 6 in 6 posts
Joined: Sep 2015
Reputation: 0



Post: #3
RE: timerd problem. (56d-Nightly)
@Coruja, this is what i want to tell. watch this

Errors triggers success.
(This post was last modified: 02-18-2020 01:32 PM by Satvet.)
02-18-2020 01:29 PM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #4
RE: timerd problem. (56d-Nightly)
Yes as you can see, one screen is updating 10x per sec (TIMERD) and the other is updating 1x per sec (TIMER)

Although one build seems to be "visually" faster than other, both have the same speed and they just update the TIMER value on items at different moment

By default, sphere use TIMERD on chars because this is really required by char actions (use skills, cast spells, etc) but items doesn't need such precision so they use TIMER instead TIMERD to save some CPU performance. Honestly I don't know if it worths change this, but since sphere X is using TIMERD, I updated 56d to also use TIMERD to improve script compatibility between both builds, so try using the latest build to check if it's working fine
02-21-2020 03:33 PM
Find all posts by this user Like Post Quote this message in a reply
Satvet
Journeyman
*

Posts: 105
Likes Given: 32
Likes Received: 6 in 6 posts
Joined: Sep 2015
Reputation: 0



Post: #5
RE: timerd problem. (56d-Nightly)
I tried the latest version it working fine. thx.

Errors triggers success.
02-21-2020 09:01 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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