CBPS Forums

Console Hacking => PS Vita => General => Topic started by: kristianity77 on June 24, 2020, 08:26:19 AM

Title: frame pacing performance issue PS1/adrenaline
Post by: kristianity77 on June 24, 2020, 08:26:19 AM
Hi all.

Ive signed up to these forums to try and give some feedback and maybe get some help with Adrenaline and using PS1 games on a normal PS Vita.

I too and having frame pacing issues in a lot of PS1 games (its easier to spot on 60fps titles like Alundra, Castlevania SOTN, Rayman etc) where the screen when scrolling will suddenly do small hitches when it should be smooth.

I tried the Adrenaline_User replacement file suggested earlier in the thread thinking this might help but it didnt and this has been an issue with Adrenaline since it began to my knowledge. 

I uploaded a video which shows what happens here:

https://youtu.be/modTAQROKU8

Its easy to spot if the video is viewed at 60fps in youtube.

This forum seems to be the most active I can find regarding PS Vita so thought I'd bring my issue here for help!

Im not using any compressed games or anything like that and have made sure adrenaline is running at 333mhz also.

The strange thing is, I also own the digital version of this game officially (which boots from the vita screen and doesnt touch adrenaline at all)  and this has none of the hitches.  Its the same for Castlevania (hitches on adrenaline, doesnt on PSN release)
Title: Re: frame pacing performance issue PS1/adrenaline
Post by: chrisdevchroma on June 24, 2020, 09:54:49 AM
Hi, you post has been split into a separate topic for more visibility as it isn't a issue specific with sharpscale.
Title: Re: frame pacing performance issue PS1/adrenaline
Post by: dots_tb on June 25, 2020, 06:39:43 AM
Could you tell us a little more about the graphical settings and other information about the setup (plugins and such) being used?
Title: Re: frame pacing performance issue PS1/adrenaline
Post by: kristianity77 on June 25, 2020, 03:36:43 PM
Could you tell us a little more about the graphical settings and other information about the setup (plugins and such) being used?

I've tried with every graphic setting off as a last resort.  So everything in adrenaline original .  There are no plugins in adrenaline I basically have nothing but a clean install of adrenaline.  It's a ps vita slim.  Sd2vita.  400gb SanDisk card (have tried others too to rule the sd card out).

I've also tested on a vita oled and get the same issues.  There is no stutter on psp games in adrenaline, they are totally fine.

I've had my vita years and to my knowledge this has always been an issue ever since adrenaline came out.  It was made "better" in the latest but one release (can be seen on release notes) but it's not properly fixed.

It's an easy spot on ps1 games that are 2d and run at 60fps.  So games like Alundra, Castlevania, klonoa, Megaman titles, einhnader, rtype delta,Rayman are all easy to spot the issue.

It's not as easy to see on 30fps titles because the frame rate is halved as standard, although it's still evident.
Title: Re: frame pacing performance issue PS1/adrenaline
Post by: zy on June 25, 2020, 09:34:04 PM
Hi OP,

Please take a look at sharpscale topic
There a user by the name crueltott uploaded a new version of adrenaline that fixed the pacing for castlevania sotn.

Let us know if that version he posted (in page 3 or 4) helps out

https://forum.devchroma.nl/index.php/topic,112.45.html
Title: Re: frame pacing performance issue PS1/adrenaline
Post by: kristianity77 on June 25, 2020, 11:45:12 PM
Hi.  I tried that when I seen it a few days ago.  It didn't work for me I still had the issues.  It wasn't a new version of adrenlaine I don't think, just one small file to replace
Title: Re: frame pacing performance issue PS1/adrenaline
Post by: zy on June 26, 2020, 01:29:58 AM
It worked for me and others
Castlevania sotn is pixel perfect and the frame pacing is flawless.

Make sure you have the latest version of adrenaline and follow the simple instructions that crueltott layed out in that post.
Title: Re: frame pacing performance issue PS1/adrenaline
Post by: kristianity77 on June 26, 2020, 11:13:53 AM
Aren't you all using ps vita TVs though?  I have the latest adrenaline installed and all I did was change the adrenaline_user.suprx file that he has on his link.  I then restarted my vita, tried adrenaline again and have exactly the same problem.  This is both an oled and a slim. 

