Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
RP Caching
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="TheGeneral" data-source="post: 418428" data-attributes="member: 73182"><p>I don't quite understand this. If you already know beforehand when you have to execute something (as you know the end timestamp say 10 minute jail time), why call it every second (assuming to compare etc). Why not use some kind of scheduled task, and cancel that scheduled task when someone logs out? Makes everything more event based, async and most likely faster. On top of that it is easier to add in new 'timers' / deadlines without having to modify your 'core loop' thus making it easier to maintain your code and build on it.</p><p></p><p>Just a thought, no need to flame me. Here to give you suggestions about implementations you might want to try.</p></blockquote><p></p>
[QUOTE="TheGeneral, post: 418428, member: 73182"] I don't quite understand this. If you already know beforehand when you have to execute something (as you know the end timestamp say 10 minute jail time), why call it every second (assuming to compare etc). Why not use some kind of scheduled task, and cancel that scheduled task when someone logs out? Makes everything more event based, async and most likely faster. On top of that it is easier to add in new 'timers' / deadlines without having to modify your 'core loop' thus making it easier to maintain your code and build on it. Just a thought, no need to flame me. Here to give you suggestions about implementations you might want to try. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
RP Caching
Top