print 'I am running inside a thread.'
print 'I am still running inside a thread.'
print 'I am exiting the thread, going back into cooperative mode.'
for i in xrange(3):
print 'I am running cooperatively too.'
for i in xrange(5):
print 'I am running cooperatively.'
s = fibra.Schedule()
while s.tick(): pass
Friday, November 16, 2007
Cooperative + Preemptive Concurrency
I've just uploaded Fibra 2 to the cheeseshop. Fibra 2 includes the promised non-blocking plugin, which allows a generator based task to momentarily run in a seperate thread.
So, you've created a car prefab using WheelCollider components, and now you can apply a motorTorque to make the whole thing move along. ...
These are the robots I've been working on for the last 12 months. They each weigh about 11 tonnes and have a 17 meter reach. The contr...
When you start working with threads in your Unity3D project, you will discover that many things need to be done in the main loop. For exampl...
This script takes a screenshot and saves it to the user desktop. It has options to use an alpha background, and also upscale the image. Usef...
Often, when building a game, you need to test if objects are colliding. The objects could be spaceships, rocks, mouse pointers, laser beams....
I decided to double check my assumptions about Stackless and the GIL on a multicore machine, using the same example provided by David Beazl...
Thank to Adrian Boeing I was inspired this morning to hack together a ripple shader for Unity3D. Thanks for the math Adrian. You can see t...
Summary: NodeJS wins. Test Program ab -n 10000 -c 5 http://localhost/ Gevent Code from gevent import wsgi class WebServer(object): ...
Why would I ask that question? Python 3 has been available for some time now, yet uptake is slow. There aren't a whole lot of packages...
I think ER diagrams are very handy tools for designing data requirements for a game. I don't see them given away or even talked about (i...