BlueAmulet / SourceRTXTweaks

A set of patches for Source Engine games to improve RTX Remix experience
24 stars 5 forks source link

Add INDEX_BUFFER_SIZE patches #12

Closed 0xNULLderef closed 4 months ago

0xNULLderef commented 4 months ago

This pull should alleviate some of the "too many indicies for index buffer . . tell a programmer" error messages. INDEX_BUFFER_SIZE is a macro in source engine so the resulting patches need to be done to both matsys and shaderapi. I haven't really tested them against other source games much, but they still work for current GMOD.

Another possible "fix" for index buffer overflows in GMOD was to set mat_forcedynamic 1, but that significantly decreases performance.

This patch still doesn't have technical info for it, hopefully I'll get to it soon, but for now this fixes some of the issues with maps with a ton of geometry crashing the game.

wolfestridershooter commented 4 months ago

This also fixes faces of the same material not rendering along with the "Too many faces with the same material in scene!" error spam

BlueAmulet commented 4 months ago

sick and can't really look into this myself atm, will do so another time

sambow23 commented 4 months ago

Tested on gm_cosmodrome, seems to crash the game with this PR image Worked previously but had geometry issues unless I used mat_forcedynamic 1

BlueAmulet commented 4 months ago

A number of people have told me these patches cause more issues for them than they solve, so I've reverted this for now.