MathewWi / snes9x-gx

Automatically exported from code.google.com/p/snes9x-gx
0 stars 0 forks source link

Weird Choppy Framerate Issue #498

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Play any game (easily noticeable on a fast sidecrolling game, like Ninja
Gaiden Trilogy)

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

A few seconds after starting a game, the framerate will start to skip (it
will slowdown for a moment, then recover the speed, and slowdown again...).
Anyway, I'm not sure exactly how to define it, but it's something very
annoying).

The game will return to normal speed if you call the menu, but after a few
seconds the problem will start again.

I tried all video modes (original, filtered and unfiltered) and the same
problem happens. I also tried a different video cable and a different TV.
Same problem.

This issue only happens with the last version (Snes9x GX 4.1.9). 

The last version of FCE Ultra GX also have a framerate problem (the
framerate becomes really jerky after a few seconds and stay like that), but
only when using the original video mode. Entering and exiting the menu will
also return the framerate to normal, but the issue happens again after a
few seconds.

I'm really surprised that this problem wasn't reported before. 

Original issue reported on code.google.com by thiagoalvesdealmeida@gmail.com on 26 May 2010 at 1:30

GoogleCodeExporter commented 9 years ago
I forgot to say that I'm not using any filter. 

Original comment by thiagoalvesdealmeida@gmail.com on 26 May 2010 at 1:33

GoogleCodeExporter commented 9 years ago
Yes, I notice it as well. A good example would be a side scrolling game 
(Actraiser is
a good example, in the first level); the screen will pan left as it normally 
should,
but the framerate can't keep at a constant 60fps, so the scrolling will skip 
for a
slit second and then continue as if nothing happened.  This might have to do 
with the
sound buffer issues snes9xgx has, but who knows?  If I could only simulate 
this. 

Original comment by nintendonerd1889@gmail.com on 27 May 2010 at 3:08

GoogleCodeExporter commented 9 years ago
I think the problem is related to video only, since compiling the source code 
with
video.cpp and video.h files before r570 changes fixed the problem.

Original comment by thiagoalvesdealmeida@gmail.com on 27 May 2010 at 3:28

GoogleCodeExporter commented 9 years ago
PAL or NTSC?

Original comment by dborth@gmail.com on 27 May 2010 at 5:03

GoogleCodeExporter commented 9 years ago
I use NTSC for the ROM/TV, but as for thiagoalvesdealmeida, I don't know. He 
should
have let you know by now. 

Original comment by nintendonerd1889@gmail.com on 27 May 2010 at 6:45

GoogleCodeExporter commented 9 years ago
Sorry, it's all NTSC (Wii, TV and roms).

Original comment by thiagoalvesdealmeida@gmail.com on 27 May 2010 at 8:14

GoogleCodeExporter commented 9 years ago
That's okay, hopefully this will help determine the issue; but yes, as you said
before, this didn't happen prior to 4.1.8.

Original comment by nintendonerd1889@gmail.com on 28 May 2010 at 1:25

GoogleCodeExporter commented 9 years ago
are your Wiis set to fullscreen or widescreen? component or composite cables? 
are 
you certain it happens on Original mode too? because I didn't touch those 
modes... :s

Original comment by dborth@gmail.com on 28 May 2010 at 7:51

GoogleCodeExporter commented 9 years ago
same problem here. all games doesn't scroll smooth anymore. there's like a 
framedrop
every 1-2 seconds. playing all my games in 480p. US Versions of course. screen 
is set
to widescreen. i'm using component cable on an lcd tv. scrolling was smooth
constantly in previous versions with this setup.

Original comment by gora.pat...@gmail.com on 28 May 2010 at 10:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'm using a CRT TV, with component cables (but I also tried composite). The 
problem
also happens with the original mode. I'm sure of it.

Original comment by thiagoalvesdealmeida@gmail.com on 28 May 2010 at 2:39

GoogleCodeExporter commented 9 years ago
I also noticed this problem with both the latest version of Snes9x GX and FCE 
Ultra 
GX.

Original comment by tmo...@gmail.com on 28 May 2010 at 4:16

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Will this info help?

TV: Sony Bravia 46" LCD HDTV (NTSC/ATSC)

Aspect Ratio: 16;9 (wii system menu) 4;3 (snes9x/homebrew channel emulators)

Filter: Both original ("filtered",not "hq2x") and unfiltered were used 

Snes9x version: 4.1.7 - 4.1.9 (issue is quite visible in these versions)

Does this happen in the Snes9x 1.52 Windows Port? Nope. Video scrolls
vertically/horizontally like butter. As mentioned before, the panning/scrolling 
is
interrupted for 0.5s or so, but continues as if it never happened. 

