Compare commits

...

2 Commits

Author SHA1 Message Date
Esppiral V
e9e3bcb1f3 Disabble PVR_CULLING_SMALL 2025-05-01 19:02:32 +00:00
Esppiral V
88bcd37770 Edit rwdc.cpp 2025-05-01 10:33:31 +00:00

View File

@@ -1327,9 +1327,9 @@ static uint32 cullModePvr;
static inline unsigned pvrCullMode(uint32_t cullMode) { static inline unsigned pvrCullMode(uint32_t cullMode) {
switch(cullMode) { switch(cullMode) {
case CULLNONE: return PVR_CULLING_SMALL; case CULLNONE: return PVR_CULLING_NONE; // No descartar nada
case CULLBACK: return PVR_CULLING_CW; case CULLBACK: return PVR_CULLING_NONE; // No descartar nada
default: return PVR_CULLING_CCW; default: return PVR_CULLING_NONE; // No descartar nada
} }
} }
@@ -4957,17 +4957,17 @@ driverOpen(void *o, int32, int32)
#endif #endif
if (pvr_params.fsaa_enabled) { if (pvr_params.fsaa_enabled) {
pvr_params.vertex_buf_size = (1024 + 768) * 1024; pvr_params.vertex_buf_size = (1024 + 768) * 1024; // ≈ 1.75 MB
pvr_params.opb_overflow_count = 4; // 307200 bytes pvr_params.opb_overflow_count = 4; // 307200 bytes
} else { } else {
pvr_params.vertex_buf_size = (1024 + 1024) * 1024; pvr_params.vertex_buf_size = (int)(2.5f * 1024 * 1024); // 2.5 MB
pvr_params.opb_overflow_count = 7; // 268800 bytes pvr_params.opb_overflow_count = 7; // 268800 bytes
} }
if (videoModes[VIDEO_MODE].depth == 24) { if (videoModes[VIDEO_MODE].depth == 24) {
pvr_params.vertex_buf_size -= 128 * 1024; pvr_params.vertex_buf_size -= 128 * 1024;
pvr_params.opb_overflow_count -= pvr_params.fsaa_enabled ? 1 : 2; pvr_params.opb_overflow_count -= pvr_params.fsaa_enabled ? 1 : 2;
} }
#if !defined(DC_SIM) #if !defined(DC_SIM)
vid_set_mode(DM_640x480, videoModes[VIDEO_MODE].depth == 24 ? PM_RGB888P : PM_RGB565); vid_set_mode(DM_640x480, videoModes[VIDEO_MODE].depth == 24 ? PM_RGB888P : PM_RGB565);