Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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: 1212
Registered: March 2007
Senior 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. Smile

Best regards,

Tom

[Updated on: Tue, 28 April 2020 00:30]

Report message to a moderator

Previous Topic: Is 'texture mapping' possible on Painter?
Next Topic: BufferPainter::Fill(Image,...) optimization question
Goto Forum:
  


Current Time: Fri Mar 29 16:48:42 CET 2024

Total time taken to generate the page: 0.01151 seconds