real-time

With Boost.Fiber does c++ come one step closer to Erlang style process/threads?

混江龙づ霸主 提交于 2019-12-20 12:09:35
问题 I am reading http://olk.github.io/libs/fiber/doc/html/ It seems to me that with Boost.Fiber C++ is coming closer to Erlang's ability to have thousands of "processes", also known as "green processes[threads]" http://en.wikipedia.org/wiki/Green_threads. My question is, is Boost.Fiber ready for production, are there now c++ alternatives that have better documentation and examples? Someone mentioned lightweight threads, but I can't seem to find a reference to it. One final question is, why doesn

Real-time multiplayer game (concept question)

十年热恋 提交于 2019-12-20 10:14:19
问题 I've been reading this article from Valve that seems to explain the architecture of their multiplayer system. It seems they delay rendering by a couple ticks on the client so they can handle dropped packets, but they also send packets as "delta snapshots" (the difference between two adjacent states). Suppose we have times A, B, C, and the client is correct at time A but drops the packet at B, and then receives the one at C. How can it correctly deduce the state at time C? The packet at C only

What's the best alternative to C++ for real-time graphics programming? [closed]

最后都变了- 提交于 2019-12-20 09:29:00
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . C++ just sucks too much of my time by making me micro-manage my own memory, making me type far too much (hello std::vector<Thingy>:

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

若如初见. 提交于 2019-12-20 08:38:49
问题 What technology does Google Drive use to do real-time? When I type in a Google Drive document that is being accessed by multiple users, the Chrome Developer Tools Network tab shows that there are no WebSockets. I see that the two most frequent types of AJAX call have either "bind?" or "save?" in the URL. "save?" POST requests are made every time I type, which makes sense- normal AJAX for sending updates to the server. When another user types, the most recent "bind?" GET call stays open, and

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

Deadly 提交于 2019-12-20 08:38:49
问题 What technology does Google Drive use to do real-time? When I type in a Google Drive document that is being accessed by multiple users, the Chrome Developer Tools Network tab shows that there are no WebSockets. I see that the two most frequent types of AJAX call have either "bind?" or "save?" in the URL. "save?" POST requests are made every time I type, which makes sense- normal AJAX for sending updates to the server. When another user types, the most recent "bind?" GET call stays open, and

record audio in java and determine real time if a tone of x frequency was played if so do something

爷,独闯天下 提交于 2019-12-20 04:49:15
问题 I want to be able to detect a tone of a predetermined frequency using java. What I am doing is playing a tone (the frequency of the tone is variable by user input) and I am trying to detect if the tone is of a certain frequency. If it is, I execute a certain method. From what I have read I will need to us FFT, but I'm not sure how to implement it in java. There seems to be a lot of documentation for how to do it, but what documentation there is involves looking at an audio file rather than

UP or DOWN Voting in Real-Time jQuery Ajax PHP

心已入冬 提交于 2019-12-20 03:07:30
问题 Alright, here's a quick explanation of what I am doing: I have a website where people can vote UP or DOWN to a "champion." These champions start with 100 health. If you were to UP vote a specific champion, their health would now be 101. DOWN voting it would be 99. This site is up and running and has been for 5 seasons now (there's over 1200 members that play). So there's a lot of voting going on at once. It all works fine now. BUT, for this next season, I will be implementing jquery/ajax for

Android - Google Play Services realtime multiplayer - Automatching and waiting room bugs

吃可爱长大的小学妹 提交于 2019-12-19 21:53:59
问题 I'm doing a multiplayer realtime implementation, using the google play services. The goal is to have 4 players playing together in a room, but if there are not enought players at a time, the game should be started with only 2 or 3 players. Ideally with a timer asking the first players to wait a little. Solution 1 : I use RoomConfig.createAutoMatchCriteria(1, 3, 0); But in that case, the automatching never tries to connect 3 or 4 players, but always starts games with only 2 players

Audio manipulation using node.js

只愿长相守 提交于 2019-12-19 17:52:04
问题 My team has been using the Web Audio API/Getusermedia in a product and we are going really well with our chrome and firefox users. But we still have a large base of users that we would love to reach, but due to technology barriers, we still can't (mostly, those are IE users), as their main browser does not support the technology, and they do not or can not change to a modern browser. We are planning to get to those users, but we don't want to go to Flash, Flex, Silverlight or anything similar

google maps api real time updates with new geojson files

纵然是瞬间 提交于 2019-12-19 11:25:07
问题 I would like to add the real time dynamic to my map, by means of passing a new local geojson file about every 3 minutes. What is the best approach to do this so that it is seamless to the end-user. I am thinking ajax and or setinterval function is the answer, but I'm not sure where to begin. If anyone knows of any examples or can offer some advice. I would greatly appreciate it. Thank you. Here is my attempt to use AJAX. I am unable to loop over the geoJSON structure. Not sure what i ma doing