Wii System Menu: 4.1U (USA)

Something tells me it has nothing to do with the TV being NTSC/PAL/SCART. I'm
thinking it's directly related to the sound skipping issues reported in issue 
466.

Original comment by nintendonerd1889@gmail.com on 28 May 2010 at 7:24

GoogleCodeExporter commented 9 years ago
So are you saying the issue started back on 4.1.7, and wasn't present on 4.1.6?

Original comment by dborth@gmail.com on 28 May 2010 at 8:09

GoogleCodeExporter commented 9 years ago
As far I can recall, I believe it started back in 4.1.7. Is this something that 
can
be pinpointed?

Original comment by nintendonerd1889@gmail.com on 28 May 2010 at 8:27

GoogleCodeExporter commented 9 years ago
That's not correct. The issue only started on the last version (4.1.9). 

4.1.8 works fine. I'm almost sure that r570 changes introduced the problem.

Original comment by thiagoalvesdealmeida@gmail.com on 28 May 2010 at 9:58

GoogleCodeExporter commented 9 years ago
Just to add more information...

I downloaded the 4.1.9 source code and replaced: 

video.cpp
video.h
menu.cpp
freeze.cpp

with the respective files before r570 changes. After compiling it, the problem 
was fixed.

Original comment by thiagoalvesdealmeida@gmail.com on 28 May 2010 at 10:05

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
How the crap did you replace those files without getting a red icon? I tried 
that and
the source wouldn't compile!

Original comment by nintendonerd1889@gmail.com on 28 May 2010 at 11:18

GoogleCodeExporter commented 9 years ago
Download the last source code and replace the files I mentioned before with 
files
from this version...

http://code.google.com/p/snes9x-gx/source/browse/tags/4.1.8/source/video.cpp
http://code.google.com/p/snes9x-gx/source/browse/tags/4.1.8/source/video.h
http://code.google.com/p/snes9x-gx/source/browse/tags/4.1.8/source/menu.cpp
http://code.google.com/p/snes9x-gx/source/browse/tags/4.1.8/source/freeze.cpp

To download these files: "File info" > Right mouse button on "View raw file" > 
Save
link as.

Original comment by thiagoalvesdealmeida@gmail.com on 29 May 2010 at 1:25

GoogleCodeExporter commented 9 years ago
You just replace them in the "source" folder for the latest official version 
(4.1.9) or 
the latest beta revision? Do you delete the original files and THEN copy them? 
I'm 
still getting red icons.

Original comment by nintendonerd1889@gmail.com on 29 May 2010 at 1:38

GoogleCodeExporter commented 9 years ago
Forget about the red icons. Just copy those files to the source folder (official
version or beta revision), replacing the original files with the ones I told 
you about.

Original comment by thiagoalvesdealmeida@gmail.com on 29 May 2010 at 2:31

GoogleCodeExporter commented 9 years ago
It won't using tools-->make with the "makefile" using Programmers Notepad when I
replace the files in the Source folder.  Unless you're using another program to
compile, I can't find any other way to make the emulator. 

Original comment by nintendonerd1889@gmail.com on 29 May 2010 at 2:41

GoogleCodeExporter commented 9 years ago
Would it help to show a video of what I'm doing and so I can tell you what 
happens?
Video: http://www.youtube.com/watch?v=roOmEPMq0Og

Original comment by nintendonerd1889@gmail.com on 29 May 2010 at 2:53

GoogleCodeExporter commented 9 years ago
I'm not sure what's going on in your end, but anyway, here is my folder. You 
can also
find the emulator already compiled inside...

http://rapidshare.com/files/392781678/snes9xgx.rar.html 

Original comment by thiagoalvesdealmeida@gmail.com on 29 May 2010 at 4:25

GoogleCodeExporter commented 9 years ago
Thank you, I don't know what's going on, either. One thing's for sure, it ain't 
normal. 

Original comment by nintendonerd1889@gmail.com on 29 May 2010 at 4:50

GoogleCodeExporter commented 9 years ago
thiagoalvesdealmeida, do you have the 16:9 Correction option enabled?

Original comment by dborth@gmail.com on 29 May 2010 at 10:46

GoogleCodeExporter commented 9 years ago
No. I'm using a 4:3 TV. 16:9 is not enabled.

Original comment by thiagoalvesdealmeida@gmail.com on 30 May 2010 at 12:48

GoogleCodeExporter commented 9 years ago
just wanted to add, that with thiagoalvesdealmeida's compiled version, 
everything is
fine again here too. no framedrops anymore. constantly smooth. as mentioned 
before,
i'm playing on an lcd tv, component cable and 16:9 Correction enabled.

