mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-20 15:25:33 +02:00
- Add reusable line points buffer to eliminate per-call heap allocations in DrawLines. - Cache last draw color to skip redundant SetPenColor/SetBrushColor calls. - Pre-compute cardinal angle constants (0°, 90°, 180°, 270°) for CopyEx fast-path. - Cache color modulation state to avoid redundant LUT rebuilds. - Add missing break statement in HandleEvent. - Initialize previously uninitialized lastTime variable in UpdateFPS.