|
JubeatPlus 3.9.11
|
The note hit-timing classifier used by the gameplay renderer. More...
Go to the source code of this file.
Functions | |
| unsigned char | ClassifyNoteTimingGrade (int nDeltaFrames) |
| Classifies a note's hit timing into a judgement grade from its frame delta. | |
The note hit-timing classifier used by the gameplay renderer.
Reconstructed from Ghidra program Jubeat (image base 0x100000000); all
__FILE__ path. Called from -[MarkerTestView draw] at 0x80fa4. | unsigned char ClassifyNoteTimingGrade | ( | int | nDeltaFrames | ) |
Classifies a note's hit timing into a judgement grade from its frame delta.
Each grade is an unsigned in-range test of nDeltaFrames plus a bias, the standard "is x within [-bias, limit-bias)" idiom, applied tightest window first so the best matching window wins. The windows are asymmetric and grow more so as they widen: each is one frame wider on the early side, and the outermost band is markedly lopsided (115 frames early against 84 late), which is deliberate tuning rather than an off-by-one. The compiler emitted the whole function without branches, as a chain of four CSEL instructions at 0x1ab524..0x1ab540.
The two failure grades are distinct, so a caller can tell an early miss from a late one.
| nDeltaFrames | The signed hit offset in frames; negative is early, positive is late. |