mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

feGuessianBlur for mta sa

Open thommybabaprs opened this issue 11 months ago • 1 comments

Is your feature request related to a problem? Please describe.

In the current generation of MTA:SA, the use of traditional blur boxes results in significant performance degradation, especially when dealing with more complex graphical elements or high-frequency updates. This approach can be a limiting factor for developers working with custom scripts, particularly when striving for smooth, high-performance visuals.

Describe the solution you'd like

One potential improvement is to replace the traditional blur boxes with an SVG-based solution that uses the feGaussianBlur filter. This approach would leverage the GPU's optimized rendering capabilities and enable smooth, performant blur effects without causing a major performance hit. By utilizing SVG's native support for graphical effects like feGaussianBlur, this solution can be applied universally in new-generation scripts, providing a more efficient and scalable alternative to older blur methods.

The integration of this solution could ensure that MTA:SA maintains its graphical fidelity while minimizing performance bottlenecks. Implementing this update would benefit developers creating high-quality custom content while maintaining smooth gameplay for all users, particularly on lower-end systems.

I propose that this change be considered for inclusion in MTA:SA's future releases. It would modernize the graphical effects pipeline and reduce the reliance on performance-heavy legacy methods.

Describe alternatives you've considered

No response

Additional context

i think mta san andreas needs feGuessianBlur.

Security Policy

  • [x] I have read and understood the Security Policy and this issue is not about a cheat or security vulnerability.

thommybabaprs avatar May 14 '25 10:05 thommybabaprs

I completely agree with this suggestion. The current blur effects in MTA do cause noticeable FPS drops, especially when used in complex UIs or with frequent updates. Switching to an SVG-based solution with feGaussianBlur sounds like a smart move — it could really improve performance and make things run smoother, especially on lower-end PCs. I hope this idea gets considered, as it would be a big help for developers and improve the overall visual quality of the game.

TariQ-2 avatar May 15 '25 22:05 TariQ-2

MTA uses the LunaSVG library, so you need to submit such a proposal there (https://github.com/sammycage/lunasvg), because currently that library does not support feGaussianBlur.

FileEX avatar Sep 07 '25 06:09 FileEX