PDA

View Full Version : real-time stuff takes really long



jesserules
12-09-2004, 03:22 AM
when i test real-time games, the movements dont appear in the other movie 4 a while. i was making a game where u had 2 make more chesseburgers than the other person, but sometimes, 1 screen says its a tie and 1 says that u won(which shouldn't happen)

webgeek
12-09-2004, 06:13 AM
The tie-vs-won code sounds like a client-side bug. As for the performance, if Flash is really lagging or your CPU is maxed, the messages will arrive very slowly. Also, if you are running the server and the game on the same computer, Flash can easily starve the server for CPU. We take pride in how effecient ElectroServer is considering the complexity, but it is still a server and it does require CPU actively to perform properly.

daveganley
12-09-2004, 07:02 AM
To avoid the '1 screen says its a tie and 1 says that u won' make a plugin and let the server determine the final result.

Dave

jesserules
12-10-2004, 04:12 AM
whoa, that sounds tough. how exactly do u make a plug-in? im kind of a beginner.

webgeek
12-10-2004, 10:23 PM
There are several tutorials available and many samples that come with the server and cover how to make a plugin. Please take a look at those first and then let us know if you have any specific questions. Thanks!

daveganley
12-14-2004, 09:14 AM
I think the PixelCannon example uses a server side plugin to determine a hit. I'd start there, the link is one of the stickies at the top of this forum.

Dave