| Summary: | [PATCH] WGI: Use fast-pass strings. | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Joel Linn <jl> |
| Component: | joystick | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.13 | ||
| Hardware: | All | ||
| OS: | Windows 10 | ||
| Attachments: | Replacement of all uses (in joystick subsystem) of ref-counted HSTRINGs | ||
Mind though I cant fully test this change as I lack the hardware. But stepping through it seems ok. Patch added, thanks! https://hg.libsdl.org/SDL/rev/32d078262876 |
Created attachment 4550 [details] Replacement of all uses (in joystick subsystem) of ref-counted HSTRINGs Eliminate additional heap allocation for short-lived HSTRINGs. Uses `WindowsCreateStringReference()` to disable reference counting and memory management by the Window Runtime.