Commit graph pcem/src/timer.c
Author SHA1 Message Date
SarahW
a7d006b637 Rewrote timer code.
The new code is based on timestamps, rather than delays. This eliminates the
need to update every timer in timer_process(), which cost a non-trivial amount
of CPU time on low-end machines.

This involved changes to every user of the timer code, so this change almost
certainly introduces bugs.
2018-08-02 22:06:10 +01:00
SarahW
17ea1ace1c Tweaked timing system on 286+ interpreted CPUs - improves DAC sound quality. 2017-09-01 17:08:37 +01:00
SarahW
2b892d2a7a Fixed compiler warnings for Windows builds.
Added -Werror to Windows makefiles.
2017-04-11 19:34:41 +01:00
TomW
79202cc5c0 Changed timer base frequency on XT models to 14.318MHz - PIT, CGA and 4.77MHz CPU should now stay in perfect sync. 2015-11-25 21:50:38 +00:00
TomW
276650c145 Timers now always processed in correct order. Fixes sound in Lion King and probably some other timing related issues. 2015-09-12 14:54:40 +01:00
TomW
b0320ae16c Moved PIT to common timer API. 2014-06-19 21:02:59 +01:00
TomW
f822488656 Add missing files from last commit. 2013-05-27 19:56:33 +01:00