Open Softwaretom007 opened 1 year ago
Add D2DSolidColorTextBrush object and interface + extend MeasureText with D2DFontFormat fontFormat and D2DTextLayout textLayout + update Sample/MeasureAndDrawString + update FPS meter algorithm
MeasureAndDrawString yield 2x performance gain using cached SolidColorTextBrush and FontFormat.
@Softwaretom007 Thank you very much!
Added more functionality (string layout, text antialiasing setup, optimized draw & fill rectangle and drawing unconnected lines - from array of points).
Add D2DSolidColorTextBrush object and interface + extend MeasureText with D2DFontFormat fontFormat and D2DTextLayout textLayout + update Sample/MeasureAndDrawString + update FPS meter algorithm
MeasureAndDrawString yield 2x performance gain using cached SolidColorTextBrush and FontFormat.