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. ...
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...
Step 1. Tell you team that everything must fit within 1920x1080 or 1024x768 or whatever resolution you like! Step 2. Surround all OnGUI met...
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...
Often, when building a game, you need to test if objects are colliding. The objects could be spaceships, rocks, mouse pointers, laser beams....
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...
I've been investigating the possibility of hard real time software development with Python. From some brief research, I've come up w...
Just 514 lines of code. Uses sockets only, no other dependencies. https://github.com/simonwittber/uniwebserver Example Component: [Req...
Working with multiple threads is often a necessary evil. This is how I do it safely inside a Unity3D component. There are only certain time...
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...