Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Another BufferPainter optimization
Another BufferPainter optimization [message #53752] |
Mon, 27 April 2020 19:43 |
Tom1
Messages: 1301 Registered: March 2007
|
Ultimate Contributor |
|
|
Hi,
After editing this post quite a few times after each round of optimization, I have ended up with the following FillRGBA() optimization:
1. Remove void FillRGBA() entirely from Painter/Fillers.cpp.
2. Add the following line to Painter/Fillers.h:
#define FillRGBA(a,b,c) memsetd((a),*(dword*)&(b),(c))
This will boost solid color filling considerably in BufferPainter. Additionally, moving this to the header will also make the optimized solution available to ClearOp(), which will benefit radically.
Please evaluate and merge, if it passes U++ quality check. 
Best regards,
Tom
[Updated on: Tue, 28 April 2020 00:30] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Apr 28 19:44:59 CEST 2025
Total time taken to generate the page: 0.00912 seconds
|