Jump to content
Posted 02 April 2012 - 05:47 PM
Posted 02 April 2012 - 06:21 PM
Posted 06 April 2012 - 08:23 PM
Posted 06 April 2012 - 11:09 PM
So you've got a fixed number of 4 threads (assuming one network connection), which means you're targeting quad-core CPU's only. On dual-core, you'll be over-subscribed, and on hex-core you'll be under-subscribed.
My idea so far is to have the Game/AI/Physics be one main thread. The graphics be another main thread that updates asynchronously from the game. The sound output [and networking] would be its own thread as well.
Posted 07 April 2012 - 06:27 AM
There are explicit synch points in each main thread. They pull in updates at each update from other threads using the system that keeps things in synch. I'm currently working on coding it, but I have it all thought out.