SqueaL
01-07-2006, 07:14 AM
If I can suggest something to help the server with the stockmarket issue.
It seems that every time a player refreshes the page the PHP script has to make a stack of SQL calls etc. Why done to make the script that recalcuates the stock values every 5 mins generate a static html page with the current values on. Also make it like a popup window with only the stock values on and not the right hard side bar that has all the players cities, troops and other info that takes more sql calls and in turn lags the server.
With more people joining the game is going to lag more and more. Using static pages will help a lot. I've used them extensively on my dynamic websites in similar situations.
Regards
SqueaL
It seems that every time a player refreshes the page the PHP script has to make a stack of SQL calls etc. Why done to make the script that recalcuates the stock values every 5 mins generate a static html page with the current values on. Also make it like a popup window with only the stock values on and not the right hard side bar that has all the players cities, troops and other info that takes more sql calls and in turn lags the server.
With more people joining the game is going to lag more and more. Using static pages will help a lot. I've used them extensively on my dynamic websites in similar situations.
Regards
SqueaL