How do the protocols of real time strategy games such as Starcraft and Age of Empires look? [closed]

I can go into a lot of detail about this but first, go read “1500 archers” http://www.gamasutra.com/view/feature/3094/1500_archers_on_a_288_network_.php and this will answer many of your questions. Here’s a summary: First, most games use UDP due to the real-time nature of the game. THe game loop looks something like this: read network data do client-side predictions and … Read more

What technology does Google Drive use to get real-time updates?

Is there a name for Google’s solution for real-time updates in Drive (such as “long polling” or “sockets”)? It didn’t have a name until now. I’ll call it “no-polling,” to contrast with polling and long-polling. With polling, the client periodically sends queries for new data. With long-polling, the client queries for data, and the server … Read more

Does using heap memory (malloc/new) create a non-deterministic program?

In the context of realtime systems, there is more to determinism than a repeatable “execution path”. Another required property is that timing of key events is bounded. In hard realtime systems, an event that occurs outside its allowed time interval (either before the start of that interval, or after the end) represents a system failure. … Read more

Short-polling vs Long-polling for real time web applications?

Just for the sake of argument. Both are http request (xhr), and its at least partially untrue it uses more server resources (depends totally on technology, will explain later). Short polling. Lot of request that are processed as they come on server. Creates a lot of traffic (uses resources, but frees them as soon as … Read more