Open akamming opened 4 years ago
N64 has Video Interface (VI) subsystem, which maps digital image to TV screen. VI controls, how the image will be placed on screen. For example, your MK64 shots. I'm sure it is PAL version of the game. It has black bars on top and bottom because PAL has more horizontal lines than NTSC. VI adds vertical offset when it maps image to screen. Emulation of VI is part of FB emulation.
Probably it is possible to apply reduced VI emulation when FB is off. I'll check it if I will have time on it.
Aha. Tx! Does this also imply that this issue would not be there on ntsc versions of games? Cause for several games there are both us and europe versions. I can check some games on both pal and ntsc and see if the issue dissappears with either one.. would be a nice workaround...
Just did a small test with regions. This is what i noticed: Cruis'n world. Us version works fine with fb emu off. Europe version has the above mentioned issues
For mario kart iit s the other way around.
I think you are correct in your assumption that this is the issue.
1 remark: i don't own an n64 myself, so the only way to obtain roms is from sites on the internet. And i can only look at the filename to determine the region. I already found a rom which has "(usa)" in the name but turned put to be the europe version (i could language select also french, german and spanish). So is there an other way to determine the region for a rom?
So is there an other way to determine the region for a rom?
You can use VI/S counter. PAL games use 50 VI/S, NTSC 60 VI/S.
You can use VI/S counter. PAL games use 50 VI/S, NTSC 60 VI/S.
ah..tx.! just checked and found out i cannot trust the filenaming to determin pal or ntsc. I have a romset which has a lot of files with (USA) in the filename, but only show 50 VI/S when i switch on the VI/S counter. Also some roms with (EUROPE) in the filename, but have 60 VI/S
Just did a recheck on the games which have the alignment issues and the ones which do not. Pattern is clear.
So is there an other way to determine the region for a rom?
Using GoodTools (GoodName/GoodSet/GoodN64), No-Intro and/or any other, like MAME's hash. File hashes in general.
You can use VI/S counter. PAL games use 50 VI/S, NTSC 60 VI/S.
And MPAL?
Hi,
FB emulation has quite a performance hit for the RPI. So i wanted to switch it off. However i found out in a most of the games the vertical alignment of objects is no longer correct, making it unusable.
I put in a lot of info in this issue description, hopefully this will help fixing it:
In the normal (FB Emu on), the screen is built up like this ( i'm not an expert so i probably use incorrect terms. sorry for that. ;-) )
when FB Emu is switched off i always notice the following pattern:
so my guess is the alignment of the drawing of the objects is done relative to the absolute top and bottom of the screen instead of the virtual top and bottom in the picture above.
An example with Mario Kart with Mupen64Plus with GLideN64: (can be reproduced with almost all games. Most games have this issue when FB emu is off):
This is what start of the race screen should look like (FB Emu on): but this is what it looks like with FB Emu off: As you can see this screen has all 3 problems.
a few seconds later when the game starts:
some other examples with libretro-mupenplus next 2.1, also using GLideN64: Mario Kart start screen (FB Emu on): same screen (FB Emu off): As you can see screen moved up.
Cruis'n World course select screen (FB Emu on): Same screen with FB Emu off: screen moved too far up and there is "garbage" left from previous screens with objects drawn too low, which weren't cleared correctly
Cruis'n World gameplay (FB Emu on): Same screen (FB Emy off):
Some additional info: I reproduced the same effect in 2 emulators:
and on 2 totally different hardware configs:
I know i can expect some compatibility issues when switching off FB emulation, but i would not expect this alignment issue to top and bottom. so i think it 's an issue in the code. and i really hope it can be fixed. Because of the big performance hit of FB Emulation on low end devices we can make a lot users happy if this issue could be fixed because playability would increase a lot if FB emu can be switched off.
This issue was originally logged as an issue on lr mupen64plus next, but since it turned out the be in the GLideN64 i post it here. Let me know if i can do anything to help solve it.