Emulator Issues #8195
closedCreation of a hybrid xfb mode for games that need real xfb only at certain times ingame (videos for example).
0%
Description
There are plenty of games currently that need real xfb only at certain times ingame, usually during video playback. The current way we deal with it is the enforcement of real xfb for the whole game through the gameini files, the downside of it is that all of them have to be played at low res for a proper experience, for something that sporadically happens ingame canceling one of dolphins greatest features which is upscaling. According to phiren's request i am opening this issue with his proposal on how to deal with it:
"Theoretically a "Hybrid XFB" mode could exist. Acts like virtual xfb unless it (somehow) detect something has been written to the xfb. Then it could switch to real xfb mode. Every frame it would have to check if anything has been written to xfb (such a check could be implemented through hashing, filling the xfb with zeros, cache flushes or locking)
Then the xfb would be transferred to the video card and either keyed into the virtual xfb or replacing the complete contents of virtual xfb."
Updated by phire almost 10 years ago
- Status changed from New to Accepted
- Priority set to Normal
- Category set to gfx
Updated by Sonicadvance1 almost 10 years ago
Phantasy star Online in particular uses the XFB directly for its prerendered videos, but the rest of the game doesn't need it.
Updated by JMC4789 almost 10 years ago
Lots of older EA Sports games as well; hell, tons of games period use this.
Can this be detected though?
Updated by degasus almost 10 years ago
Yeah, this can very likely be detected. While you're on xfb emulation, could you also move the code to calculate the coordinates into VideoCommon?
Updated by AmbientMalice almost 10 years ago
Agent Under Fire would benefit from this. I heartily approve.
Updated by phire almost 10 years ago
- Status changed from Accepted to Work started
I've started on this. See PR #2051
Updated by kostamarino almost 10 years ago
Oh this is great, i will test this pronto.
Updated by theincrediblemastere almost 10 years ago
I am ready for the future.
The only thing better than this would probably be 100% accurate Texture EFB copies. But oh well. Baby steps?
Updated by MayImilae over 9 years ago
Issue 8194 has been merged into this issue.
Updated by theincrediblemastere over 8 years ago
Phire mentioned working on a new version of the PR he posted last year.
Care to share this new version with us, just to know where it is and how it's going?
Updated by theincrediblemastere over 8 years ago
theincrediblemastere wrote:
Phire mentioned working on a new version of the PR he posted last year.
Care to share this new version with us, just to know where it is and how it's going?
@phire Oh yeah I needed to add that to get his attention.
Updated by phire over 8 years ago
@phire Oh yeah I needed to add that to get his attention.
No, I got the email anyway, just been busy.
The new version is waiting on a rewrite of texture cache/virtual xfb code and it doesn't actually exist as code.
Updated by phire over 8 years ago
BTW, the new version now exists and can be found in PR3880
Updated by kolano over 6 years ago
Should this have closed out with Hybrid XFB?
Updated by JosJuice over 6 years ago
- Status changed from Work started to Fixed
- Assignee deleted (
phire) - Fixed in set to 5.0-5874