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 alias'd shaders to hash table? #186

Open
zturtleman opened this issue Apr 6, 2014 · 0 comments
Open

Add alias'd shaders to hash table? #186

zturtleman opened this issue Apr 6, 2014 · 0 comments

Comments

@zturtleman
Copy link
Owner

SoF2 has an aliasShader <shader> setting, which is used instead of the the real shader if r_aliasShaders is 1.

Currently Spearmint has to start parsing the shader each time to find the name of the alias shader. Should probably add the alias shader under the original shader name to the hash table. Faster access but uses more memory. I assume the purpose of alias shader is loading less images, not having less shaders in memory. I'm not sure this really matters.

off-topic; if alias shaders really exists only to use less images could use if.

asdasd
{
  {
#if !r_aliasShaders
    map theDesiredImage
#else
    map oftenUsedSimilarImage
#endif
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant