4lex4nder / ReshadeEffectShaderToggler

Reshade 5+ addin to apply Reshade effects to render targets of shader groups based on a key press. It allows you to configure these groups from within the addin as well.
MIT License
110 stars 10 forks source link

Remove TTL mechanism. Create views immediately instead of at frame end #50

Closed 4lex4nder closed 11 months ago

4lex4nder commented 11 months ago

Previously unused resource views would be destroyed after 60 frames, but in some games that recreate resources every frame, this might have lead to a memory leak. Create views immediately instead of deferred now and dispose as soon as they're not used.