View Single Post
  #4  
Old 10-19-2010, 05:39 AM
Cubical Cubical is offline
Banned
Join Date: Feb 2007
Posts: 1,348
Cubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant futureCubical has a brilliant future
Quote:
Originally Posted by fowlplay4 View Post
Well account data is a flat file, and the server seems to handle that just fine every time a player logs on.

Idea: Stress-test your login..

PHP Code:
function onCreated() {
  
temp.start = timevar2;
  for (
temp.i = 0; temp.i < 100; temp.i++) {
    
loginTest();
  }
  echo(
"Took" SPC (timevar2 - temp.start) SPC "seconds!");
} 
If you aren't satisfied, you could 'load' it from an SQLite DB every time they log on but then you have to re-design your systems to constantly update the DB.
Thanks I'll defiantly try that. What would you say is a good load time to have everything loaded?
Quote:
Originally Posted by salesman View Post
I usually load data on login, and then maintain a cache (clientr.vars or something)
that's what i'm currently doing
Reply With Quote