Author Topic: Pausing the simulation keeps using the CPU  (Read 1417 times)

Offline goffrie

  • Bot Builder
  • **
  • Posts: 65
    • View Profile
Pausing the simulation keeps using the CPU
« on: May 17, 2008, 04:04:49 PM »
I'm not sure if this is a VirtualBox bug, although it doesn't occur with any other program. Basically, when I click on the 'pause' button, the simulation stops but CPU usage is still maxed out. The "new simulation" dialog, though, when not in Internet Mode, stops using CPU and pauses the simulation, so I use that as a workaround.

This happens with *all* sims and has happened since I started using Darwinbots.

(VirtualBox is a PC emulator much like VMWare or VirtualPC, I use it to run Windows for Darwinbots.)

Oh, and sorry if this is a known problem, I couldn't find it using the search feature.
« Last Edit: May 17, 2008, 04:09:07 PM by goffrie »

Offline Mikael Hellqvist

  • Bot Neophyte
  • *
  • Posts: 9
    • View Profile
Pausing the simulation keeps using the CPU
« Reply #1 on: May 18, 2008, 05:00:46 AM »
The same is happening to me.

and selecting that dialoge stops cpu usage for me too.

[attachment=942:001.jpg]
tv.micze.net - My own Internet TV

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Pausing the simulation keeps using the CPU
« Reply #2 on: May 18, 2008, 03:07:08 PM »
The code just short circits the main execution path and tights loops chenking for events when you pause it.  I could fix this, but it doesn't strike me as very high priority...
Many beers....

Offline Mikael Hellqvist

  • Bot Neophyte
  • *
  • Posts: 9
    • View Profile
Pausing the simulation keeps using the CPU
« Reply #3 on: May 18, 2008, 04:26:00 PM »
Personally it don't bother me the slightest but I just confirmed the issue for the OP
tv.micze.net - My own Internet TV