Original comment by gora.pat...@gmail.com on 30 May 2010 at 2:16

GoogleCodeExporter commented 9 years ago
"No. I'm using a 4:3 TV. 16:9 is not enabled."  Same here, although I have a 
16;9 LCD
TV, I'm using 4:3 aspect ratio.

Original comment by nintendonerd1889@gmail.com on 30 May 2010 at 2:35

GoogleCodeExporter commented 9 years ago
does this fix it? http://tantric.dyndns.org/snes9xgx-beta.zip

Original comment by dborth@gmail.com on 30 May 2010 at 5:51

GoogleCodeExporter commented 9 years ago
I did try the build that thiagoalvesdealmeida made and while the framerate 
issue did
disappear, the audio issue still exists (maybe it has to do certain sound buffer
settings)...? I'll give your SVN/beta build a try and let you know what I see; 
I'll
get back with you ASAP. 

Original comment by nintendonerd1889@gmail.com on 30 May 2010 at 5:57

GoogleCodeExporter commented 9 years ago
does this fix it? http://tantric.dyndns.org/snes9xgx-beta.zip

no. it doesn't. :( going back to thiagoalvesdealmeida's build.

Original comment by gora.pat...@gmail.com on 30 May 2010 at 6:20

GoogleCodeExporter commented 9 years ago
ok...because that build reverts the video changes. thiagoalvesdealmeida, can 
you not 
isolate the change that made this happpen?

Original comment by dborth@gmail.com on 30 May 2010 at 6:26

GoogleCodeExporter commented 9 years ago
OK. I will try.

Original comment by thiagoalvesdealmeida@gmail.com on 31 May 2010 at 1:10

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I finally found the video change that added this issue. See above...

http://i46.tinypic.com/315y73m.jpg

(New version on the left, old version on the right)

Original comment by thiagoalvesdealmeida@gmail.com on 31 May 2010 at 4:11

GoogleCodeExporter commented 9 years ago
Actually, r567 video changes introduced this bug.

Original comment by thiagoalvesdealmeida@gmail.com on 31 May 2010 at 4:24

GoogleCodeExporter commented 9 years ago
ok, try these two builds, let me know:

http://tantric.dyndns.org/snes9xgx-testa.zip
http://tantric.dyndns.org/snes9xgx-testb.zip

Original comment by dborth@gmail.com on 31 May 2010 at 7:02

GoogleCodeExporter commented 9 years ago
What exactly has been changed in these two builds? (What do you want use to 
look for)?

Original comment by nintendonerd1889@gmail.com on 31 May 2010 at 9:48

GoogleCodeExporter commented 9 years ago
if I tell you what was changed that might bias the testing. I want to know if 
the 
issue is resolved in one, both, or neither of the builds.

Original comment by dborth@gmail.com on 31 May 2010 at 10:06

GoogleCodeExporter commented 9 years ago
Oh.....my bad for asking. I'll figure it out. Sorry. XD

Original comment by nintendonerd1889@gmail.com on 31 May 2010 at 10:21

GoogleCodeExporter commented 9 years ago
In SVNbuild A, the weird FPS/scrolling issue is gone (smooth as butter), and as 
for
the occasional sound hiccup, still present. Gettin' closer! 

Original comment by nintendonerd1889@gmail.com on 31 May 2010 at 10:42

GoogleCodeExporter commented 9 years ago
and build B?

I'm not touching sound here, this is the "choppy framerate" issue :P

Original comment by dborth@gmail.com on 31 May 2010 at 10:45

GoogleCodeExporter commented 9 years ago
Okay, I wasn't sure. As for build B, I haven't the chance to test it yet

Original comment by nintendonerd1889@gmail.com on 31 May 2010 at 11:48

GoogleCodeExporter commented 9 years ago
The problem is fixed on both versions. Thanks, dborth.

nintendonerd1889, the only person that really knows how to fix this sound issue 
is
ekeeke31 (genplus-gx author). It's no use ask dborth for it. So, the sound issue
depends on a future cooperation from ekeeke (a good possibility, since he seems 
to be
a really nice guy).

Original comment by thiagoalvesdealmeida@gmail.com on 1 Jun 2010 at 1:24

GoogleCodeExporter commented 9 years ago
it's true, I'm really shooting in the dark when it comes to audio timing code.

Original comment by dborth@gmail.com on 1 Jun 2010 at 2:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I didn't know that ekeeke31 was the only one who could that....my bad.  Too bad
there's no way to ask him about it, or should I ask? Just wondering.

Original comment by nintendonerd1889@gmail.com on 1 Jun 2010 at 2:46