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

Refapi 8 logo #1689

Closed
wants to merge 1 commit into from
Closed

Refapi 8 logo #1689

wants to merge 1 commit into from

Conversation

a1batross
Copy link
Member

@a1batross a1batross commented Jun 11, 2024

Now that in RefAPI 8 we have a less intrusive (to smelly decal code) way to control decal scale sizes, I brought back @SNMetamorph's suggestion.

Except few things:

  • hpk_maxsize is increased to 8 megabytes, however I think most players won't get this, since Valve sets this cvar to 4 in HL and CS (and for some reason it's 15.4 in TFC?). Not to mention, some less tech-savvy players set this cvar to absolutely random values, expecting it to magically improve their shooting skills. Shall we rename it and enforce our own defaults here?
  • Logo max size is now 768 pixels, which corresponds to 2.25 megabytes of VRAM. In the worst possible case, 32 players spamming high quality clan logos will take 72 megabytes. I think, this isn't too much for modern PCs and Android devices.
  • Customization and HPAK entry size is limited to 256 kilobytes. Again, in the worst possible case, with HPAK limit set to 8 megabytes, the engine will be able to cache logos at least for 32 players, which neatly fits our maxplayers limit and 16 players with Valve's hpk_maxsize default.

In my opinion, 768px logo re-compressed with pngquant looks pretty awesome. If using this tool feels inconvenient (strangely, I wasn't able to find an online version of it), turns out it has a C API and can be easily linked to the menu.dll where player logo UI resides anyway.

…t decal size (set to 96, default HL logo size is 64)
@a1batross
Copy link
Member Author

Of course, this intended to be merged after refapi-8 branch, as depends on one new function from it.

@a1batross a1batross changed the base branch from master to refapi-8 June 11, 2024 05:16
@a1batross
Copy link
Member Author

Merged.

@a1batross a1batross closed this Jun 12, 2024
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.

1 participant