X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=plugins%2Fgpulib%2Fgpu_timing.h;h=9991fd80d8e8ac9b6f13d552f65d6ea2c2ee142d;hb=8412166f53abb220b85e0aff47924c04724abfa4;hp=363e608d5c06eef90321906f9ddbf0fbd808c09d;hpb=442afc304ad15b4f61f8808a184d971f834f4b3f;p=pcsx_rearmed.git diff --git a/plugins/gpulib/gpu_timing.h b/plugins/gpulib/gpu_timing.h index 363e608d..9991fd80 100644 --- a/plugins/gpulib/gpu_timing.h +++ b/plugins/gpulib/gpu_timing.h @@ -1,6 +1,6 @@ // very conservative and wrong -#define gput_fill(w, h) (23 + (4 + (w) / 32u) * (h)) +#define gput_fill(w, h) (23 + (4 + (w) / 16u) * (h)) #define gput_copy(w, h) ((w) * (h)) #define gput_poly_base() (23) #define gput_poly_base_t() (gput_poly_base() + 90) @@ -13,3 +13,7 @@ #define gput_line(k) (8 + (k)) #define gput_sprite(w, h) (8 + ((w) / 2u) * (h)) +// sort of a workaround for lack of proper fifo emulation +#define gput_sum(sum, cnt, new_cycles) do { \ + sum += cnt; cnt = new_cycles; \ +} while (0)