newScanTron / serverTime

server exploration
0 stars 2 forks source link

db connection on collector is making it lag #27

Open newScanTron opened 9 years ago

newScanTron commented 9 years ago

we maybe should put the call to DBOps somewhere else so its doesent make the game play lag

Nohbody commented 9 years ago

It literally wouldn't work anywhere else. You can see it lag on Snake as well. It would require multi-threading (or something) to make both run simultaneously.

On Thu, Nov 20, 2014 at 4:58 PM, Christopher Murphy < notifications@github.com> wrote:

we maybe should put the call to DBOps somewhere else so its doesent make the game play lag

— Reply to this email directly or view it on GitHub https://github.com/newScanTron/serverTime/issues/27.

newScanTron commented 9 years ago

thats too bad, i mostly was just adding a issue to the log, just to add more issues

newScanTron commented 9 years ago

can you think of any way to have the separate games proximity affecting each other without it lagging like crazy?

Nohbody commented 9 years ago

There has to be a solution to run two processes simultaneously instead of sequentially. I believe what we want is a usage of threads, but this is a new problem to me as well so I can't tell you where to really begin.

On Fri, Nov 21, 2014 at 2:36 PM, Christopher Murphy < notifications@github.com> wrote:

can you think of any way to have the separate games proximity affecting each other without it lagging like crazy?

— Reply to this email directly or view it on GitHub https://github.com/newScanTron/serverTime/issues/27#issuecomment-64041545 .

newScanTron commented 9 years ago

tutorialspoint.com has some pretty good basic information. I feel like it won't be too hard to rework the existing code to achieve some basic multi-thread action.