melonDS-emu / melonDS

DS emulator, sorta
https://melonds.kuribo64.net
GNU General Public License v3.0
3.17k stars 523 forks source link

The Sims 2 (EUR): Wavely heat effect isn't render properly in OpenGL renderer #2072

Closed RafaelTrepaUnCarballo closed 3 months ago

RafaelTrepaUnCarballo commented 3 months ago

In the desert, the visuals are supposedly distort horizontally on waves. Software mode shows this effect, but both OpenGL renders don't, moving the whole frame a few pixels left and right instead. Also, OpenGL (Compute shaders) corrupts the image at x10 resolution and beyond.

Game: 0162 - Sims 2, The (Europe) (En,Fr,De,Es,It) (EUR) MD5: 676E829FA7AAF658C4DF2046E985730F

Tested on:

Save: 0162 - Sims 2, The (Europe) (En,Fr,De,Es,It).zip

Arisotura commented 3 months ago

sounds like there's some midframe effect going on that OpenGL isn't emulating right

yeah, I think they're doing HDMA on the BG0 horizontal scroll register. the OpenGL compositor passes it as a uniform, only allowing it to change once per frame.