From 6422ecc4f2d10ad4b8b37e956d1909499819d1bb Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sat, 2 Dec 2023 20:18:38 +1100 Subject: [PATCH] PS2: Fix freezing and fix textures appearing in screen background --- src/Graphics_PS2.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Graphics_PS2.c b/src/Graphics_PS2.c index 3caf48d3b..6c8a7289d 100644 --- a/src/Graphics_PS2.c +++ b/src/Graphics_PS2.c @@ -119,9 +119,10 @@ static void InitDrawingEnv(void) { packet_free(packet); } +// TODO: Find a better way than just increasing this hardcoded size static void InitDMABuffers(void) { - packets[0] = packet_init(20000, PACKET_NORMAL); - packets[1] = packet_init(20000, PACKET_NORMAL); + packets[0] = packet_init(50000, PACKET_NORMAL); + packets[1] = packet_init(50000, PACKET_NORMAL); } static void FlipContext(void) { @@ -142,7 +143,7 @@ void Gfx_Create(void) { InitBuffers(); InitDrawingEnv(); InitDMABuffers(); - tex_offset = graph_vram_size(64, 64, GS_PSM_32, GRAPH_ALIGN_PAGE); + tex_offset = graph_vram_allocate(256, 256, GS_PSM_32, GRAPH_ALIGN_BLOCK); context = 1; FlipContext();