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.
This commit is contained in:
parent
ab359ca9c5
commit
a7d006b637
79 changed files with 1050 additions and 1033 deletions
|
|
@ -47,9 +47,9 @@ typedef struct sb_dsp_t
|
|||
|
||||
int sbenable, sb_enable_i;
|
||||
|
||||
int sbcount, sb_count_i;
|
||||
pc_timer_t output_timer, input_timer;
|
||||
|
||||
int sblatcho, sblatchi;
|
||||
uint64_t sblatcho, sblatchi;
|
||||
|
||||
uint16_t sb_addr;
|
||||
|
||||
|
|
@ -57,7 +57,8 @@ typedef struct sb_dsp_t
|
|||
|
||||
int asp_data_len;
|
||||
|
||||
int wb_time, wb_full;
|
||||
pc_timer_t wb_timer;
|
||||
int wb_full;
|
||||
|
||||
int busy_count;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue