]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/gpu.cpp
UI cleanups, added RAM randomization for main RAM & GPU local RAM.
[virtualjaguar] / src / gpu.cpp
index b83051cab3ddf478d4446de6cfe0f5e6bd88d107..1f1bef9351cbe14eb6ab5ba18a1c94d00d5fa7e8 100644 (file)
@@ -1044,6 +1044,10 @@ void GPUReset(void)
        gpu_in_exec = 0;
 //not needed   GPUInterruptPending = false;
        GPUResetStats();
+
+       // Contents of local RAM are quasi-stable; we simulate this by randomizing RAM contents
+       for(uint32_t i=0; i<4096; i+=4)
+               *((uint32_t *)(&gpu_ram_8[i])) = rand();
 }
 
 uint32_t GPUReadPC(void)