Increased the cycle time of the vertex command. Fixes "Speed Challenge: Jacques Villeneuve's Racing Vision".

This commit is contained in:
skidau 2013-02-16 22:54:10 +11:00
parent 45efced280
commit 0e2c3f3483
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ void RunGpuLoop()
cyclesExecuted = OpcodeDecoder_Run(g_bSkipCurrentFrame); cyclesExecuted = OpcodeDecoder_Run(g_bSkipCurrentFrame);
if (Common::AtomicLoad(CommandProcessor::VITicks) > cyclesExecuted && Core::g_CoreStartupParameter.bSyncGPU) if (Common::AtomicLoad(CommandProcessor::VITicks) > cyclesExecuted && Core::g_CoreStartupParameter.bSyncGPU)
Common::AtomicAdd(CommandProcessor::VITicks, -(s32)cyclesExecuted); Common::AtomicAdd(CommandProcessor::VITicks, -(s32)cyclesExecuted);
Common::AtomicStore(fifo.CPReadPointer, readPtr); Common::AtomicStore(fifo.CPReadPointer, readPtr);

View File

@ -237,7 +237,7 @@ u32 FifoCommandRunnable(u32 &command_size)
command_size = 1 + 2; command_size = 1 + 2;
u16 numVertices = DataPeek16(1); u16 numVertices = DataPeek16(1);
command_size += numVertices * VertexLoaderManager::GetVertexSize(cmd_byte & GX_VAT_MASK); command_size += numVertices * VertexLoaderManager::GetVertexSize(cmd_byte & GX_VAT_MASK);
cycleTime = 12 * numVertices; // This depends on the number of pixels rendered cycleTime = 393 * numVertices; // This depends on the number of pixels rendered
} }
else else
{ {