greyes5 / genplus-gx

Automatically exported from code.google.com/p/genplus-gx
Other
1 stars 1 forks source link

Random Static upon start with some games #118

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the emulator are you using (official, SVN revision,...)?
R501

Please provide any additional information below (Video settings, Console
region,...)
ok for some reason when i went to go start "phantasy star 2"(ntsc-u rev001) or 
"Test Drive 2 - The  Drive"(Ntsc-u) ill sometimes get really annoying 
static,though if i go to turn off "High-Quilty Fm" then resume the game then 
turn it back on the static goes away,im not sure if the behavior is reaccuring 
in other  games or not/=

Settings
Genplus-gx R501

Sound Settings:
_______________
V             V 
High-Quilty Fm:on
Fm-rolloff:99.50%
Fm Resolution:Max
Fm Volume:1.00
Psg Volume:1.50
Psg Noise Boost:on
Filtering:on 
Low Pass Rate:50%

Video Settings:
_______________
V             V 
Display:interlaced 
Tv Mode: 60 Hz
Gx Bilinear:on
VI Trap:on
VI Gamma:1.0
Ntsc:Composite 
Borders:V-Only
Aspect:Original(4:3)
Position:+05,-5

System Settings:
_______________
V             V 
Console Region:Usa  
System Lockups:on
68K:on
Tmss:on
Lock-on:off
Swap:off

Original issue reported on code.google.com by Darkone...@gmail.com on 29 Aug 2010 at 8:49

GoogleCodeExporter commented 8 years ago
hmm please look into this

Original comment by Darkone...@gmail.com on 7 Sep 2010 at 2:24

GoogleCodeExporter commented 8 years ago
can't confirm this. just tried at least Phantasy Star 2 US Rev01 with r501 and 
your settings and everything is fine. no stuttering or "static".

Original comment by gora.pat...@gmail.com on 8 Sep 2010 at 4:56

GoogleCodeExporter commented 8 years ago
alright well ill see if maybe i can catch a video of it later on

Original comment by Darkone...@gmail.com on 8 Sep 2010 at 7:04

GoogleCodeExporter commented 8 years ago
 at the very beginning before i got to the settings you should be able to hear it http://www.megaupload.com/?d=U7ICSVIU 

Original comment by Darkone...@gmail.com on 8 Sep 2010 at 7:31

GoogleCodeExporter commented 8 years ago
i've been now booting up some games because i wanted to do some screenshots for 
the Game Select menu and this bug appears for me as well now. i guess its game 
unspecific. the sound just gets broken and sounds totally scratchy. turning 
on/off Sound Filtering works for me either, instead turning on/off HQ Sound. 
But i have to reboot the game.

Original comment by gora.pat...@gmail.com on 10 Sep 2010 at 7:26

GoogleCodeExporter commented 8 years ago
I noticed this, yes but it's quite hard to have it reproduced, seems to happen 
randomly after loading many games. And it's  not game related, it seems to be a 
bug from the recent changes I made to get ride of sound skipping issues in 
interlaced modes.

This is enforced by the fact it disappears when resetting audio (which occurs 
when you hard reset a game, change region or audio or video settings...).

I'd need to know if it ever happens when HQ FM is disabled and if Render mode 
(original vs interlaced) has any influence on that.

Original comment by ekeeke31@gmail.com on 11 Sep 2010 at 6:17

GoogleCodeExporter commented 8 years ago
Sound Settings:
_______________
V             V 
High-Quilty Fm:on
Fm-rolloff:99.50%
Fm Resolution:Max
Fm Volume:1.00
Psg Volume:1.50
Psg Noise Boost:on
Filtering:on 
Low Pass Rate:50%

Video Settings:
_______________
V             V 
Display:original
Tv Mode: 60 Hz
Gx Bilinear:off
VI Trap:on
VI Gamma:1.0
Ntsc:off
Borders:V-Only
Aspect:Original(4:3)
Position:+05,-5

System Settings:
_______________
V             V 
Console Region:Usa  
System Lockups:on
68K:on
Tmss:on
Lock-on:off
Swap:off

same results still occurring 

Original comment by Darkone...@gmail.com on 12 Sep 2010 at 1:11

GoogleCodeExporter commented 8 years ago
oh and hq was on the same steps to fix it work,i tried with it off and it still 
occurs i think

Original comment by Darkone...@gmail.com on 12 Sep 2010 at 2:45

GoogleCodeExporter commented 8 years ago
Would also be useful if you could figure on which revision it started happening.

Original comment by ekeeke31@gmail.com on 13 Sep 2010 at 10:33

GoogleCodeExporter commented 8 years ago
R501 

Original comment by Darkone...@gmail.com on 13 Sep 2010 at 2:56

GoogleCodeExporter commented 8 years ago
it may have started on earlier revs but i dont know for sure,the most recent 
rev i have used is the r501

Original comment by Darkone...@gmail.com on 13 Sep 2010 at 2:59

GoogleCodeExporter commented 8 years ago
it didnt happen with the revision with the fixed audio crackling in 60Hz  
interlaced/progressive mode in the topic i started. i didnt use any other 
revisions between that one and r501.

Original comment by gora.pat...@gmail.com on 13 Sep 2010 at 3:56

GoogleCodeExporter commented 8 years ago

someone should test r493 then r494, I personally can verify myself at the time 
being. 

Original comment by ekeeke31@gmail.com on 13 Sep 2010 at 5:02

GoogleCodeExporter commented 8 years ago
I figured the issue, it is caused by corrupted FM table on initialization, 
which is itself caused by the pow() function implemntation in devkitPPC newlib 
sometimes returning incorrect results.

I should be fixing this by using a precalculated static table since the values 
are constant but this is still quite annoying we can't rely on mathematic 
functions integrity :-/

Original comment by ekeeke31@gmail.com on 15 Sep 2010 at 9:51

GoogleCodeExporter commented 8 years ago
So fixing it in genplus-gx is realy just a workaround then :P

I don't know, but maybe it isn't that much more work to fix in newlib svn and 
commit a patch :P

Just so you won't run into this error again.

Original comment by svi...@gmail.com on 16 Sep 2010 at 2:44

GoogleCodeExporter commented 8 years ago
Exactly, also the pow() function is used elsewhere in the code.

Original comment by ekeeke31@gmail.com on 16 Sep 2010 at 6:27

GoogleCodeExporter commented 8 years ago
Should now be fixed in r502.

Workaround was to disable interrupts when executing the initialisation code 
that calls pow()function in a loop, thanks to shagkur for the idea.

Original comment by ekeeke31@gmail.com on 16 Sep 2010 at 11:39

GoogleCodeExporter commented 8 years ago

Original comment by ekeeke31@gmail.com on 16 Sep 2010 at 11:40

GoogleCodeExporter commented 8 years ago

Original comment by ekeeke31@gmail.com on 25 Sep 2010 at 5:13