Author Topic: multi cpu  (Read 4184 times)

Offline Thirster

  • Bot Neophyte
  • *
  • Posts: 1
    • View Profile
multi cpu
« 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

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
multi cpu
« Reply #1 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.
« Last Edit: March 29, 2008, 03:36:59 AM by Numsgil »

Offline jknilinux

  • Bot Destroyer
  • ***
  • Posts: 468
    • View Profile
multi cpu
« Reply #2 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?

Offline Testlund

  • Bot God
  • *****
  • Posts: 1574
    • View Profile
multi cpu
« Reply #3 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.
The internet is corrupt and controlled by criminally minded people.

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
multi cpu
« Reply #4 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.

Offline jknilinux

  • Bot Destroyer
  • ***
  • Posts: 468
    • View Profile
multi cpu
« Reply #5 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?

Offline Numsgil

  • Administrator
  • Bot God
  • *****
  • Posts: 7742
    • View Profile
multi cpu
« Reply #6 on: April 25, 2008, 07:41:43 PM »
Yes and yes.