GB: disable wave in APU due to perf regression

Signed-off-by: Mahyar Koshkouei <mk@deltabeard.com>
This commit is contained in:
Mahyar Koshkouei
2022-04-03 15:06:06 +01:00
parent 108c5bf797
commit 68b374d7a7
2 changed files with 7 additions and 5 deletions
+2 -1
View File
@@ -350,7 +350,8 @@ void audio_callback(void *userdata, void *restrict stream, int len)
update_square(stream, 0);
update_square(stream, 1);
update_wave(stream);
/* FIXME: Performance regression when wave is switched on. */
//update_wave(stream);
update_noise(stream);
}
+5 -4
View File
@@ -1,6 +1,6 @@
#define ENABLE_LCD 1
#define ENABLE_SOUND 0
#define ENABLE_SOUND 1
#define ENABLE_HIPASS 0
#define USE_DMA 0
@@ -181,7 +181,7 @@ void main_core1(void)
static const uint16_t green = 0x07D0;
union core_cmd cmd;
/* Initilise and control LCD on core 1. */
/* Initialise and control LCD on core 1. */
mk_ili9225_init();
/* Initilise DMA transfer for clearing the LCD screen. */
@@ -202,8 +202,9 @@ void main_core1(void)
mk_ili9225_write_pixels_end();
/* Set DMA transfer to be the length of a DMG line. */
//dma_channel_set_trans_count(dma_lcd, LCD_WIDTH, false);
//channel_config_set_read_increment(&c2, true);
dma_channel_set_trans_count(dma_lcd, LCD_WIDTH, false);
channel_config_set_read_increment(&c2, true);
//dma_sniffer_enable(dma_lcd, 0, true);
/* Set LCD window to DMG size. */
mk_ili9225_set_window(16, LCD_HEIGHT + 15,