[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

Use individual funcs, skipping the ExecuteOpInternal switch #5898

Merged
merged 6 commits into from
Apr 17, 2014

Conversation

unknownbrackets
Copy link
Collaborator

This helps on x86, but I'm having trouble on ARM - it's just not consistent numbers enough, and I can't do it properly with headless. It'd be good if someone else could verify the performance on Android.

The numbers aren't entirely consistent on x86. I got better than 1% in a couple places, but when I retry them they sometimes aren't as much faster... anyway, it's 1% better in several places.

-[Unknown]

@@ -382,6 +383,8 @@ static const CommandTableEntry commandTable[] = {
{GE_CMD_UNKNOWN_FF, FLAG_EXECUTE},
};

GLES_GPU::CmdFunc GLES_GPU::cmdFuncs_[256];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should combine this and commandFlags[] into one array of struct { flags, CmdFunc }, so that the lookup will fetch both things at once into cache.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds like a good idea.

-[Unknown]

Rather than a single one, ExecuteOpInternal().  This allows less "huge
switch" code organization, and will (once separated) also improve speed.
2% improvement in God Eater 2.
Seems not to make a big difference, though.
hrydgard added a commit that referenced this pull request Apr 17, 2014
Use individual funcs, skipping the ExecuteOpInternal switch
@hrydgard hrydgard merged commit e223ab7 into hrydgard:master Apr 17, 2014
@unknownbrackets unknownbrackets deleted the gpu-cmd-funcs branch April 17, 2014 14: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.

2 participants