Edit

Do you have to have the sharpscale plugin installed also for this to work? On a regular vita, not a vita tv?
Title: Re: frame pacing performance issue PS1/adrenaline
Post by: kristianity77 on June 26, 2020, 01:11:45 PM
Im assuming people are having none of the issues im having an now ive run out of ideas to try and fix this.  Ive tried the fixes esehwere in the forum and they just do not work.

Can someone else with a vita that doesnt think they are having issues please try a game that is really easy to spot the frame pacing issues.  Rayman 1 is a perfect example.  If someone tries this and gets a 60fps smooth lock then I really need to know what you are doing to get there as I can do nothing to solve issues on a load of games.

https://youtu.be/wgM3mjkSfvk

Thats Rayman, viewed in 60fps to make it easier to see the problems

With regards to Alundra and Rayman this is what I have tried:

Both games USA Versions from PKGJ - frame pacing issues
Downloaded ISO files (USA) converted to .PBP files with little to no compression to rule that out - no difference
Disabled all plugins on vita system - no difference.
2 different Micro SD Cards - No difference
222/333 speed switches on PSP - no difference
Messed with all official settings and adrenaline settings - no difference
Two Vitas tested on, a slim and an oled - no difference.

Both files tested on an original PSP3000 - Both games flawless, no Frame Pacing issues at all.

Am stuck :D
Title: Re: frame pacing performance issue PS1/adrenaline
Post by: kristianity77 on June 26, 2020, 05:54:36 PM
I know that anyone that reads this part is going to think im nuts and hasnt got a clue what they are talking about, but I believe Ive figured out the reason for my stutters, but not how to fix them.

Its sound related.

Hear me out.

Alundra - the stutter is easy to see when going left to right accross the screen, in the opening area once the game starts proper.  Whats not so easy to spot, is that the stutter is linked to the sound.  A couple of drum beats and symbols that play at the same time, cause the video stutter.  Its that accurate, I can now predict where the stutter comes in, and it does , 100% of the time.

So I thought then that this may be an issue with SD card read speeds etc.  But again, provided you are in a PS1 game that doesnt require a load (Alundra, you can run around the village, with the music and sound effects playing) without loading.  So all of that must sit in memory.  You can test this because you can remove the SD2Vita, and the game will carry on playing, and continue to stutter in the same place, due to sound.  So it cannot be an SD issue?  I think, although im no expert in the slightest, that video stutters, are caused by sound.  At least in my case!

But it would be nice if people could test what ive tested, to see if they dont get it.
Title: Re: frame pacing performance issue PS1/adrenaline
Post by: dots_tb on June 27, 2020, 01:25:46 PM
Out of curiosity, I attempted to utilize CoreUnlocker80000H under the theory that the pops audio thread is fighting with the Adrenaline threads. Assuming that the Adrenaline is even locked to the user cores..

https://forum.devchroma.nl/index.php/topic,203.0.html (https://forum.devchroma.nl/index.php/topic,203.0.html)

So please install CoreUnlocker80000H and the attached module. All this does is set the affinity masks of Adrenaline threads to the one specified in that thread. It should also have CruelTott's changes.

I have no idea even if I did it properly, since not sure how to measure the cores in Adrenaline and also I am a baka and can't even see the stutters.

Also let me know if there any other issues, since compiling Adrenaline is a mess.
Title: Re: frame pacing performance issue PS1/adrenaline
Post by: kristianity77 on June 29, 2020, 10:45:59 AM
Out of curiosity, I attempted to utilize CoreUnlocker80000H under the theory that the pops audio thread is fighting with the Adrenaline threads. Assuming that the Adrenaline is even locked to the user cores..

https://forum.devchroma.nl/index.php/topic,203.0.html (https://forum.devchroma.nl/index.php/topic,203.0.html)

So please install CoreUnlocker80000H and the attached module. All this does is set the affinity masks of Adrenaline threads to the one specified in that thread. It should also have CruelTott's changes.

