Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a bit of a hack for smaller framebuf memcpys #7678

Merged
merged 1 commit into from Apr 12, 2015

Conversation

unknownbrackets
Copy link
Collaborator

In Valkyrie Profile, some framebuf data is downloaded in chunks of 512 bytes. We were rejecting this (misaligned copy, which might mean a copy of texture data outside the framebuf), so the effect was missing.

The effect is pretty common though, it's the blur that happens whenever you enter a battle.

Anyway, this causes a download when the first stride bytes of a line is read. The other three reads of the line won't trigger a download, but we download full lines anyway. I wish we knew the whole height ahead of time.

Hopefully this doesn't false-positive in any other games. I'm a bit worried that it's more likely to affect texture data right after a framebuffer we've mis-detected the height of. At first I added the same change for upload, but decided better of it for this reason (texture uploads.)

-[Unknown]

Hopefully this doesn't false-positive in any other games.  Helps Valkyrie
Profile's battle entry effect.
hrydgard added a commit that referenced this pull request Apr 12, 2015
Add a bit of a hack for smaller framebuf memcpys
@hrydgard hrydgard merged commit 18769f6 into hrydgard:master Apr 12, 2015
@unknownbrackets unknownbrackets deleted the fbcopy branch April 12, 2015 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants