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 Releases
Really simple and awesome RP cooldown system
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="Jaden" data-source="post: 411240" data-attributes="member: 51705"><p>Dis-gust-ing</p><p></p><p>Why are you using your database to store simple cooldowns that can be handled using simple caching of 2 int variables (1 const and a user variable) then a simple if-statement to check.</p><p></p><p>imo: Holo, Habbo, Rage, and even Fabbo had better cooldown implementations then this. Creating a table, then requesting a db connection object from the server every time the user inputs something that can trigger a cooldown, not only is this a resource hog to your system but it is a contention to the server.</p><p></p><p>Also, why are you using the public access modifier for methods which should be public static? And if you're going to insist on storing cooldowns in the database (no reason to) at least use the proper data types, VARCHAR is the equivalent to a string, they're data types like DATE and DATETIME that you should look into.</p><p></p><p>It's minor programming mistakes like these which contribute to Plus's decline in performance and other things like that today.</p></blockquote><p></p>
[QUOTE="Jaden, post: 411240, member: 51705"] Dis-gust-ing Why are you using your database to store simple cooldowns that can be handled using simple caching of 2 int variables (1 const and a user variable) then a simple if-statement to check. imo: Holo, Habbo, Rage, and even Fabbo had better cooldown implementations then this. Creating a table, then requesting a db connection object from the server every time the user inputs something that can trigger a cooldown, not only is this a resource hog to your system but it is a contention to the server. Also, why are you using the public access modifier for methods which should be public static? And if you're going to insist on storing cooldowns in the database (no reason to) at least use the proper data types, VARCHAR is the equivalent to a string, they're data types like DATE and DATETIME that you should look into. It's minor programming mistakes like these which contribute to Plus's decline in performance and other things like that today. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Releases
Really simple and awesome RP cooldown system
Top