Jump to content

question


Desaster

Recommended Posts

Posted

I've set a timer that makes me I approx 15 query every 1 sec I wanted to ask you if it's make lag if I make many timers and if it makes a difference or not if I make the timer every 100 msec or every second and is there a query limit in the seconds because sometimes my server crahed and told me Notice : 350000 qery in the last 10 second :P

thnx

Posted

You're going to cause massive lag if you set a timer to do most things 15 times a second. I'm sure whatever you're querying will work just as well if you do it once a second or even once every 5 seconds. If your server crashed with that error then there's your proof. You should get into a habit of not using timers unless you absolutely need to, as they are not the most efficient way of doing things :)

Posted

I need to do it belive me I can't find an other way :P anyways my server crashed just sometimes when i restarted the script and just when I had the timer each 100 msec now I changed it to 1 sec and everything going on well :) but as I sayed was just a question

Posted

I honestly can't see why you'd need to query anything every 100ms, that's 10 times a second. Unless what you're doing is extremely lightweight (which i'm assuming it's not since the crashes) then you're gonna cause problems :P. What are you trying to do?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...