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

Optimize framebuffer binding and blits #6800

Merged
merged 6 commits into from
Aug 28, 2014

Conversation

unknownbrackets
Copy link
Collaborator

In one area of Tales of Phantasia X, there is a hot town where there are a ton of intra-buffer blits done in a row each frame. This town only ran at 95% for me at best on desktop.

Avoiding the temporary fbo in an intra-buffer blit helped a lot, bringing it up to 150%. With the other optimizations (avoiding unbinding and fbo caching), it's now up to 190%.

This is of course an extreme case. Another example, Trails in the Sky, seemed to benefit only about 1% from these changes in certain cases, and probably less most of the time.

Requires hrydgard/native#234.

-[Unknown]

Just in case, since it overrides the texture.
If we're just going to bind another one, no need to trade around.
Might be needed if the list is stalled, a copy is done, list unstalled,
and then something happens to flush a pending prim.
As far as I can tell, this doesn't need a temp fbo.
hrydgard added a commit that referenced this pull request Aug 28, 2014
Optimize framebuffer binding and blits
@hrydgard hrydgard merged commit 413ea36 into hrydgard:master Aug 28, 2014
@unknownbrackets unknownbrackets deleted the fbo-bind-opt branch August 28, 2014 14:28
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.

2 participants