mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 09:35:32 -07:00
Merge pull request #6568 from AITUS95/master
Voodoo 1: Fix Screamer Rally regression while keeping Final Racing fix
This commit is contained in:
@@ -432,7 +432,7 @@ voodoo_writel(uint32_t addr, uint32_t val, void *priv)
|
||||
|
||||
/* Voodoo1: use higher CMDFIFO threshold to reduce wake frequency */
|
||||
if (voodoo->type == VOODOO_1) {
|
||||
if ((voodoo->cmdfifo_depth_wr - voodoo->cmdfifo_depth_rd) > 300)
|
||||
if ((voodoo->cmdfifo_depth_wr - voodoo->cmdfifo_depth_rd) < 20)
|
||||
voodoo_wake_fifo_thread(voodoo);
|
||||
}
|
||||
/* Other cards (Voodoo2, Banshee, Voodoo3, ...) keep the original behavior */
|
||||
|
||||
@@ -63,7 +63,7 @@ voodoo_fifo_log(const char *fmt, ...)
|
||||
#define WAKE_DELAY_DEFAULT (TIMER_USEC * 100)
|
||||
|
||||
/* Per-card wake delay: Voodoo1 uses a larger delay to reduce FIFO wake frequency */
|
||||
#define WAKE_DELAY_OF(v) ((v)->type == VOODOO_1 ? (TIMER_USEC * 2000) : WAKE_DELAY_DEFAULT)
|
||||
#define WAKE_DELAY_OF(v) ((v)->type == VOODOO_1 ? (TIMER_USEC * 500) : WAKE_DELAY_DEFAULT)
|
||||
void
|
||||
voodoo_wake_fifo_thread(voodoo_t *voodoo)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user