hrydgard/ppsspp — pull request #460 by unknownbrackets (2013-01-21 06:00:23+00:00)
Title: Decrement downcount in the interpreter

Okay, so... what can I say? It wasn't being decremented.

Obviously, this impacts performance. The interpreter is slower with this change.

However, it actually fixes performance issues in at least Who's That Flying? and Worms 1 Demo. They are most likely waiting for timers or what have you, and spinning a lot more because they weren't happening.

Let me know if I'm somehow wrong, and the downcount is actually being decremented somewhere I can't find (aside from delay slots.)

Why it was working: it was only being decremented inside delay slots. However, delay slots are quite common, especially in loops. I guess that was somehow often enough...

I intentionally left it out of the faster interpreter, which makes it moreso a faster interpreter.

This + the table changes in #459 help make the downcount match up with jit.

-[Unknown]