Compare commits

...

1 Commits

Author SHA1 Message Date
Josh Pearson
36796dd7db Reduce rain streaks and drops to minimize PVR fillrate hit
Can improve performance by up to 10 FPS in areas when raining
2024-12-30 15:54:43 -07:00
2 changed files with 5 additions and 1 deletions

View File

@@ -301,7 +301,11 @@ void CWeather::AddRain()
float screen_width = SCREEN_WIDTH;
float screen_height = SCREEN_HEIGHT;
int cur_frame = (int)(3 * Rain) & 3;
#if defined(DC_SH4)
int num_drops = (int)(1 * Rain) + 2;
#elif
int num_drops = (int)(2 * Rain) + 2;
#endif
static int STATIC_RAIN_ANGLE = -45;
static int count = 1500;
static int add_angle = 1;

View File

@@ -58,7 +58,7 @@ public:
};
enum {
NUM_RAIN_STREAKS = 35
NUM_RAIN_STREAKS = 10
};
struct tRainStreak