Player's Level/Ranking

For discussion of the Poker Mavens server module and other administration topics
Post Reply
AliuM
Posts: 10
Joined: Sat Sep 12, 2009 9:42 pm

Player's Level/Ranking

Post by AliuM »

Hello everyone...
I just had an issue that i need technical support, regarding Player's levels.

As we know, PM has Level area for each player, and the "only" way that i know,
to change the Level of each player is via PHP/PM admin interface.

Ok... i have coded few scripts that update the players Level based on the
total chips (the scripts compares chips from MySQL), but, in order to update
their Levels i have to "load/call" the script every few seconds, so it looks
like the level system is integrated with PM.

My question: if i have 100+ players online, and the script is called every 3 seconds
for each player, will it slow down the software/server? I know it depends on the
server, but what if you implement a simple chip comparing functions in PM,
which depending on the admins requirements and level names, will update the
player's levels. (Similar to Facebook).

I thought it might be interesting to be added...
Thank you.
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Player's Level/Ranking

Post by Kent Briggs »

AliuM wrote: My question: if i have 100+ players online, and the script is called every 3 seconds
for each player, will it slow down the software/server?
Why do you need it updated so often? You should keep a copy of the player's level in your own database and then only update it on the Poker Mavens server when it actually changes. The only place the level value is visible in the client is when someone moves their cursor over a player's avatar. I doubt anyone is going to check that every 3 seconds.
Post Reply