I have no idea even if I did it properly, since not sure how to measure the cores in Adrenaline and also I am a baka and can't even see the stutters.

Also let me know if there any other issues, since compiling Adrenaline is a mess.

Hi

I tried this and it didnt make any difference,  seems identical to before.
Title: Re: frame pacing performance issue PS1/adrenaline
Post by: Animus on July 03, 2020, 03:43:04 PM
Can't test at the moment, but have you tried:

1. One of the Vita overclocking plugins and force CPU to 444 Mhz. Does it reduces or worsens the stuttering?
2. Format SD card to FAT32?
Title: Re: frame pacing performance issue PS1/adrenaline
Post by: kristianity77 on July 03, 2020, 11:47:55 PM
Can't test at the moment, but have you tried:

1. One of the Vita overclocking plugins and force CPU to 444 Mhz. Does it reduces or worsens the stuttering?
2. Format SD card to FAT32?

It's nothing to do with the sd card as you can see the stuttering with the sd card pulled out so that rules that out completely.

I've tried all sorts of overclocking etc it makes no difference.  It's 100 percent tied to sound.  Something to do with the sound at certain times is causing the stutter.  I can safely say now with the troublesome games with stutter I can spot it coming and see the patterns. It happens on an oled or an LCD vita.  It doesn't happen on the official PSN releases bought from the store (but these don't use adrenaline). It has to be an adrenaline issue as games work perfectly without it (official PSN ps1 games)

Troublesome titles that stutter with adrenaline but not official PSN releases:

Alundra
Rayman
Einhander

Title: Re: frame pacing performance issue PS1/adrenaline
Post by: Animus on July 04, 2020, 02:28:07 PM
Does stuttering happen with all versions of Adrenaline? Did you try early versions from here:

https://github.com/TheOfficialFloW/Adrenaline/releases?after=v6
Title: Re: frame pacing performance issue PS1/adrenaline
Post by: kristianity77 on July 05, 2020, 12:48:02 AM
Does stuttering happen with all versions of Adrenaline? Did you try early versions from here:

https://github.com/TheOfficialFloW/Adrenaline/releases?after=v6

Happens on every version I've been able to get work.  I think the really early versions don't work on 3.65 /68 so I went back as far as I could and the result is the same all the way back.
Title: Re: frame pacing performance issue PS1/adrenaline
Post by: valiantiumblade on August 28, 2020, 03:39:32 PM
Bumping this thread because I've been messing around with PS1 games on PSTV again lately. I posted this in the Sharpscale thread last night:

This has been working great for me, though I'm still noticing the odd stutter for PS1 games. The game will, in regular intervals (think once every thirty seconds or so,) skip a single frame. Sometimes this happens twice in quick succession. It's most easily noticeable when you scroll the screen back and forth in a 2D game - I haven't actually timed it but again, it seems to manifest with very regular frequency.

My suspicion is that this issue has something to do with how the PS1's original refresh rate is converted to 60hz - it's very reminiscent of how games run at 60hz on the Game Boy Player, for instance. Does anyone have ideas? All the games I've tested were within Adrenaline and it affected all of them (I'm from Germany but have a bunch of PS1 Classics downloaded from the American store and play them via Adrenaline because switching accounts is pain, so I haven't tested if the games perform any different without Adrenaline.)

Now, I'm not sure if the issue I'm describing here is the same as what kristianity is talking about (haven't tested my handheld Vita again separately, for example.) Cuevavirus suggested this issue is inherent to Adrenaline, but after testing it again this morning I'm not sure that's actually true. I'm getting the same kind of stutter when launching PS1 Classics downloads from the home screen, with and without Sharpscale enabled. Again, from the way it manifests I'm almost certain it's some kind of frame rate conversion issue. I also tested a PSP go with component cables (which uses the same emulator for PS1 games) and the scrolling there is perfectly smooth.

The only possible fix would be to either 1) have the PSTV output the same refresh rate as a real PS1 or 2) use some kind of frame-blending/interpolation technique. I'm not sure if such a fundamental change is actually feasible just via homebrew though. :/