Darwinbots Forum

Welcome To Darwinbots => Newbie => Topic started by: Thirster on March 29, 2008, 03:27:42 AM

Title: multi cpu
Post by: Thirster on March 29, 2008, 03:27:42 AM
is it just me or doesnt the program utilize dual/quad cores very well, is there any patch for it at all, putting the priority up doesnt seem to have any effect. wasnt sure whether to put this in bugs or here, as its not really a bug I put it here

thanks guys
Title: multi cpu
Post by: Numsgil on March 29, 2008, 03:36:24 AM
Welcome!

Darwinbots is written in Visual Basic 6, which doesn't understand the idea of threads.  So basically Darwinbots can't run on more than one core at a time.  Usually with a dual core system, DB will take up 50% of each processor.  You can, however, run two instances of Darwinbots and connect them with teleporters.  Each instance will use 50% of your computer.
Title: multi cpu
Post by: jknilinux on April 25, 2008, 05:00:19 PM
Quote from: Numsgil
Darwinbots can't run on more than one core at a time.
...
With a dual core system, DB will take up 50% of each processor.


Sorry, don't mean to be argumentative, or maybe it's just me, but I'm confused- will it run faster on a dual-core computer or not?
Title: multi cpu
Post by: Testlund on April 25, 2008, 05:34:58 PM
I don't think so. I couldn't see much difference between my older single core system compared to my newer dual core. Maybe a couple of cycles faster mostly because my dual core had higher megahertz and I had 2 gigs of ram.
Title: multi cpu
Post by: Numsgil on April 25, 2008, 05:59:45 PM
The extra core won't really be used properly, so no, it won't run faster.  But you can run an instance of DB for each processor you have, and each instance will properly utilize a single processor.
Title: multi cpu
Post by: jknilinux on April 25, 2008, 07:36:31 PM
Quote from: Numsgil
... But you can run an instance of DB for each processor you have, and each instance will properly utilize a single processor.

How difficult is that? Just open up two windows of darwinbots?

Also, will DB3 take advantage of two processors?
Title: multi cpu
Post by: Numsgil on April 25, 2008, 07:41:43 PM
Yes and yes.