rdnelson / Libra

An 8086 emulator with a focus on educational features.
Other
13 stars 4 forks source link

Idling consumes ~5% CPU usage. #146

Open rdnelson opened 11 years ago

rdnelson commented 11 years ago

On linux (and maybe other systems?) Libra consumes ~5% cpu usage when idling. There is no reason for this CPU usage, so its origin should be tracked down.

DarrenStahl commented 11 years ago

Can not repro on Windows.

Tested in both locally compiled version, and beta 1.3.

Libra sits a 0.03% CPU at idle, both before file is loaded, and while file is paused.

rdnelson commented 11 years ago

This is caused by the Timer peripheral's parent timer. As a result of this CPU consumption, the Timer will be disabled during Stepping mode.