]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gpu.cpp
Added preliminary dirty rectangle support to the GUI
[virtualjaguar] / src / gpu.cpp
index 681cbcf1fa558c1fa53fdb70f0ce6ab06bf12c7a..4729126928d99b4f1e3f2c4eb941b79d5194afcb 100644 (file)
@@ -12,6 +12,7 @@
 // Same problem with ADDC...
 //
 
+#include <stdlib.h>
 #include "gpu.h"
 
 //#define GPU_DEBUG
@@ -239,7 +240,7 @@ static void gpu_opcode_pack(void);
 //This is wrong, wrong, WRONG, but it seems to work for the time being...
 //(That is, it fixes Flip Out which relies on GPU timing rather than semaphores. Bad developers! Bad!)
 //What's needed here is a way to take pipeline effects into account (including pipeline stalls!)...
-uint8 gpu_opcode_cycles[64] = 
+/*uint8 gpu_opcode_cycles[64] = 
 {
        1,  1,  1,  1,  1,  1,  1,  1,
        1,  1,  1,  1,  1,  1,  1,  1,
@@ -249,7 +250,18 @@ uint8 gpu_opcode_cycles[64] =
        2,  2,  2,  3,  3,  1,  1,  1,
        1,  1,  1,  1,  1,  1,  4,  1,
        1,  1,  3,  3,  1,  1,  1,  1
-};
+};//*/
+uint8 gpu_opcode_cycles[64] = 
+{
+       1,  1,  1,  1,  1,  1,  1,  1,
+       1,  1,  1,  1,  1,  1,  1,  1,
+       1,  1,  1,  1,  1,  1,  1,  1,
+       1,  1,  1,  1,  1,  1,  1,  1,
+       1,  1,  1,  1,  1,  1,  1,  1,
+       1,  1,  1,  1,  1,  1,  1,  1,
+       1,  1,  1,  1,  1,  1,  1,  1,
+       1,  1,  1,  1,  1,  1,  1,  1
+};//*/
 
 void (*gpu_opcode[64])()= 
 {