Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Floating-point precision issues in VU0 (macrocode/microcode) and VU1

Aperta
#165 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

@gustavoauneth ci sta già lavorando.

Dal 8/7/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug recompiler

In vu0 and vu1, in both macrocode and microcode, if you want to achieve something more precise, there's a problem with the hardware (or at least it's an obvious problem): if you multiply 1 by X, there's no guarantee that the result will be X, although X * 1 guarantees it.
In theory for the game programmer, it's just multiplying X * 1 instead of 1 * X, but for us we would have to emulate this technique, these links may be useful:

Detecting emu vu floats
PS2 Floating Point Rust
DobbieStation Issue 51
EEFloat
PCSX2 commit 0392a64e992ac3fa5445dbe484933616cb204674
Emulating ps2 floating point nums ieee-754 diffs part 1

It's debatable whether or not we need to be super precise with floating-point numbers, because perhaps some games will take advantage of this problem, or maybe the programmer who created it isn't even aware of it.

Lingua principale
C++
Stelle
3.3k
Fork
149
Merge medio
5g 10h
PR unite (30g)
4

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ran-j/PS2Recomp

Tutte le issue di ran-j/PS2Recomp

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.