real-time

C or ObjC for real-time raytracer on iOS?

I'm starting to build a real-time raytracer for iOS. I'm new to this raytracing thing, all I've done so far is write a rudimentary one in ObjC. It seems to me that a C-based raytracer is going to be faster than one written in ObjC, but the ObjC one will be far simpler, as object hierarchies come in very handy. Speed is very important,...

Real time Protocol for a web-app in PHP

Hi, I'm working on a PHP application and I'm looking for some ideas for a real-time protocol that I can use for: 1) track users status and location within the application (this should be fast!!!) 2) chat system. I'm looking for something like FMS and its "Shared Objects" where multiple users can subscribe to pieces of information. FM...

Python: Check when a cmd command completes its job

When I execute a python script using subprocess.Popen(script, shell=True) in another python script, is it possible to alert python when the script completes running before executing other functions? On a side note, can I get real-time output of the executed python script? I can only get output from it doing command>output.txt but that...

Real time apps: Socket.io vs Pusherapp

What are the factors you would consider when choosing between Socket.io and Pusherapp? http://Socket.io http://pusherapp.com Important considerations includes: integration w existing systems like rails/django, ease of setup, ease of development ...

How to get information about the client in node.js

Hi, in this very simple example: var sys = require("sys"), http = require("http"); http.createServer(function(request, response) { response.writeHead(200, {"Content-Type": "text/plain"}); response.end("Hello World!"); }).listen(8080); sys.puts("Server running at http://localhost:8080/"); 1.) What kind of information can ...

New to Node.js. 3 basic questions!

I'm new to node.js and I want to ask a simple question about how it works. I have used FMs in the past for client to client communication and real time applications. For example, for creating a collaborative application where you need to see what other users are doing. I want to explore that using NodeJS. I have couple of questions: ...

Best way to code a real-time multiplayer game

I'm not sure if the term real-time is being misused here, but the idea is that many players on a server have a city producing n resources per second. There might be a thousand such cities. What's the best way to reward all of the player cities? Is the best way a loop like such placed in an infinite loop running whenever the game is "liv...

Fast compression in Java?

Is there a very fast compression library for Java? The standard gzip library is slower than I would like. I'm looking for something similar to http://www.oberhumer.com/opensource/lzo/ that's native Java code that provides fast compression and decompression. Thanks! A few other fast compression libraries for future reference: QuickLZ...

Splitting a 3D model with respect to angle of cut

In 3D Max Studios, I recalled there is a function (I couldn't recall the name of the function, sorry) to cut a 3D model into two. For instance, you create a sphere, then you cut it in the middle, leaving 2 half spheres. Now, how about a human body? Imagine a samurai cutting up an enemy at the stomach, now that enemy's model will become 2...

What do you think about OpenFire?

Have you developed for OpenFire (http://www.igniterealtime.org/)? How has your experience? pros/cons/comments, please. I'm evaluation several technologies now, and want to know what the community thinks about OpenFire. ...

How RSS and ATOM inform client about updates? long polling or polling or something else?

I red that RSS and ATOM are HTTP based using XML. So how RSS or atom reader are informed about content updates if HTTP doesn't support connections? They need to poll to server periodically? I'm interested in using it in real time web application but i heard that "polling doesn't scale". ...

In image processing, what is real time?

Hi Guys, in image processing applications what is considered real time? Is 33 fps real time? Is 20 fps real time? If 33 and 20 fps are considered real time then is 1 or 2 fps also real time? Can anyone throw some light. Vikram ...

static allocated data structures

I'm working on a existing embedded system (memory is limited, Flash is limited, ...) with an RT OS. All data structures have a fixed size and are allocated at "compile time" and are therefore suited for RT. There is no dynamic memory allocation. The programming language is C++, but there is no STL available. I like to replace some of the...

Implementing Real-Time Collaboration On A Page?

I would like to create a web page which would allow multiple users to work together on a page, Imagine a web based editor that allowed to users to change the documents as an example of this type of feature. How would more experienced programmers go about implementing this as i really cant seem to formulate any way to even begin going ab...

Realtime multiplayer available for Silverlight

I am new to silverlight, My question is it possible to create a real-time multiplayer game in silverlight. Example, If someone goes to site and playes a silverlight based rpg game. so the person that starts the game can invite his/here friends through a link that is provided by the game or website. Every user gets a unique link and can ...

Generally speaking, how do I implement a realtime monitoring system?

Suppose I have either an ASP.NET displaying my results, or a Silverlight client. And I'd like to show the current status of my server, or embedded device. (pretend the device reads temperature and humidity stats) How should I send the status information from my device to the front end? Should I poll the device and save the results to...

what video/image encoding format is recommended when trying to encode and transmit raw video in real time ?

Hi, I'm trying to encode and transfer raw video frames over LAN (100 Mbps) connection (frames captured by a web cam). What video/image encoding format is recommended for fast compression (with not much regard for the compression ratio) ? Thanks, ...

Best Library for Real-Time Javascript Game with PHP Backend

Hi! I'm currently in the planning stages for a real-time multiplayer game that would be built using Javscript at the frontend and PHP on the backend and I'm just wondering if anyone here knows of any good libraries for such a game? Thanks, DLiKS ...

Real-time WPF chart .Net 4

Hi, I'm working on a diagnostic tool and receives data every 25 ms. I need this data to be drawn in my chart using a lineSeries. I'm using a a wpf chart with a lineSeries which I bind in xaml to an ObservebleCollection. The problem is that I need the collection needs to contain atleast 1600 datapoints before starting to remove them at t...

Executing 'realtime' javascript without hanging the browser

Hi! I'm trying to write a simple music-sequencer in Javascript. Sounds will be played by SoundManager2 I quickly realised that setTimeout and setInterval are useless for this kind of timing. Their accuracy is simply not good enough. So what I am trying instead is this: Create a queue of sound-events (a 2d array [ note, time ] ) P...