Darwinbots Forum

Code center => Bugs and fixes => Bug reports => Topic started by: goffrie on May 17, 2008, 04:04:49 PM

Title: Pausing the simulation keeps using the CPU
Post by: goffrie 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.
Title: Pausing the simulation keeps using the CPU
Post by: Mikael Hellqvist 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]
Title: Pausing the simulation keeps using the CPU
Post by: EricL 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...
Title: Pausing the simulation keeps using the CPU
Post by: Mikael Hellqvist 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