PS2: Fix freezing and fix textures appearing in screen background

This commit is contained in:
UnknownShadow200 2023-12-02 20:18:38 +11:00
parent 2a80bf833e
commit 6422ecc4f2

View File

@ -119,9 +119,10 @@ static void InitDrawingEnv(void) {
packet_free(packet); packet_free(packet);
} }
// TODO: Find a better way than just increasing this hardcoded size
static void InitDMABuffers(void) { static void InitDMABuffers(void) {
packets[0] = packet_init(20000, PACKET_NORMAL); packets[0] = packet_init(50000, PACKET_NORMAL);
packets[1] = packet_init(20000, PACKET_NORMAL); packets[1] = packet_init(50000, PACKET_NORMAL);
} }
static void FlipContext(void) { static void FlipContext(void) {
@ -142,7 +143,7 @@ void Gfx_Create(void) {
InitBuffers(); InitBuffers();
InitDrawingEnv(); InitDrawingEnv();
InitDMABuffers(); 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; context = 1;
FlipContext(); FlipContext();