mirror of
https://github.com/SFML/SFML.git
synced 2025-02-07 17:08:02 +08:00
4315c3d290
This change was made in 359fe90 due to recommendations from tooling. On its face this change makes sense since it removes a copy that isn't always necessary. In practice it caused ergonomic issues due to now being forced to make a copy of the render states when needed. The performance gains of eliding this copy are unsubstantiated. We have not done any profiling to measure its impact. For lack of such measurements I'd rather err on the side of improved user experience. If future benchmarks prove this copy is rather expensive then we can reconsider removing it with that evidence in mind.