Skip to content

Change BSP constants to what Garry's Mod uses - #212

Merged
marchc1 merged 2 commits into
SourceDotNET:mainfrom
marchc1:bsp-improvements
Oct 19, 2026
Merged

marchc1 merged 2 commits into
SourceDotNET:mainfrom
marchc1:bsp-improvements

Conversation

@marchc1

@marchc1 marchc1 commented Oct 19, 2026

Copy link
Copy Markdown
Member

These upgrade the following BSP constants:

  • Max brushes from 16384 to 65535
  • Max displacement info from 2048 to 16384
  • Max brushsides from 163840 to 655350
  • Max textures from 1024 to 8192

This also changes displacement info loading to use a heap buffer to accommodate.
The rest of the constants were already only being used in heap-allocating contexts.

@marchc1
marchc1 merged commit c093c80 into SourceDotNET:main Oct 19, 2026
4 checks passed
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