This commit is contained in:
Zack Buhman 2025-01-21 22:23:02 -06:00
parent 8f49f69e7e
commit ca5024d14f

View File

@ -215,6 +215,8 @@ public class JavaCubeMemory {
int core = 0; int core = 0;
int ta = 0; int ta = 0;
System.out.println("main"); System.out.println("main");
int framebuffer_tiles_width = framebuffer_width / 32;
int framebuffer_tiles_height = framebuffer_height / 32;
while (true) { while (true) {
// unpipelined render loop // unpipelined render loop
TAFIFOPolygonConverter.init(TextureMemoryAllocation.isp_tsp_parameters_start[ta], TAFIFOPolygonConverter.init(TextureMemoryAllocation.isp_tsp_parameters_start[ta],
@ -223,8 +225,8 @@ public class JavaCubeMemory {
TextureMemoryAllocation.object_list_end[ta], TextureMemoryAllocation.object_list_end[ta],
opb_size_total, opb_size_total,
ta_alloc, ta_alloc,
framebuffer_width / 32, framebuffer_tiles_width,
framebuffer_height / 32); framebuffer_tiles_height);
transfer_cube_scene(); transfer_cube_scene();
TAFIFOPolygonConverter.wait_translucent_list(); TAFIFOPolygonConverter.wait_translucent_list();
@ -239,7 +241,7 @@ public class JavaCubeMemory {
Memory.putU4(Holly.FB_R_SOF1, TextureMemoryAllocation.framebuffer_start[core]); Memory.putU4(Holly.FB_R_SOF1, TextureMemoryAllocation.framebuffer_start[core]);
while ((CoreBits.spg_status__vsync(Memory.getU4(Holly.SPG_STATUS)) != 0)); while ((CoreBits.spg_status__vsync(Memory.getU4(Holly.SPG_STATUS)) != 0));
core = (core + 1) % 1; core = (core + 1) & 1;
theta += Math.DEGREES_TO_RADIANS; theta += Math.DEGREES_TO_RADIANS;
} }